| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/layers/render_surface_impl.h" | 5 #include "cc/layers/render_surface_impl.h" |
| 6 | 6 |
| 7 #include <stddef.h> |
| 8 |
| 7 #include "cc/layers/append_quads_data.h" | 9 #include "cc/layers/append_quads_data.h" |
| 8 #include "cc/quads/render_pass_draw_quad.h" | 10 #include "cc/quads/render_pass_draw_quad.h" |
| 9 #include "cc/test/fake_mask_layer_impl.h" | 11 #include "cc/test/fake_mask_layer_impl.h" |
| 10 #include "cc/test/layer_test_common.h" | 12 #include "cc/test/layer_test_common.h" |
| 11 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
| 12 | 14 |
| 13 namespace cc { | 15 namespace cc { |
| 14 namespace { | 16 namespace { |
| 15 | 17 |
| 16 TEST(RenderSurfaceLayerImplTest, Occlusion) { | 18 TEST(RenderSurfaceLayerImplTest, Occlusion) { |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 RenderPassId(1, 1)); | 110 RenderPassId(1, 1)); |
| 109 | 111 |
| 110 const RenderPassDrawQuad* quad = | 112 const RenderPassDrawQuad* quad = |
| 111 RenderPassDrawQuad::MaterialCast(render_pass->quad_list.front()); | 113 RenderPassDrawQuad::MaterialCast(render_pass->quad_list.front()); |
| 112 EXPECT_EQ(gfx::Vector2dF(1.f, 1.f), quad->mask_uv_scale); | 114 EXPECT_EQ(gfx::Vector2dF(1.f, 1.f), quad->mask_uv_scale); |
| 113 EXPECT_EQ(gfx::Vector2dF(2.f, 2.f), quad->filters_scale); | 115 EXPECT_EQ(gfx::Vector2dF(2.f, 2.f), quad->filters_scale); |
| 114 } | 116 } |
| 115 | 117 |
| 116 } // namespace | 118 } // namespace |
| 117 } // namespace cc | 119 } // namespace cc |
| OLD | NEW |