| 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 21 matching lines...) Expand all Loading... |
| 32 LayerTreeHostImpl::FrameData frame_data; | 32 LayerTreeHostImpl::FrameData frame_data; |
| 33 PrepareToDraw(&frame_data); | 33 PrepareToDraw(&frame_data); |
| 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 bool force_skip_verify_visible_rect_calculations = false); | 43 static void UpdateNumChildrenAndDrawProperties(LayerTreeImpl* layerTree); |
| 44 static void UpdateNumChildrenAndDrawProperties( | |
| 45 LayerTreeImpl* layerTree, | |
| 46 bool force_skip_verify_visible_rect_calculations = false); | |
| 47 static int RecursiveUpdateNumChildren(LayerImpl* layer); | 44 static int RecursiveUpdateNumChildren(LayerImpl* layer); |
| 48 | 45 |
| 49 using LayerTreeHostImpl::ActivateSyncTree; | 46 using LayerTreeHostImpl::ActivateSyncTree; |
| 50 using LayerTreeHostImpl::prepare_tiles_needed; | 47 using LayerTreeHostImpl::prepare_tiles_needed; |
| 51 using LayerTreeHostImpl::is_likely_to_require_a_draw; | 48 using LayerTreeHostImpl::is_likely_to_require_a_draw; |
| 52 using LayerTreeHostImpl::RemoveRenderPasses; | 49 using LayerTreeHostImpl::RemoveRenderPasses; |
| 53 | 50 |
| 54 bool notify_tile_state_changed_called() const { | 51 bool notify_tile_state_changed_called() const { |
| 55 return notify_tile_state_changed_called_; | 52 return notify_tile_state_changed_called_; |
| 56 } | 53 } |
| 57 void set_notify_tile_state_changed_called(bool called) { | 54 void set_notify_tile_state_changed_called(bool called) { |
| 58 notify_tile_state_changed_called_ = called; | 55 notify_tile_state_changed_called_ = called; |
| 59 } | 56 } |
| 60 | 57 |
| 61 AnimationHost* animation_host() const; | 58 AnimationHost* animation_host() const; |
| 62 | 59 |
| 63 private: | 60 private: |
| 64 FakeLayerTreeHostImplClient client_; | 61 FakeLayerTreeHostImplClient client_; |
| 65 FakeRenderingStatsInstrumentation stats_instrumentation_; | 62 FakeRenderingStatsInstrumentation stats_instrumentation_; |
| 66 bool notify_tile_state_changed_called_; | 63 bool notify_tile_state_changed_called_; |
| 67 }; | 64 }; |
| 68 | 65 |
| 69 } // namespace cc | 66 } // namespace cc |
| 70 | 67 |
| 71 #endif // CC_TEST_FAKE_LAYER_TREE_HOST_IMPL_H_ | 68 #endif // CC_TEST_FAKE_LAYER_TREE_HOST_IMPL_H_ |
| OLD | NEW |