| 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" | 5 #include "config.h" |
| 6 | 6 |
| 7 #include "CCDelegatedRendererLayerImpl.h" | 7 #include "CCDelegatedRendererLayerImpl.h" |
| 8 | 8 |
| 9 #include "CCAppendQuadsData.h" | 9 #include "CCAppendQuadsData.h" |
| 10 #include "CCLayerTreeHostImpl.h" | 10 #include "CCLayerTreeHostImpl.h" |
| 11 #include "CCQuadSink.h" | 11 #include "CCQuadSink.h" |
| 12 #include "CCRenderPassDrawQuad.h" | 12 #include "CCRenderPassDrawQuad.h" |
| 13 #include "CCSingleThreadProxy.h" | |
| 14 #include "CCSolidColorDrawQuad.h" | |
| 15 #include "CCSolidColorLayerImpl.h" | |
| 16 #include "cc/scoped_ptr_vector.h" | 13 #include "cc/scoped_ptr_vector.h" |
| 14 #include "cc/single_thread_proxy.h" |
| 15 #include "cc/solid_color_draw_quad.h" |
| 16 #include "cc/solid_color_layer_impl.h" |
| 17 #include "cc/test/fake_web_compositor_output_surface.h" | 17 #include "cc/test/fake_web_compositor_output_surface.h" |
| 18 #include "cc/test/fake_web_graphics_context_3d.h" | 18 #include "cc/test/fake_web_graphics_context_3d.h" |
| 19 #include "cc/test/geometry_test_utils.h" | 19 #include "cc/test/geometry_test_utils.h" |
| 20 #include "cc/test/mock_quad_culler.h" | 20 #include "cc/test/mock_quad_culler.h" |
| 21 #include "cc/test/render_pass_test_common.h" | 21 #include "cc/test/render_pass_test_common.h" |
| 22 #include "testing/gtest/include/gtest/gtest.h" | 22 #include "testing/gtest/include/gtest/gtest.h" |
| 23 #include <public/WebTransformationMatrix.h> | 23 #include <public/WebTransformationMatrix.h> |
| 24 | 24 |
| 25 using WebKit::FakeWebCompositorOutputSurface; | 25 using WebKit::FakeWebCompositorOutputSurface; |
| 26 using WebKit::FakeWebGraphicsContext3D; | 26 using WebKit::FakeWebGraphicsContext3D; |
| (...skipping 418 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 445 EXPECT_EQ(sharedState, quadList[3]->sharedQuadState()); | 445 EXPECT_EQ(sharedState, quadList[3]->sharedQuadState()); |
| 446 | 446 |
| 447 // The state should be transformed only once. | 447 // The state should be transformed only once. |
| 448 EXPECT_RECT_EQ(IntRect(30, 30, 50, 50), sharedState->clippedRectInTarget); | 448 EXPECT_RECT_EQ(IntRect(30, 30, 50, 50), sharedState->clippedRectInTarget); |
| 449 WebTransformationMatrix expected; | 449 WebTransformationMatrix expected; |
| 450 expected.translate(30, 30); | 450 expected.translate(30, 30); |
| 451 EXPECT_TRANSFORMATION_MATRIX_EQ(expected, sharedState->quadTransform); | 451 EXPECT_TRANSFORMATION_MATRIX_EQ(expected, sharedState->quadTransform); |
| 452 } | 452 } |
| 453 | 453 |
| 454 } // namespace | 454 } // namespace |
| OLD | NEW |