| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "config.h" | |
| 6 | |
| 7 #include "cc/delegated_renderer_layer_impl.h" | 5 #include "cc/delegated_renderer_layer_impl.h" |
| 8 | 6 |
| 9 #include "cc/append_quads_data.h" | 7 #include "cc/append_quads_data.h" |
| 10 #include "cc/layer_tree_host_impl.h" | 8 #include "cc/layer_tree_host_impl.h" |
| 11 #include "cc/quad_sink.h" | 9 #include "cc/quad_sink.h" |
| 12 #include "cc/render_pass_draw_quad.h" | 10 #include "cc/render_pass_draw_quad.h" |
| 13 #include "cc/scoped_ptr_vector.h" | 11 #include "cc/scoped_ptr_vector.h" |
| 14 #include "cc/single_thread_proxy.h" | 12 #include "cc/single_thread_proxy.h" |
| 15 #include "cc/solid_color_draw_quad.h" | 13 #include "cc/solid_color_draw_quad.h" |
| 16 #include "cc/solid_color_layer_impl.h" | 14 #include "cc/solid_color_layer_impl.h" |
| (...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 448 EXPECT_EQ(sharedState, quadList[3]->sharedQuadState()); | 446 EXPECT_EQ(sharedState, quadList[3]->sharedQuadState()); |
| 449 | 447 |
| 450 // The state should be transformed only once. | 448 // The state should be transformed only once. |
| 451 EXPECT_RECT_EQ(gfx::Rect(30, 30, 50, 50), sharedState->clippedRectInTarget); | 449 EXPECT_RECT_EQ(gfx::Rect(30, 30, 50, 50), sharedState->clippedRectInTarget); |
| 452 WebTransformationMatrix expected; | 450 WebTransformationMatrix expected; |
| 453 expected.translate(30, 30); | 451 expected.translate(30, 30); |
| 454 EXPECT_TRANSFORMATION_MATRIX_EQ(expected, sharedState->quadTransform); | 452 EXPECT_TRANSFORMATION_MATRIX_EQ(expected, sharedState->quadTransform); |
| 455 } | 453 } |
| 456 | 454 |
| 457 } // annonymous namespace | 455 } // annonymous namespace |
| OLD | NEW |