| 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/layers/layer.h" | 9 #include "cc/layers/layer.h" |
| 10 #include "cc/layers/layer_impl.h" | 10 #include "cc/layers/layer_impl.h" |
| (...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 386 host_->SetRootLayer(scoped_refptr<Layer>(root)); | 386 host_->SetRootLayer(scoped_refptr<Layer>(root)); |
| 387 } | 387 } |
| 388 | 388 |
| 389 void SetRootLayerOnMainThread(LayerImpl* root) {} | 389 void SetRootLayerOnMainThread(LayerImpl* root) {} |
| 390 | 390 |
| 391 void SetBaseProperties(typename Types::LayerType* layer, | 391 void SetBaseProperties(typename Types::LayerType* layer, |
| 392 const gfx::Transform& transform, | 392 const gfx::Transform& transform, |
| 393 const gfx::PointF& position, | 393 const gfx::PointF& position, |
| 394 const gfx::Size& bounds) { | 394 const gfx::Size& bounds) { |
| 395 layer->SetTransform(transform); | 395 layer->SetTransform(transform); |
| 396 layer->SetAnchorPoint(gfx::PointF()); | |
| 397 layer->SetPosition(position); | 396 layer->SetPosition(position); |
| 398 layer->SetBounds(bounds); | 397 layer->SetBounds(bounds); |
| 399 } | 398 } |
| 400 | 399 |
| 401 void SetProperties(Layer* layer, | 400 void SetProperties(Layer* layer, |
| 402 const gfx::Transform& transform, | 401 const gfx::Transform& transform, |
| 403 const gfx::PointF& position, | 402 const gfx::PointF& position, |
| 404 const gfx::Size& bounds) { | 403 const gfx::Size& bounds) { |
| 405 SetBaseProperties(layer, transform, position, bounds); | 404 SetBaseProperties(layer, transform, position, bounds); |
| 406 } | 405 } |
| (...skipping 3145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3552 occlusion.occlusion_from_outside_target().ToString()); | 3551 occlusion.occlusion_from_outside_target().ToString()); |
| 3553 EXPECT_EQ(gfx::Rect().ToString(), | 3552 EXPECT_EQ(gfx::Rect().ToString(), |
| 3554 occlusion.occlusion_from_inside_target().ToString()); | 3553 occlusion.occlusion_from_inside_target().ToString()); |
| 3555 } | 3554 } |
| 3556 }; | 3555 }; |
| 3557 | 3556 |
| 3558 ALL_OCCLUSIONTRACKER_TEST(OcclusionTrackerTestHiddenCopyRequestDoesNotOcclude) | 3557 ALL_OCCLUSIONTRACKER_TEST(OcclusionTrackerTestHiddenCopyRequestDoesNotOcclude) |
| 3559 | 3558 |
| 3560 } // namespace | 3559 } // namespace |
| 3561 } // namespace cc | 3560 } // namespace cc |
| OLD | NEW |