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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 | 98 |
99 layer->SetAnchorPoint(gfx::PointF()); | 99 layer->SetTransformOrigin(gfx::Point3F()); |
100 } | 100 } |
101 | 101 |
102 protected: | 102 protected: |
103 virtual void InitializeSettings(LayerTreeSettings* settings) OVERRIDE { | 103 virtual void InitializeSettings(LayerTreeSettings* settings) OVERRIDE { |
104 settings->minimum_occlusion_tracking_size = gfx::Size(); | 104 settings->minimum_occlusion_tracking_size = gfx::Size(); |
105 } | 105 } |
106 | 106 |
107 scoped_refptr<TestLayer> root_; | 107 scoped_refptr<TestLayer> root_; |
108 scoped_refptr<TestLayer> child_; | 108 scoped_refptr<TestLayer> child_; |
109 scoped_refptr<TestLayer> child2_; | 109 scoped_refptr<TestLayer> child2_; |
(...skipping 503 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
613 | 613 |
614 layer_tree_host()->SetRootLayer(layers[0]); | 614 layer_tree_host()->SetRootLayer(layers[0]); |
615 LayerTreeTest::SetupTree(); | 615 LayerTreeTest::SetupTree(); |
616 } | 616 } |
617 }; | 617 }; |
618 | 618 |
619 SINGLE_AND_MULTI_THREAD_TEST_F(LayerTreeHostOcclusionTestManySurfaces); | 619 SINGLE_AND_MULTI_THREAD_TEST_F(LayerTreeHostOcclusionTestManySurfaces); |
620 | 620 |
621 } // namespace | 621 } // namespace |
622 } // namespace cc | 622 } // namespace cc |
OLD | NEW |