| Index: cc/trees/layer_tree_host_impl.cc
|
| diff --git a/cc/trees/layer_tree_host_impl.cc b/cc/trees/layer_tree_host_impl.cc
|
| index 526d456f62422217daa48c904ad0548f412e43a2..7c5e2f26bd9d1340e7328d8e63e72824fa6a083f 100644
|
| --- a/cc/trees/layer_tree_host_impl.cc
|
| +++ b/cc/trees/layer_tree_host_impl.cc
|
| @@ -1239,13 +1239,14 @@ void LayerTreeHostImpl::GetPictureLayerImplPairs(
|
| }
|
| }
|
|
|
| -void LayerTreeHostImpl::BuildRasterQueue(RasterTilePriorityQueue* queue,
|
| - TreePriority tree_priority,
|
| - RasterTilePriorityQueue::Type type) {
|
| +scoped_ptr<RasterTilePriorityQueue> LayerTreeHostImpl::BuildRasterQueue(
|
| + TreePriority tree_priority,
|
| + RasterTilePriorityQueue::Type type) {
|
| TRACE_EVENT0("cc", "LayerTreeHostImpl::BuildRasterQueue");
|
| picture_layer_pairs_.clear();
|
| GetPictureLayerImplPairs(&picture_layer_pairs_, true);
|
| - queue->Build(picture_layer_pairs_, tree_priority, type);
|
| + scoped_ptr<RasterTilePriorityQueue> queue(RasterTilePriorityQueue::Create(
|
| + picture_layer_pairs_, tree_priority, type));
|
|
|
| if (!queue->IsEmpty()) {
|
| // Only checking the Top() tile here isn't a definite answer that there is
|
| @@ -1260,6 +1261,7 @@ void LayerTreeHostImpl::BuildRasterQueue(RasterTilePriorityQueue* queue,
|
| } else {
|
| required_for_draw_tile_is_top_of_raster_queue_ = false;
|
| }
|
| + return queue;
|
| }
|
|
|
| void LayerTreeHostImpl::BuildEvictionQueue(EvictionTilePriorityQueue* queue,
|
|
|