Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(453)

Unified Diff: cc/trees/layer_tree_host_unittest.cc

Issue 862263004: cc: Make eviction queue building consistent with raster. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/trees/layer_tree_host_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_host_unittest.cc
diff --git a/cc/trees/layer_tree_host_unittest.cc b/cc/trees/layer_tree_host_unittest.cc
index 8663e71f3f5264fa5ddb3ffc2f736692e23cf19b..093878e58a238f1b4db10ea0915033991031be6e 100644
--- a/cc/trees/layer_tree_host_unittest.cc
+++ b/cc/trees/layer_tree_host_unittest.cc
@@ -5836,12 +5836,11 @@ class GpuRasterizationRasterizesVisibleOnly : public LayerTreeHostTest {
// Verify which tiles got resources using an eviction iterator, which has to
// return all tiles that have resources.
- EvictionTilePriorityQueue eviction_queue;
- host_impl->BuildEvictionQueue(&eviction_queue,
- SAME_PRIORITY_FOR_BOTH_TREES);
+ scoped_ptr<EvictionTilePriorityQueue> eviction_queue(
+ host_impl->BuildEvictionQueue(SAME_PRIORITY_FOR_BOTH_TREES));
int tile_count = 0;
- for (; !eviction_queue.IsEmpty(); eviction_queue.Pop()) {
- Tile* tile = eviction_queue.Top();
+ for (; !eviction_queue->IsEmpty(); eviction_queue->Pop()) {
+ Tile* tile = eviction_queue->Top();
// Ensure this tile is within the viewport.
EXPECT_TRUE(tile->content_rect().Intersects(gfx::Rect(viewport_size_)));
// Ensure that the tile is 1/4 of the viewport tall (plus padding).
« no previous file with comments | « cc/trees/layer_tree_host_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698