| 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/test/layer_tree_test.h" | 8 #include "cc/test/layer_tree_test.h" |
| 9 #include "cc/test/occlusion_tracker_test_common.h" | 9 #include "cc/test/occlusion_tracker_test_common.h" |
| 10 | 10 |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 if (parent) | 91 if (parent) |
| 92 parent->AddChild(layer); | 92 parent->AddChild(layer); |
| 93 layer->SetTransform(transform); | 93 layer->SetTransform(transform); |
| 94 layer->SetPosition(position); | 94 layer->SetPosition(position); |
| 95 layer->SetBounds(bounds); | 95 layer->SetBounds(bounds); |
| 96 layer->SetContentsOpaque(opaque); | 96 layer->SetContentsOpaque(opaque); |
| 97 | 97 |
| 98 layer->SetAnchorPoint(gfx::PointF()); | 98 layer->SetAnchorPoint(gfx::PointF()); |
| 99 } | 99 } |
| 100 | 100 |
| 101 virtual void InitializeSettings(LayerTreeSettings* settings) OVERRIDE { |
| 102 settings->max_bytes_pending_upload = 16 * 1024 * 1024; |
| 103 } |
| 104 |
| 101 protected: | 105 protected: |
| 102 scoped_refptr<TestLayer> root_; | 106 scoped_refptr<TestLayer> root_; |
| 103 scoped_refptr<TestLayer> child_; | 107 scoped_refptr<TestLayer> child_; |
| 104 scoped_refptr<TestLayer> child2_; | 108 scoped_refptr<TestLayer> child2_; |
| 105 scoped_refptr<TestLayer> grand_child_; | 109 scoped_refptr<TestLayer> grand_child_; |
| 106 scoped_refptr<TestLayer> mask_; | 110 scoped_refptr<TestLayer> mask_; |
| 107 | 111 |
| 108 gfx::Transform identity_matrix_; | 112 gfx::Transform identity_matrix_; |
| 109 }; | 113 }; |
| 110 | 114 |
| (...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 468 | 472 |
| 469 layer_tree_host()->SetRootLayer(layers[0]); | 473 layer_tree_host()->SetRootLayer(layers[0]); |
| 470 LayerTreeTest::SetupTree(); | 474 LayerTreeTest::SetupTree(); |
| 471 } | 475 } |
| 472 }; | 476 }; |
| 473 | 477 |
| 474 SINGLE_AND_MULTI_THREAD_TEST_F(LayerTreeHostOcclusionTestManySurfaces); | 478 SINGLE_AND_MULTI_THREAD_TEST_F(LayerTreeHostOcclusionTestManySurfaces); |
| 475 | 479 |
| 476 } // namespace | 480 } // namespace |
| 477 } // namespace cc | 481 } // namespace cc |
| OLD | NEW |