| 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 "cc/render_pass.h" | 7 #include "cc/render_pass.h" |
| 8 | 8 |
| 9 #include "cc/checkerboard_draw_quad.h" | 9 #include "cc/checkerboard_draw_quad.h" |
| 10 #include "cc/test/geometry_test_utils.h" | 10 #include "cc/test/geometry_test_utils.h" |
| 11 #include "cc/test/render_pass_test_common.h" | 11 #include "cc/test/render_pass_test_common.h" |
| 12 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
| 13 #include "third_party/skia/include/effects/SkBlurImageFilter.h" | 13 #include "third_party/skia/include/effects/SkBlurImageFilter.h" |
| 14 #include <public/WebFilterOperations.h> | 14 #include <public/WebFilterOperations.h> |
| 15 #include <public/WebTransformationMatrix.h> | 15 #include <public/WebTransformationMatrix.h> |
| 16 | 16 |
| 17 using WebKit::WebFilterOperation; | 17 using WebKit::WebFilterOperation; |
| 18 using WebKit::WebFilterOperations; | 18 using WebKit::WebFilterOperations; |
| 19 using WebKit::WebTransformationMatrix; | 19 using WebKit::WebTransformationMatrix; |
| 20 using WebKitTests::TestRenderPass; | 20 using WebKitTests::TestRenderPass; |
| 21 | 21 |
| 22 using namespace cc; | 22 namespace cc { |
| 23 | |
| 24 namespace { | 23 namespace { |
| 25 | 24 |
| 26 struct RenderPassSize { | 25 struct RenderPassSize { |
| 27 // If you add a new field to this class, make sure to add it to the copy() t
ests. | 26 // If you add a new field to this class, make sure to add it to the copy() t
ests. |
| 28 RenderPass::Id m_id; | 27 RenderPass::Id m_id; |
| 29 QuadList m_quadList; | 28 QuadList m_quadList; |
| 30 SharedQuadStateList m_sharedQuadStateList; | 29 SharedQuadStateList m_sharedQuadStateList; |
| 31 WebKit::WebTransformationMatrix m_transformToRootTarget; | 30 WebKit::WebTransformationMatrix m_transformToRootTarget; |
| 32 gfx::Rect m_outputRect; | 31 gfx::Rect m_outputRect; |
| 33 gfx::RectF m_damageRect; | 32 gfx::RectF m_damageRect; |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 EXPECT_EQ(pass->hasTransparentBackground(), copy->hasTransparentBackground()
); | 76 EXPECT_EQ(pass->hasTransparentBackground(), copy->hasTransparentBackground()
); |
| 78 EXPECT_EQ(pass->hasOcclusionFromOutsideTargetSurface(), copy->hasOcclusionFr
omOutsideTargetSurface()); | 77 EXPECT_EQ(pass->hasOcclusionFromOutsideTargetSurface(), copy->hasOcclusionFr
omOutsideTargetSurface()); |
| 79 EXPECT_EQ(pass->filters(), copy->filters()); | 78 EXPECT_EQ(pass->filters(), copy->filters()); |
| 80 EXPECT_EQ(pass->backgroundFilters(), copy->backgroundFilters()); | 79 EXPECT_EQ(pass->backgroundFilters(), copy->backgroundFilters()); |
| 81 EXPECT_EQ(pass->filter(), copy->filter()); | 80 EXPECT_EQ(pass->filter(), copy->filter()); |
| 82 EXPECT_EQ(0u, copy->quadList().size()); | 81 EXPECT_EQ(0u, copy->quadList().size()); |
| 83 | 82 |
| 84 EXPECT_EQ(sizeof(RenderPassSize), sizeof(RenderPass)); | 83 EXPECT_EQ(sizeof(RenderPassSize), sizeof(RenderPass)); |
| 85 } | 84 } |
| 86 | 85 |
| 87 } // anonymous namespace | 86 } // namespace |
| 87 } // namespace cc |
| OLD | NEW |