1 // Copyright 2015 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 #include "cc/resources/raster_tile_priority_queue.h"
7 #include "cc/resources/raster_tile_priority_queue_all.h"
8 #include "cc/resources/raster_tile_priority_queue_required.h"
13 scoped_ptr
<RasterTilePriorityQueue
> RasterTilePriorityQueue::Create(
14 const std::vector
<PictureLayerImpl::Pair
>& paired_layers
,
15 TreePriority tree_priority
,
19 scoped_ptr
<RasterTilePriorityQueueAll
> queue(
20 new RasterTilePriorityQueueAll
);
21 queue
->Build(paired_layers
, tree_priority
);
24 case Type::REQUIRED_FOR_ACTIVATION
:
25 case Type::REQUIRED_FOR_DRAW
: {
26 scoped_ptr
<RasterTilePriorityQueueRequired
> queue(
27 new RasterTilePriorityQueueRequired
);
28 queue
->Build(paired_layers
, type
);