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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 public: | 69 public: |
70 static std::unique_ptr<MockLayerTreeHost> Create( | 70 static std::unique_ptr<MockLayerTreeHost> Create( |
71 FakeLayerTreeHostClient* client, | 71 FakeLayerTreeHostClient* client, |
72 TaskGraphRunner* task_graph_runner, | 72 TaskGraphRunner* task_graph_runner, |
73 MutatorHost* mutator_host) { | 73 MutatorHost* mutator_host) { |
74 LayerTreeHost::InitParams params; | 74 LayerTreeHost::InitParams params; |
75 params.client = client; | 75 params.client = client; |
76 params.task_graph_runner = task_graph_runner; | 76 params.task_graph_runner = task_graph_runner; |
77 params.mutator_host = mutator_host; | 77 params.mutator_host = mutator_host; |
78 LayerTreeSettings settings; | 78 LayerTreeSettings settings; |
79 settings.verify_clip_tree_calculations = true; | |
80 params.settings = &settings; | 79 params.settings = &settings; |
81 return base::WrapUnique(new MockLayerTreeHost(¶ms)); | 80 return base::WrapUnique(new MockLayerTreeHost(¶ms)); |
82 } | 81 } |
83 | 82 |
84 MOCK_METHOD0(SetNeedsCommit, void()); | 83 MOCK_METHOD0(SetNeedsCommit, void()); |
85 MOCK_METHOD0(SetNeedsUpdateLayers, void()); | 84 MOCK_METHOD0(SetNeedsUpdateLayers, void()); |
86 MOCK_METHOD0(StartRateLimiter, void()); | 85 MOCK_METHOD0(StartRateLimiter, void()); |
87 MOCK_METHOD0(StopRateLimiter, void()); | 86 MOCK_METHOD0(StopRateLimiter, void()); |
88 | 87 |
89 private: | 88 private: |
(...skipping 1406 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1496 base::ThreadChecker main_thread_; | 1495 base::ThreadChecker main_thread_; |
1497 int callback_count_; | 1496 int callback_count_; |
1498 scoped_refptr<Layer> root_; | 1497 scoped_refptr<Layer> root_; |
1499 scoped_refptr<TextureLayer> layer_; | 1498 scoped_refptr<TextureLayer> layer_; |
1500 }; | 1499 }; |
1501 | 1500 |
1502 SINGLE_AND_MULTI_THREAD_TEST_F(TextureLayerWithMailboxImplThreadDeleted); | 1501 SINGLE_AND_MULTI_THREAD_TEST_F(TextureLayerWithMailboxImplThreadDeleted); |
1503 | 1502 |
1504 } // namespace | 1503 } // namespace |
1505 } // namespace cc | 1504 } // namespace cc |
OLD | NEW |