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

Unified Diff: cc/layers/picture_image_layer_impl_unittest.cc

Issue 332433003: cc: Remove EnsureRenderSurfaceLayerList, do UpdateDrawProps when needed. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ensurersll: . Created 6 years, 6 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/layers/picture_image_layer_impl_unittest.cc
diff --git a/cc/layers/picture_image_layer_impl_unittest.cc b/cc/layers/picture_image_layer_impl_unittest.cc
index 97d522aae36ebaad88e34f77254a6d90dc2565b2..e8c993fa9f56c2fc47018bcc3bbc531d6f2f0138 100644
--- a/cc/layers/picture_image_layer_impl_unittest.cc
+++ b/cc/layers/picture_image_layer_impl_unittest.cc
@@ -66,10 +66,6 @@ class PictureImageLayerImplTest : public testing::Test {
return make_scoped_ptr(layer);
}
- void UpdateDrawProperties() {
- host_impl_.pending_tree()->UpdateDrawProperties();
- }
-
protected:
FakeImplProxy proxy_;
FakeLayerTreeHostImpl host_impl_;
@@ -97,29 +93,6 @@ TEST_F(PictureImageLayerImplTest, CalculateContentsScale) {
EXPECT_EQ(layer->bounds(), content_bounds);
}
-TEST_F(PictureImageLayerImplTest, AreVisibleResourcesReady) {
- scoped_ptr<TestablePictureImageLayerImpl> layer(CreateLayer(1, PENDING_TREE));
- layer->SetBounds(gfx::Size(100, 200));
- layer->SetDrawsContent(true);
-
- UpdateDrawProperties();
danakj 2014/06/11 21:41:19 I did some related/unrelated blaming just now and
-
- float contents_scale_x;
- float contents_scale_y;
- gfx::Size content_bounds;
- layer->CalculateContentsScale(2.f,
- 3.f,
- 4.f,
- 1.f,
- false,
- &contents_scale_x,
- &contents_scale_y,
- &content_bounds);
- layer->UpdateTilePriorities();
-
- EXPECT_TRUE(layer->AreVisibleResourcesReady());
-}
-
TEST_F(PictureImageLayerImplTest, IgnoreIdealContentScale) {
scoped_ptr<TestablePictureImageLayerImpl> pending_layer(
CreateLayer(1, PENDING_TREE));

Powered by Google App Engine
This is Rietveld 408576698