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

Unified Diff: cc/layers/picture_layer_impl_unittest.cc

Issue 1385043002: cc: Remove SetLayerTreeHostClientReady() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@startcomp
Patch Set: sky's offline comment Created 5 years, 2 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/layers/picture_layer_impl_perftest.cc ('k') | cc/layers/picture_layer_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/picture_layer_impl_unittest.cc
diff --git a/cc/layers/picture_layer_impl_unittest.cc b/cc/layers/picture_layer_impl_unittest.cc
index 93c1f1f823fec7676f1e5278ea340acbbd773050..65022c1bc63c4be9fbff64f186091466e80eb9b2 100644
--- a/cc/layers/picture_layer_impl_unittest.cc
+++ b/cc/layers/picture_layer_impl_unittest.cc
@@ -124,6 +124,7 @@ class PictureLayerImplTest : public testing::Test {
void SetUp() override { InitializeRenderer(); }
virtual void InitializeRenderer() {
+ host_impl_.SetVisible(true);
host_impl_.InitializeRenderer(output_surface_.get());
}
@@ -1570,6 +1571,7 @@ TEST_F(PictureLayerImplTest, ClampTilesToMaxTileSize) {
host_impl_.DidLoseOutputSurface();
scoped_ptr<OutputSurface> new_output_surface =
FakeOutputSurface::Create3d(context.Pass());
+ host_impl_.SetVisible(true);
host_impl_.InitializeRenderer(new_output_surface.get());
output_surface_ = new_output_surface.Pass();
@@ -1609,6 +1611,7 @@ TEST_F(PictureLayerImplTest, ClampSingleTileToToMaxTileSize) {
host_impl_.DidLoseOutputSurface();
scoped_ptr<OutputSurface> new_output_surface =
FakeOutputSurface::Create3d(context.Pass());
+ host_impl_.SetVisible(true);
host_impl_.InitializeRenderer(new_output_surface.get());
output_surface_ = new_output_surface.Pass();
@@ -3816,6 +3819,7 @@ class PictureLayerImplTestWithDelegatingRenderer : public PictureLayerImplTest {
}
void InitializeRenderer() override {
+ host_impl_.SetVisible(true);
host_impl_.InitializeRenderer(output_surface_.get());
}
};
« no previous file with comments | « cc/layers/picture_layer_impl_perftest.cc ('k') | cc/layers/picture_layer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698