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/layers/texture_layer.h" | 5 #include "cc/layers/texture_layer.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <algorithm> | 10 #include <algorithm> |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 public: | 68 public: |
69 static std::unique_ptr<MockLayerTreeHost> Create( | 69 static std::unique_ptr<MockLayerTreeHost> Create( |
70 FakeLayerTreeHostClient* client, | 70 FakeLayerTreeHostClient* client, |
71 TaskGraphRunner* task_graph_runner) { | 71 TaskGraphRunner* task_graph_runner) { |
72 LayerTreeHost::InitParams params; | 72 LayerTreeHost::InitParams params; |
73 params.client = client; | 73 params.client = client; |
74 params.task_graph_runner = task_graph_runner; | 74 params.task_graph_runner = task_graph_runner; |
75 params.animation_host = | 75 params.animation_host = |
76 AnimationHost::CreateForTesting(ThreadInstance::MAIN); | 76 AnimationHost::CreateForTesting(ThreadInstance::MAIN); |
77 LayerTreeSettings settings; | 77 LayerTreeSettings settings; |
| 78 settings.verify_transform_tree_calculations = true; |
| 79 settings.verify_clip_tree_calculations = true; |
78 params.settings = &settings; | 80 params.settings = &settings; |
79 return base::WrapUnique(new MockLayerTreeHost(¶ms)); | 81 return base::WrapUnique(new MockLayerTreeHost(¶ms)); |
80 } | 82 } |
81 | 83 |
82 MOCK_METHOD0(SetNeedsCommit, void()); | 84 MOCK_METHOD0(SetNeedsCommit, void()); |
83 MOCK_METHOD0(SetNeedsUpdateLayers, void()); | 85 MOCK_METHOD0(SetNeedsUpdateLayers, void()); |
84 MOCK_METHOD0(StartRateLimiter, void()); | 86 MOCK_METHOD0(StartRateLimiter, void()); |
85 MOCK_METHOD0(StopRateLimiter, void()); | 87 MOCK_METHOD0(StopRateLimiter, void()); |
86 | 88 |
87 private: | 89 private: |
(...skipping 1359 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1447 int callback_count_; | 1449 int callback_count_; |
1448 scoped_refptr<Layer> root_; | 1450 scoped_refptr<Layer> root_; |
1449 scoped_refptr<TextureLayer> layer_; | 1451 scoped_refptr<TextureLayer> layer_; |
1450 }; | 1452 }; |
1451 | 1453 |
1452 SINGLE_AND_MULTI_THREAD_DIRECT_RENDERER_TEST_F( | 1454 SINGLE_AND_MULTI_THREAD_DIRECT_RENDERER_TEST_F( |
1453 TextureLayerWithMailboxImplThreadDeleted); | 1455 TextureLayerWithMailboxImplThreadDeleted); |
1454 | 1456 |
1455 } // namespace | 1457 } // namespace |
1456 } // namespace cc | 1458 } // namespace cc |
OLD | NEW |