| 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_TREES_LAYER_TREE_HOST_CLIENT_H_ | 5 #ifndef CC_TREES_LAYER_TREE_HOST_CLIENT_H_ |
| 6 #define CC_TREES_LAYER_TREE_HOST_CLIENT_H_ | 6 #define CC_TREES_LAYER_TREE_HOST_CLIENT_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| 11 | 11 |
| 12 namespace gfx { | 12 namespace gfx { |
| 13 class Vector2d; | |
| 14 class Vector2dF; | 13 class Vector2dF; |
| 15 } | 14 } |
| 16 | 15 |
| 17 namespace cc { | 16 namespace cc { |
| 18 class ContextProvider; | |
| 19 class InputHandlerClient; | |
| 20 class CompositorFrameSink; | 17 class CompositorFrameSink; |
| 21 struct BeginFrameArgs; | 18 struct BeginFrameArgs; |
| 22 | 19 |
| 23 class LayerTreeHostClient { | 20 class LayerTreeHostClient { |
| 24 public: | 21 public: |
| 25 virtual void WillBeginMainFrame() = 0; | 22 virtual void WillBeginMainFrame() = 0; |
| 26 // Marks finishing compositing-related tasks on the main thread. In threaded | 23 // Marks finishing compositing-related tasks on the main thread. In threaded |
| 27 // mode, this corresponds to DidCommit(). | 24 // mode, this corresponds to DidCommit(). |
| 28 virtual void BeginMainFrame(const BeginFrameArgs& args) = 0; | 25 virtual void BeginMainFrame(const BeginFrameArgs& args) = 0; |
| 29 virtual void BeginMainFrameNotExpectedSoon() = 0; | 26 virtual void BeginMainFrameNotExpectedSoon() = 0; |
| (...skipping 29 matching lines...) Expand all Loading... |
| 59 virtual void DidReceiveCompositorFrameAck() = 0; | 56 virtual void DidReceiveCompositorFrameAck() = 0; |
| 60 virtual void DidCompletePageScaleAnimation() = 0; | 57 virtual void DidCompletePageScaleAnimation() = 0; |
| 61 | 58 |
| 62 protected: | 59 protected: |
| 63 virtual ~LayerTreeHostClient() {} | 60 virtual ~LayerTreeHostClient() {} |
| 64 }; | 61 }; |
| 65 | 62 |
| 66 } // namespace cc | 63 } // namespace cc |
| 67 | 64 |
| 68 #endif // CC_TREES_LAYER_TREE_HOST_CLIENT_H_ | 65 #endif // CC_TREES_LAYER_TREE_HOST_CLIENT_H_ |
| OLD | NEW |