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 #ifndef CC_TEST_FAKE_LAYER_TREE_HOST_IMPL_H_ | 5 #ifndef CC_TEST_FAKE_LAYER_TREE_HOST_IMPL_H_ |
6 #define CC_TEST_FAKE_LAYER_TREE_HOST_IMPL_H_ | 6 #define CC_TEST_FAKE_LAYER_TREE_HOST_IMPL_H_ |
7 | 7 |
8 #include "cc/test/fake_layer_tree_host_impl_client.h" | 8 #include "cc/test/fake_layer_tree_host_impl_client.h" |
9 #include "cc/test/fake_rendering_stats_instrumentation.h" | 9 #include "cc/test/fake_rendering_stats_instrumentation.h" |
10 #include "cc/trees/layer_tree_host_impl.h" | 10 #include "cc/trees/layer_tree_host_impl.h" |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 | 49 |
50 bool notify_tile_state_changed_called() const { | 50 bool notify_tile_state_changed_called() const { |
51 return notify_tile_state_changed_called_; | 51 return notify_tile_state_changed_called_; |
52 } | 52 } |
53 void set_notify_tile_state_changed_called(bool called) { | 53 void set_notify_tile_state_changed_called(bool called) { |
54 notify_tile_state_changed_called_ = called; | 54 notify_tile_state_changed_called_ = called; |
55 } | 55 } |
56 | 56 |
57 AnimationHost* animation_host() const; | 57 AnimationHost* animation_host() const; |
58 | 58 |
| 59 FakeLayerTreeHostImplClient* client() { return &client_; } |
| 60 |
59 private: | 61 private: |
60 FakeLayerTreeHostImplClient client_; | 62 FakeLayerTreeHostImplClient client_; |
61 FakeRenderingStatsInstrumentation stats_instrumentation_; | 63 FakeRenderingStatsInstrumentation stats_instrumentation_; |
62 bool notify_tile_state_changed_called_; | 64 bool notify_tile_state_changed_called_; |
63 }; | 65 }; |
64 | 66 |
65 } // namespace cc | 67 } // namespace cc |
66 | 68 |
67 #endif // CC_TEST_FAKE_LAYER_TREE_HOST_IMPL_H_ | 69 #endif // CC_TEST_FAKE_LAYER_TREE_HOST_IMPL_H_ |
OLD | NEW |