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

Unified Diff: cc/resources/tile_manager_unittest.cc

Issue 1013273003: cc: Force an update on tile size after viewport resize (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: attempt 3? Created 5 years, 9 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
Index: cc/resources/tile_manager_unittest.cc
diff --git a/cc/resources/tile_manager_unittest.cc b/cc/resources/tile_manager_unittest.cc
index 19ccf247fa7ff2a899b9090104b6b748db78c602..84d4b03ff7dd81c2a9efc03667f8de8ceb938d02 100644
--- a/cc/resources/tile_manager_unittest.cc
+++ b/cc/resources/tile_manager_unittest.cc
@@ -127,8 +127,8 @@ class TileManagerTilePriorityQueueTest : public testing::Test {
host_impl_.pending_tree()->LayerById(id_));
// Add tilings/tiles for the layer.
- bool update_lcd_text = false;
- host_impl_.pending_tree()->UpdateDrawProperties(update_lcd_text);
+ bool first_update_after_commit = false;
+ host_impl_.pending_tree()->UpdateDrawProperties(first_update_after_commit);
}
TileManager* tile_manager() { return host_impl_.tile_manager(); }
@@ -542,8 +542,8 @@ TEST_F(TileManagerTilePriorityQueueTest, ActivationComesBeforeEventually) {
time_ticks += base::TimeDelta::FromMilliseconds(1);
host_impl_.SetCurrentBeginFrameArgs(
CreateBeginFrameArgsForTesting(BEGINFRAME_FROM_HERE, time_ticks));
- bool update_lcd_text = false;
- host_impl_.pending_tree()->UpdateDrawProperties(update_lcd_text);
+ bool first_update_after_commit = false;
+ host_impl_.pending_tree()->UpdateDrawProperties(first_update_after_commit);
host_impl_.SetRequiresHighResToDraw();
scoped_ptr<RasterTilePriorityQueue> queue(host_impl_.BuildRasterQueue(
@@ -773,8 +773,8 @@ TEST_F(TileManagerTilePriorityQueueTest,
time_ticks += base::TimeDelta::FromMilliseconds(1);
host_impl_.SetCurrentBeginFrameArgs(
CreateBeginFrameArgsForTesting(BEGINFRAME_FROM_HERE, time_ticks));
- bool update_lcd_text = false;
- host_impl_.pending_tree()->UpdateDrawProperties(update_lcd_text);
+ bool first_update_after_commit = false;
+ host_impl_.pending_tree()->UpdateDrawProperties(first_update_after_commit);
ActivateTree();
SetupPendingTree(pending_pile);
@@ -912,15 +912,15 @@ TEST_F(TileManagerTilePriorityQueueTest,
time_ticks += base::TimeDelta::FromMilliseconds(1);
host_impl_.SetCurrentBeginFrameArgs(
CreateBeginFrameArgsForTesting(BEGINFRAME_FROM_HERE, time_ticks));
- bool update_lcd_text = false;
- host_impl_.pending_tree()->UpdateDrawProperties(update_lcd_text);
+ bool first_update_after_commit = false;
+ host_impl_.pending_tree()->UpdateDrawProperties(first_update_after_commit);
pending_child_layer->SetOpacity(0.0);
time_ticks += base::TimeDelta::FromMilliseconds(1);
host_impl_.SetCurrentBeginFrameArgs(
CreateBeginFrameArgsForTesting(BEGINFRAME_FROM_HERE, time_ticks));
- host_impl_.pending_tree()->UpdateDrawProperties(update_lcd_text);
+ host_impl_.pending_tree()->UpdateDrawProperties(first_update_after_commit);
// Renew all of the tile priorities.
gfx::Rect viewport(layer_bounds);

Powered by Google App Engine
This is Rietveld 408576698