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

Unified Diff: cc/output/overlay_unittest.cc

Issue 2156913003: Refactor CALayerOverlay to pull out CALayerOverlaySharedState. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@temp36
Patch Set: Rebase. Created 4 years, 5 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/output/gl_renderer.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/overlay_unittest.cc
diff --git a/cc/output/overlay_unittest.cc b/cc/output/overlay_unittest.cc
index 38ba3417b92923aba8625163cc537f9e13930bdb..cde07baadb276620f0ef23499b8d9932738843f1 100644
--- a/cc/output/overlay_unittest.cc
+++ b/cc/output/overlay_unittest.cc
@@ -1074,7 +1074,7 @@ TEST_F(CALayerOverlayTest, ThreeDTransform) {
EXPECT_EQ(1U, ca_layer_list.size());
gfx::Transform expected_transform;
expected_transform.RotateAboutXAxis(45.f);
- gfx::Transform actual_transform(ca_layer_list.back().transform);
+ gfx::Transform actual_transform(ca_layer_list.back().shared_state->transform);
EXPECT_EQ(expected_transform.ToString(), actual_transform.ToString());
EXPECT_EQ(0U, output_surface_->bind_framebuffer_count());
}
@@ -1116,8 +1116,9 @@ TEST_F(CALayerOverlayTest, NontrivialClip) {
EXPECT_EQ(0U, pass->quad_list.size());
EXPECT_EQ(0U, overlay_list.size());
EXPECT_EQ(1U, ca_layer_list.size());
- EXPECT_TRUE(ca_layer_list.back().is_clipped);
- EXPECT_EQ(gfx::RectF(64, 64, 128, 128), ca_layer_list.back().clip_rect);
+ EXPECT_TRUE(ca_layer_list.back().shared_state->is_clipped);
+ EXPECT_EQ(gfx::RectF(64, 64, 128, 128),
+ ca_layer_list.back().shared_state->clip_rect);
EXPECT_EQ(0U, output_surface_->bind_framebuffer_count());
}
« no previous file with comments | « cc/output/gl_renderer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698