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

Unified Diff: cc/trees/layer_tree_host_unittest_context.cc

Issue 1139673008: cc: Make IsReadyToDraw/NeedsRaster usage consistent. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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/test/fake_picture_layer_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_context.cc
diff --git a/cc/trees/layer_tree_host_unittest_context.cc b/cc/trees/layer_tree_host_unittest_context.cc
index 71c9ea0fe632e32aa795d582509bd03ce9f6bbdb..a2f06113f039c3f210bce2135519ad7d6fd8ffbf 100644
--- a/cc/trees/layer_tree_host_unittest_context.cc
+++ b/cc/trees/layer_tree_host_unittest_context.cc
@@ -580,7 +580,10 @@ class LayerTreeHostContextTestLostContextSucceedsWithContent
} else {
FakePictureLayerImpl* picture_impl = static_cast<FakePictureLayerImpl*>(
host_impl->active_tree()->root_layer()->children()[0]);
- EXPECT_TRUE(picture_impl->HighResTiling()->TileAt(0, 0)->IsReadyToDraw());
+ EXPECT_TRUE(picture_impl->HighResTiling()
+ ->TileAt(0, 0)
+ ->draw_info()
+ .IsReadyToDraw());
}
}
@@ -697,7 +700,10 @@ class LayerTreeHostContextTestLostContextAndEvictTextures
if (impl->settings().impl_side_painting) {
FakePictureLayerImpl* picture_impl =
static_cast<FakePictureLayerImpl*>(impl->active_tree()->root_layer());
- EXPECT_TRUE(picture_impl->HighResTiling()->TileAt(0, 0)->IsReadyToDraw());
+ EXPECT_TRUE(picture_impl->HighResTiling()
+ ->TileAt(0, 0)
+ ->draw_info()
+ .IsReadyToDraw());
} else {
FakeContentLayerImpl* content_impl =
static_cast<FakeContentLayerImpl*>(impl->active_tree()->root_layer());
« no previous file with comments | « cc/test/fake_picture_layer_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698