| 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/test/layer_test_common.h" | 5 #include "cc/test/layer_test_common.h" |
| 6 | 6 |
| 7 #include <stddef.h> |
| 8 |
| 7 #include "cc/base/math_util.h" | 9 #include "cc/base/math_util.h" |
| 8 #include "cc/base/region.h" | 10 #include "cc/base/region.h" |
| 9 #include "cc/layers/append_quads_data.h" | 11 #include "cc/layers/append_quads_data.h" |
| 10 #include "cc/quads/draw_quad.h" | 12 #include "cc/quads/draw_quad.h" |
| 11 #include "cc/quads/render_pass.h" | 13 #include "cc/quads/render_pass.h" |
| 12 #include "cc/test/fake_output_surface.h" | 14 #include "cc/test/fake_output_surface.h" |
| 13 #include "cc/test/layer_tree_settings_for_testing.h" | 15 #include "cc/test/layer_tree_settings_for_testing.h" |
| 14 #include "cc/test/mock_occlusion_tracker.h" | 16 #include "cc/test/mock_occlusion_tracker.h" |
| 15 #include "cc/trees/layer_tree_host_common.h" | 17 #include "cc/trees/layer_tree_host_common.h" |
| 16 #include "testing/gtest/include/gtest/gtest.h" | 18 #include "testing/gtest/include/gtest/gtest.h" |
| (...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 180 render_pass_->shared_quad_state_list.clear(); | 182 render_pass_->shared_quad_state_list.clear(); |
| 181 | 183 |
| 182 surface_impl->AppendQuads( | 184 surface_impl->AppendQuads( |
| 183 render_pass_.get(), gfx::Transform(), | 185 render_pass_.get(), gfx::Transform(), |
| 184 Occlusion(gfx::Transform(), SimpleEnclosedRegion(occluded), | 186 Occlusion(gfx::Transform(), SimpleEnclosedRegion(occluded), |
| 185 SimpleEnclosedRegion()), | 187 SimpleEnclosedRegion()), |
| 186 SK_ColorBLACK, 1.f, nullptr, &data, RenderPassId(1, 1)); | 188 SK_ColorBLACK, 1.f, nullptr, &data, RenderPassId(1, 1)); |
| 187 } | 189 } |
| 188 | 190 |
| 189 } // namespace cc | 191 } // namespace cc |
| OLD | NEW |