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 "CCGeometryTestUtils.h" | 10 #include "CCGeometryTestUtils.h" |
11 #include "CCLayerTreeHostImpl.h" | 11 #include "CCLayerTreeHostImpl.h" |
12 #include "CCQuadSink.h" | 12 #include "CCQuadSink.h" |
13 #include "CCRenderPassDrawQuad.h" | 13 #include "CCRenderPassDrawQuad.h" |
14 #include "CCRenderPassTestCommon.h" | 14 #include "CCRenderPassTestCommon.h" |
15 #include "CCSingleThreadProxy.h" | 15 #include "CCSingleThreadProxy.h" |
16 #include "CCSolidColorDrawQuad.h" | 16 #include "CCSolidColorDrawQuad.h" |
17 #include "CCSolidColorLayerImpl.h" | 17 #include "CCSolidColorLayerImpl.h" |
18 #include "FakeWebCompositorOutputSurface.h" | 18 #include "FakeWebCompositorOutputSurface.h" |
19 #include "FakeWebGraphicsContext3D.h" | 19 #include "FakeWebGraphicsContext3D.h" |
20 #include "MockCCQuadCuller.h" | 20 #include "MockCCQuadCuller.h" |
21 #include "cc/scoped_ptr_vector.h" | 21 #include "cc/scoped_ptr_vector.h" |
22 #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; |
27 using WebKit::WebTransformationMatrix; | 27 using WebKit::WebTransformationMatrix; |
28 | 28 |
29 using namespace cc; | 29 using namespace cc; |
30 using namespace WebKitTests; | 30 using namespace WebKitTests; |
31 | 31 |
32 namespace { | 32 namespace { |
(...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
371 | 371 |
372 // Quads from non-root RenderPasses should not be shifted though. | 372 // Quads from non-root RenderPasses should not be shifted though. |
373 ASSERT_EQ(2u, frame.renderPasses[2]->quadList().size()); | 373 ASSERT_EQ(2u, frame.renderPasses[2]->quadList().size()); |
374 EXPECT_TRANSFORMATION_MATRIX_EQ(WebTransformationMatrix(), frame.renderPasse
s[2]->quadList()[0]->quadTransform()); | 374 EXPECT_TRANSFORMATION_MATRIX_EQ(WebTransformationMatrix(), frame.renderPasse
s[2]->quadList()[0]->quadTransform()); |
375 EXPECT_TRANSFORMATION_MATRIX_EQ(WebTransformationMatrix(), frame.renderPasse
s[2]->quadList()[1]->quadTransform()); | 375 EXPECT_TRANSFORMATION_MATRIX_EQ(WebTransformationMatrix(), frame.renderPasse
s[2]->quadList()[1]->quadTransform()); |
376 ASSERT_EQ(1u, frame.renderPasses[1]->quadList().size()); | 376 ASSERT_EQ(1u, frame.renderPasses[1]->quadList().size()); |
377 EXPECT_TRANSFORMATION_MATRIX_EQ(WebTransformationMatrix(), frame.renderPasse
s[1]->quadList()[0]->quadTransform()); | 377 EXPECT_TRANSFORMATION_MATRIX_EQ(WebTransformationMatrix(), frame.renderPasse
s[1]->quadList()[0]->quadTransform()); |
378 } | 378 } |
379 | 379 |
380 } // namespace | 380 } // namespace |
OLD | NEW |