| 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 "cc/quads/render_pass.h" | 5 #include "cc/quads/render_pass.h" |
| 6 | 6 |
| 7 #include "cc/base/math_util.h" | 7 #include "cc/base/math_util.h" |
| 8 #include "cc/base/scoped_ptr_vector.h" | 8 #include "cc/base/scoped_ptr_vector.h" |
| 9 #include "cc/output/copy_output_request.h" | 9 #include "cc/output/copy_output_request.h" |
| 10 #include "cc/quads/checkerboard_draw_quad.h" | 10 #include "cc/quads/checkerboard_draw_quad.h" |
| 11 #include "cc/test/geometry_test_utils.h" | 11 #include "cc/test/geometry_test_utils.h" |
| 12 #include "cc/test/render_pass_test_common.h" | 12 #include "cc/test/render_pass_test_common.h" |
| 13 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
| 14 #include "third_party/WebKit/public/platform/WebFilterOperations.h" | |
| 15 #include "third_party/skia/include/effects/SkBlurImageFilter.h" | 14 #include "third_party/skia/include/effects/SkBlurImageFilter.h" |
| 16 #include "ui/gfx/transform.h" | 15 #include "ui/gfx/transform.h" |
| 17 | 16 |
| 18 using cc::TestRenderPass; | 17 using cc::TestRenderPass; |
| 19 | 18 |
| 20 namespace cc { | 19 namespace cc { |
| 21 namespace { | 20 namespace { |
| 22 | 21 |
| 23 struct RenderPassSize { | 22 struct RenderPassSize { |
| 24 // If you add a new field to this class, make sure to add it to the | 23 // If you add a new field to this class, make sure to add it to the |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 | 78 |
| 80 // The copy request should not be copied/duplicated. | 79 // The copy request should not be copied/duplicated. |
| 81 EXPECT_EQ(1u, pass->copy_requests.size()); | 80 EXPECT_EQ(1u, pass->copy_requests.size()); |
| 82 EXPECT_EQ(0u, copy->copy_requests.size()); | 81 EXPECT_EQ(0u, copy->copy_requests.size()); |
| 83 | 82 |
| 84 EXPECT_EQ(sizeof(RenderPassSize), sizeof(RenderPass)); | 83 EXPECT_EQ(sizeof(RenderPassSize), sizeof(RenderPass)); |
| 85 } | 84 } |
| 86 | 85 |
| 87 } // namespace | 86 } // namespace |
| 88 } // namespace cc | 87 } // namespace cc |
| OLD | NEW |