1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CC_RESOURCES_RASTER_TILE_PRIORITY_QUEUE_H_
6 #define CC_RESOURCES_RASTER_TILE_PRIORITY_QUEUE_H_
10 #include "cc/base/cc_export.h"
11 #include "cc/layers/picture_layer_impl.h"
12 #include "cc/resources/tile_priority.h"
17 class CC_EXPORT RasterTilePriorityQueue
{
19 enum class Type
{ ALL
, REQUIRED_FOR_ACTIVATION
, REQUIRED_FOR_DRAW
};
21 // TODO(vmpstr): Make this work with PictureLayerTilingSet pairs instead.
22 static scoped_ptr
<RasterTilePriorityQueue
> Create(
23 const std::vector
<PictureLayerImpl::Pair
>& paired_layers
,
24 TreePriority tree_priority
,
27 virtual ~RasterTilePriorityQueue() {}
29 virtual bool IsEmpty() const = 0;
30 virtual Tile
* Top() = 0;
31 virtual void Pop() = 0;
34 RasterTilePriorityQueue() {}
37 DISALLOW_COPY_AND_ASSIGN(RasterTilePriorityQueue
);
42 #endif // CC_RESOURCES_RASTER_TILE_PRIORITY_QUEUE_H_