| 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/trees/occlusion_tracker.h" | 5 #include "cc/trees/occlusion_tracker.h" |
| 6 | 6 |
| 7 #include "cc/animation/layer_animation_controller.h" | 7 #include "cc/animation/layer_animation_controller.h" |
| 8 #include "cc/base/math_util.h" | 8 #include "cc/base/math_util.h" |
| 9 #include "cc/debug/overdraw_metrics.h" | 9 #include "cc/debug/overdraw_metrics.h" |
| 10 #include "cc/layers/layer.h" | 10 #include "cc/layers/layer.h" |
| (...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 313 | 313 |
| 314 DCHECK(!root->render_surface()); | 314 DCHECK(!root->render_surface()); |
| 315 | 315 |
| 316 LayerTreeHostCommon::CalculateDrawProperties( | 316 LayerTreeHostCommon::CalculateDrawProperties( |
| 317 root, | 317 root, |
| 318 root->bounds(), | 318 root->bounds(), |
| 319 1.f, | 319 1.f, |
| 320 1.f, | 320 1.f, |
| 321 dummy_max_texture_size, | 321 dummy_max_texture_size, |
| 322 false, | 322 false, |
| 323 &render_surface_layer_list_impl_, | 323 &render_surface_layer_list_impl_); |
| 324 false); | |
| 325 | 324 |
| 326 layer_iterator_ = layer_iterator_begin_ = | 325 layer_iterator_ = layer_iterator_begin_ = |
| 327 Types::TestLayerIterator::Begin(&render_surface_layer_list_impl_); | 326 Types::TestLayerIterator::Begin(&render_surface_layer_list_impl_); |
| 328 } | 327 } |
| 329 | 328 |
| 330 void CalcDrawEtc(TestContentLayer* root) { | 329 void CalcDrawEtc(TestContentLayer* root) { |
| 331 DCHECK(root == root_.get()); | 330 DCHECK(root == root_.get()); |
| 332 int dummy_max_texture_size = 512; | 331 int dummy_max_texture_size = 512; |
| 333 | 332 |
| 334 DCHECK(!root->render_surface()); | 333 DCHECK(!root->render_surface()); |
| (...skipping 4200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4535 gfx::Rect(0, 0, 100, 100), | 4534 gfx::Rect(0, 0, 100, 100), |
| 4536 &has_occlusion_from_outside_target_surface)); | 4535 &has_occlusion_from_outside_target_surface)); |
| 4537 EXPECT_FALSE(has_occlusion_from_outside_target_surface); | 4536 EXPECT_FALSE(has_occlusion_from_outside_target_surface); |
| 4538 } | 4537 } |
| 4539 }; | 4538 }; |
| 4540 | 4539 |
| 4541 ALL_OCCLUSIONTRACKER_TEST(OcclusionTrackerTestLayerClipIsExternalOcclusion) | 4540 ALL_OCCLUSIONTRACKER_TEST(OcclusionTrackerTestLayerClipIsExternalOcclusion) |
| 4542 | 4541 |
| 4543 } // namespace | 4542 } // namespace |
| 4544 } // namespace cc | 4543 } // namespace cc |
| OLD | NEW |