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 23 matching lines...) Expand all Loading... |
34 DidDrawAllLayers(frame_data); | 34 DidDrawAllLayers(frame_data); |
35 } | 35 } |
36 | 36 |
37 void CreatePendingTree() override; | 37 void CreatePendingTree() override; |
38 | 38 |
39 void NotifyTileStateChanged(const Tile* tile) override; | 39 void NotifyTileStateChanged(const Tile* tile) override; |
40 BeginFrameArgs CurrentBeginFrameArgs() const override; | 40 BeginFrameArgs CurrentBeginFrameArgs() const override; |
41 void AdvanceToNextFrame(base::TimeDelta advance_by); | 41 void AdvanceToNextFrame(base::TimeDelta advance_by); |
42 void UpdateNumChildrenAndDrawPropertiesForActiveTree(); | 42 void UpdateNumChildrenAndDrawPropertiesForActiveTree(); |
43 static void UpdateNumChildrenAndDrawProperties(LayerTreeImpl* layerTree); | 43 static void UpdateNumChildrenAndDrawProperties(LayerTreeImpl* layerTree); |
44 static int RecursiveUpdateNumChildren(LayerImpl* layer); | |
45 | 44 |
46 using LayerTreeHostImpl::ActivateSyncTree; | 45 using LayerTreeHostImpl::ActivateSyncTree; |
47 using LayerTreeHostImpl::prepare_tiles_needed; | 46 using LayerTreeHostImpl::prepare_tiles_needed; |
48 using LayerTreeHostImpl::is_likely_to_require_a_draw; | 47 using LayerTreeHostImpl::is_likely_to_require_a_draw; |
49 using LayerTreeHostImpl::RemoveRenderPasses; | 48 using LayerTreeHostImpl::RemoveRenderPasses; |
50 | 49 |
51 bool notify_tile_state_changed_called() const { | 50 bool notify_tile_state_changed_called() const { |
52 return notify_tile_state_changed_called_; | 51 return notify_tile_state_changed_called_; |
53 } | 52 } |
54 void set_notify_tile_state_changed_called(bool called) { | 53 void set_notify_tile_state_changed_called(bool called) { |
55 notify_tile_state_changed_called_ = called; | 54 notify_tile_state_changed_called_ = called; |
56 } | 55 } |
57 | 56 |
58 AnimationHost* animation_host() const; | 57 AnimationHost* animation_host() const; |
59 | 58 |
60 private: | 59 private: |
61 FakeLayerTreeHostImplClient client_; | 60 FakeLayerTreeHostImplClient client_; |
62 FakeRenderingStatsInstrumentation stats_instrumentation_; | 61 FakeRenderingStatsInstrumentation stats_instrumentation_; |
63 bool notify_tile_state_changed_called_; | 62 bool notify_tile_state_changed_called_; |
64 }; | 63 }; |
65 | 64 |
66 } // namespace cc | 65 } // namespace cc |
67 | 66 |
68 #endif // CC_TEST_FAKE_LAYER_TREE_HOST_IMPL_H_ | 67 #endif // CC_TEST_FAKE_LAYER_TREE_HOST_IMPL_H_ |
OLD | NEW |