| Index: cc/quads/draw_quad_unittest.cc
|
| diff --git a/cc/quads/draw_quad_unittest.cc b/cc/quads/draw_quad_unittest.cc
|
| index 5bce42eb71eaa2add5cc49a1dded390807171af4..833f388aafb6f257a702d685ddcebaaacfb1d943 100644
|
| --- a/cc/quads/draw_quad_unittest.cc
|
| +++ b/cc/quads/draw_quad_unittest.cc
|
| @@ -34,8 +34,8 @@ namespace {
|
|
|
| TEST(DrawQuadTest, CopySharedQuadState) {
|
| gfx::Transform quad_transform = gfx::Transform(1.0, 0.0, 0.5, 1.0, 0.5, 0.0);
|
| - gfx::Size content_bounds(26, 28);
|
| - gfx::Rect visible_content_rect(10, 12, 14, 16);
|
| + gfx::Size layer_bounds(26, 28);
|
| + gfx::Rect visible_layer_rect(10, 12, 14, 16);
|
| gfx::Rect clip_rect(19, 21, 23, 25);
|
| bool is_clipped = true;
|
| float opacity = 0.25f;
|
| @@ -43,19 +43,13 @@ TEST(DrawQuadTest, CopySharedQuadState) {
|
| int sorting_context_id = 65536;
|
|
|
| scoped_ptr<SharedQuadState> state(new SharedQuadState);
|
| - state->SetAll(quad_transform,
|
| - content_bounds,
|
| - visible_content_rect,
|
| - clip_rect,
|
| - is_clipped,
|
| - opacity,
|
| - blend_mode,
|
| - sorting_context_id);
|
| + state->SetAll(quad_transform, layer_bounds, visible_layer_rect, clip_rect,
|
| + is_clipped, opacity, blend_mode, sorting_context_id);
|
|
|
| scoped_ptr<SharedQuadState> copy(new SharedQuadState);
|
| copy->CopyFrom(state.get());
|
| - EXPECT_EQ(quad_transform, copy->content_to_target_transform);
|
| - EXPECT_EQ(visible_content_rect, copy->visible_content_rect);
|
| + EXPECT_EQ(quad_transform, copy->quad_to_target_transform);
|
| + EXPECT_EQ(visible_layer_rect, copy->visible_quad_layer_rect);
|
| EXPECT_EQ(opacity, copy->opacity);
|
| EXPECT_EQ(clip_rect, copy->clip_rect);
|
| EXPECT_EQ(is_clipped, copy->is_clipped);
|
| @@ -64,8 +58,8 @@ TEST(DrawQuadTest, CopySharedQuadState) {
|
|
|
| SharedQuadState* CreateSharedQuadState(RenderPass* render_pass) {
|
| gfx::Transform quad_transform = gfx::Transform(1.0, 0.0, 0.5, 1.0, 0.5, 0.0);
|
| - gfx::Size content_bounds(26, 28);
|
| - gfx::Rect visible_content_rect(10, 12, 14, 16);
|
| + gfx::Size layer_bounds(26, 28);
|
| + gfx::Rect visible_layer_rect(10, 12, 14, 16);
|
| gfx::Rect clip_rect(19, 21, 23, 25);
|
| bool is_clipped = false;
|
| float opacity = 1.f;
|
| @@ -73,14 +67,8 @@ SharedQuadState* CreateSharedQuadState(RenderPass* render_pass) {
|
| SkXfermode::Mode blend_mode = SkXfermode::kSrcOver_Mode;
|
|
|
| SharedQuadState* state = render_pass->CreateAndAppendSharedQuadState();
|
| - state->SetAll(quad_transform,
|
| - content_bounds,
|
| - visible_content_rect,
|
| - clip_rect,
|
| - is_clipped,
|
| - opacity,
|
| - blend_mode,
|
| - sorting_context_id);
|
| + state->SetAll(quad_transform, layer_bounds, visible_layer_rect, clip_rect,
|
| + is_clipped, opacity, blend_mode, sorting_context_id);
|
| return state;
|
| }
|
|
|
|
|