diff options
author | vmpstr <vmpstr@chromium.org> | 2015-05-14 17:39:48 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-05-15 00:39:57 +0000 |
commit | 3619e48edfdfad6683c55992103d89897108783f (patch) | |
tree | 110126267889bce38abeaadef563f950cab72840 /cc/trees | |
parent | 1d680993594b18c3585c94c47a6a46e8982b9a81 (diff) | |
download | chromium_src-3619e48edfdfad6683c55992103d89897108783f.zip chromium_src-3619e48edfdfad6683c55992103d89897108783f.tar.gz chromium_src-3619e48edfdfad6683c55992103d89897108783f.tar.bz2 |
cc: Make IsReadyToDraw/NeedsRaster usage consistent.
There are two ways of accessing IsReadyToDraw and NeedsRaster. One is
via tile->IsReadyToDraw(), the other is via
tile->draw_info().IsReadyToDraw(). The first one is actually does the
same thing as the second one. This patch removes the shortcut and
makes all uses of this functionality consistent.
R=enne
Review URL: https://codereview.chromium.org/1139673008
Cr-Commit-Position: refs/heads/master@{#329996}
Diffstat (limited to 'cc/trees')
-rw-r--r-- | cc/trees/layer_tree_host_unittest_context.cc | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/cc/trees/layer_tree_host_unittest_context.cc b/cc/trees/layer_tree_host_unittest_context.cc index 71c9ea0..a2f0611 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()); |