| 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/layer_tree_host.h" | 5 #include "cc/trees/layer_tree_host.h" |
| 6 | 6 |
| 7 #include "cc/layers/layer.h" | 7 #include "cc/layers/layer.h" |
| 8 #include "cc/output/copy_output_request.h" | 8 #include "cc/output/copy_output_request.h" |
| 9 #include "cc/output/copy_output_result.h" | 9 #include "cc/output/copy_output_result.h" |
| 10 #include "cc/test/layer_tree_test.h" | 10 #include "cc/test/layer_tree_test.h" |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 const gfx::PointF& position, | 88 const gfx::PointF& position, |
| 89 const gfx::Size& bounds, | 89 const gfx::Size& bounds, |
| 90 bool opaque) const { | 90 bool opaque) const { |
| 91 layer->RemoveAllChildren(); | 91 layer->RemoveAllChildren(); |
| 92 if (parent) | 92 if (parent) |
| 93 parent->AddChild(layer); | 93 parent->AddChild(layer); |
| 94 layer->SetTransform(transform); | 94 layer->SetTransform(transform); |
| 95 layer->SetPosition(position); | 95 layer->SetPosition(position); |
| 96 layer->SetBounds(bounds); | 96 layer->SetBounds(bounds); |
| 97 layer->SetContentsOpaque(opaque); | 97 layer->SetContentsOpaque(opaque); |
| 98 | |
| 99 layer->SetAnchorPoint(gfx::PointF()); | |
| 100 } | 98 } |
| 101 | 99 |
| 102 protected: | 100 protected: |
| 103 virtual void InitializeSettings(LayerTreeSettings* settings) OVERRIDE { | 101 virtual void InitializeSettings(LayerTreeSettings* settings) OVERRIDE { |
| 104 settings->minimum_occlusion_tracking_size = gfx::Size(); | 102 settings->minimum_occlusion_tracking_size = gfx::Size(); |
| 105 } | 103 } |
| 106 | 104 |
| 107 scoped_refptr<TestLayer> root_; | 105 scoped_refptr<TestLayer> root_; |
| 108 scoped_refptr<TestLayer> child_; | 106 scoped_refptr<TestLayer> child_; |
| 109 scoped_refptr<TestLayer> child2_; | 107 scoped_refptr<TestLayer> child2_; |
| (...skipping 503 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 613 | 611 |
| 614 layer_tree_host()->SetRootLayer(layers[0]); | 612 layer_tree_host()->SetRootLayer(layers[0]); |
| 615 LayerTreeTest::SetupTree(); | 613 LayerTreeTest::SetupTree(); |
| 616 } | 614 } |
| 617 }; | 615 }; |
| 618 | 616 |
| 619 SINGLE_AND_MULTI_THREAD_TEST_F(LayerTreeHostOcclusionTestManySurfaces); | 617 SINGLE_AND_MULTI_THREAD_TEST_F(LayerTreeHostOcclusionTestManySurfaces); |
| 620 | 618 |
| 621 } // namespace | 619 } // namespace |
| 622 } // namespace cc | 620 } // namespace cc |
| OLD | NEW |