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