diff options
author | alokp@chromium.org <alokp@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-07-01 00:49:15 +0000 |
---|---|---|
committer | alokp@chromium.org <alokp@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-07-01 00:49:15 +0000 |
commit | fc20d140327d42ddccf94cc5cb698b4705f7294d (patch) | |
tree | 39eed208f91a29e0de0289d3591fae7adb94a078 /cc/layers/picture_layer_impl_unittest.cc | |
parent | 425f6470a5339763301edc0b5af3601dd91ed313 (diff) | |
download | chromium_src-fc20d140327d42ddccf94cc5cb698b4705f7294d.zip chromium_src-fc20d140327d42ddccf94cc5cb698b4705f7294d.tar.gz chromium_src-fc20d140327d42ddccf94cc5cb698b4705f7294d.tar.bz2 |
cc: Activate sync tree instead of pending tree.
This patch does not change anything functionally. It prepares
us to skip pending tree for commit. It essentially unifies
the activation for both impl-side and non-impl-side painting
paths.
BUG=383157
Review URL: https://codereview.chromium.org/345563011
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@280717 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/layers/picture_layer_impl_unittest.cc')
-rw-r--r-- | cc/layers/picture_layer_impl_unittest.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cc/layers/picture_layer_impl_unittest.cc b/cc/layers/picture_layer_impl_unittest.cc index 2053c9d..401df7e 100644 --- a/cc/layers/picture_layer_impl_unittest.cc +++ b/cc/layers/picture_layer_impl_unittest.cc @@ -81,7 +81,7 @@ class PictureLayerImplTest : public testing::Test { } void ActivateTree() { - host_impl_.ActivatePendingTree(); + host_impl_.ActivateSyncTree(); CHECK(!host_impl_.pending_tree()); pending_layer_ = NULL; active_layer_ = static_cast<FakePictureLayerImpl*>( @@ -1480,7 +1480,7 @@ TEST_F(PictureLayerImplTest, ActivateUninitializedLayer) { pending_layer_->set_raster_page_scale(raster_page_scale); EXPECT_TRUE(pending_layer_->needs_post_commit_initialization()); - host_impl_.ActivatePendingTree(); + host_impl_.ActivateSyncTree(); active_layer_ = static_cast<FakePictureLayerImpl*>( host_impl_.active_tree()->LayerById(id_)); @@ -1495,7 +1495,7 @@ TEST_F(PictureLayerImplTest, RemoveInvalidTilesOnActivation) { AddDefaultTilingsWithInvalidation(gfx::Rect(0, 0, 1, 1)); FakePictureLayerImpl* recycled_layer = pending_layer_; - host_impl_.ActivatePendingTree(); + host_impl_.ActivateSyncTree(); active_layer_ = static_cast<FakePictureLayerImpl*>( host_impl_.active_tree()->LayerById(id_)); |