| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_TEST_HOOKS_H_ | 5 #ifndef CC_TEST_TEST_HOOKS_H_ |
| 6 #define CC_TEST_TEST_HOOKS_H_ | 6 #define CC_TEST_TEST_HOOKS_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "cc/animation/animation_delegate.h" | 9 #include "cc/animation/animation_delegate.h" |
| 10 #include "cc/trees/layer_tree_host.h" | 10 #include "cc/trees/layer_tree_host.h" |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 CommitEarlyOutReason reason) {} | 34 CommitEarlyOutReason reason) {} |
| 35 virtual void ReadyToCommitOnThread(LayerTreeHostImpl* host_impl) {} | 35 virtual void ReadyToCommitOnThread(LayerTreeHostImpl* host_impl) {} |
| 36 virtual void WillPrepareTilesOnThread(LayerTreeHostImpl* host_impl) {} | 36 virtual void WillPrepareTilesOnThread(LayerTreeHostImpl* host_impl) {} |
| 37 virtual void BeginCommitOnThread(LayerTreeHostImpl* host_impl) {} | 37 virtual void BeginCommitOnThread(LayerTreeHostImpl* host_impl) {} |
| 38 virtual void WillCommitCompleteOnThread(LayerTreeHostImpl* host_impl) {} | 38 virtual void WillCommitCompleteOnThread(LayerTreeHostImpl* host_impl) {} |
| 39 virtual void CommitCompleteOnThread(LayerTreeHostImpl* host_impl) {} | 39 virtual void CommitCompleteOnThread(LayerTreeHostImpl* host_impl) {} |
| 40 virtual void WillActivateTreeOnThread(LayerTreeHostImpl* host_impl) {} | 40 virtual void WillActivateTreeOnThread(LayerTreeHostImpl* host_impl) {} |
| 41 virtual void DidActivateTreeOnThread(LayerTreeHostImpl* host_impl) {} | 41 virtual void DidActivateTreeOnThread(LayerTreeHostImpl* host_impl) {} |
| 42 virtual void InitializedRendererOnThread(LayerTreeHostImpl* host_impl, | 42 virtual void InitializedRendererOnThread(LayerTreeHostImpl* host_impl, |
| 43 bool success) {} | 43 bool success) {} |
| 44 virtual void WillPrepareToDrawOnThread(LayerTreeHostImpl* host_impl) {} |
| 44 virtual DrawResult PrepareToDrawOnThread( | 45 virtual DrawResult PrepareToDrawOnThread( |
| 45 LayerTreeHostImpl* host_impl, | 46 LayerTreeHostImpl* host_impl, |
| 46 LayerTreeHostImpl::FrameData* frame_data, | 47 LayerTreeHostImpl::FrameData* frame_data, |
| 47 DrawResult draw_result); | 48 DrawResult draw_result); |
| 48 virtual void DrawLayersOnThread(LayerTreeHostImpl* host_impl) {} | 49 virtual void DrawLayersOnThread(LayerTreeHostImpl* host_impl) {} |
| 49 virtual void NotifyReadyToActivateOnThread(LayerTreeHostImpl* host_impl) {} | 50 virtual void NotifyReadyToActivateOnThread(LayerTreeHostImpl* host_impl) {} |
| 50 virtual void NotifyReadyToDrawOnThread(LayerTreeHostImpl* host_impl) {} | 51 virtual void NotifyReadyToDrawOnThread(LayerTreeHostImpl* host_impl) {} |
| 51 virtual void NotifyAllTileTasksCompleted(LayerTreeHostImpl* host_impl) {} | 52 virtual void NotifyAllTileTasksCompleted(LayerTreeHostImpl* host_impl) {} |
| 52 virtual void NotifyTileStateChangedOnThread(LayerTreeHostImpl* host_impl, | 53 virtual void NotifyTileStateChangedOnThread(LayerTreeHostImpl* host_impl, |
| 53 const Tile* tile) {} | 54 const Tile* tile) {} |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 const proto::CompositorMessageToImpl& proto) {} | 119 const proto::CompositorMessageToImpl& proto) {} |
| 119 | 120 |
| 120 // Used to notify the test to destroy the Remote client LayerTreeHost on | 121 // Used to notify the test to destroy the Remote client LayerTreeHost on |
| 121 // receiving a CompositorMessageToImpl of type CLOSE_IMPL. | 122 // receiving a CompositorMessageToImpl of type CLOSE_IMPL. |
| 122 virtual void DestroyRemoteClientHost() {} | 123 virtual void DestroyRemoteClientHost() {} |
| 123 }; | 124 }; |
| 124 | 125 |
| 125 } // namespace cc | 126 } // namespace cc |
| 126 | 127 |
| 127 #endif // CC_TEST_TEST_HOOKS_H_ | 128 #endif // CC_TEST_TEST_HOOKS_H_ |
| OLD | NEW |