| 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 "cc/base/math_util.h" | 7 #include "cc/base/math_util.h" |
| 8 #include "cc/base/region.h" | 8 #include "cc/base/region.h" |
| 9 #include "cc/layers/append_quads_data.h" | 9 #include "cc/layers/append_quads_data.h" |
| 10 #include "cc/quads/draw_quad.h" | 10 #include "cc/quads/draw_quad.h" |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 layer_impl->DidDraw(resource_provider()); | 153 layer_impl->DidDraw(resource_provider()); |
| 154 } | 154 } |
| 155 | 155 |
| 156 void LayerTestCommon::LayerImplTest::AppendSurfaceQuadsWithOcclusion( | 156 void LayerTestCommon::LayerImplTest::AppendSurfaceQuadsWithOcclusion( |
| 157 RenderSurfaceImpl* surface_impl, | 157 RenderSurfaceImpl* surface_impl, |
| 158 const gfx::Rect& occluded) { | 158 const gfx::Rect& occluded) { |
| 159 AppendQuadsData data; | 159 AppendQuadsData data; |
| 160 | 160 |
| 161 render_pass_->quad_list.clear(); | 161 render_pass_->quad_list.clear(); |
| 162 render_pass_->shared_quad_state_list.clear(); | 162 render_pass_->shared_quad_state_list.clear(); |
| 163 occlusion_tracker_.set_occluded_target_rect_for_contributing_surface( | 163 |
| 164 occluded); | |
| 165 bool for_replica = false; | |
| 166 RenderPassId id(1, 1); | |
| 167 surface_impl->AppendQuads( | 164 surface_impl->AppendQuads( |
| 168 render_pass_.get(), occlusion_tracker_, &data, for_replica, id); | 165 render_pass_.get(), gfx::Transform(), |
| 166 Occlusion(gfx::Transform(), SimpleEnclosedRegion(occluded), |
| 167 SimpleEnclosedRegion()), |
| 168 SK_ColorBLACK, 1.f, nullptr, &data, RenderPassId(1, 1)); |
| 169 } | 169 } |
| 170 | 170 |
| 171 } // namespace cc | 171 } // namespace cc |
| OLD | NEW |