| 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_TREES_PROXY_IMPL_H_ | 5 #ifndef CC_TREES_PROXY_IMPL_H_ |
| 6 #define CC_TREES_PROXY_IMPL_H_ | 6 #define CC_TREES_PROXY_IMPL_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 // the main thread is blocked for a commit. | 62 // the main thread is blocked for a commit. |
| 63 struct BlockedMainCommitOnly { | 63 struct BlockedMainCommitOnly { |
| 64 BlockedMainCommitOnly(); | 64 BlockedMainCommitOnly(); |
| 65 ~BlockedMainCommitOnly(); | 65 ~BlockedMainCommitOnly(); |
| 66 LayerTreeHostInProcess* layer_tree_host; | 66 LayerTreeHostInProcess* layer_tree_host; |
| 67 }; | 67 }; |
| 68 | 68 |
| 69 // LayerTreeHostImplClient implementation | 69 // LayerTreeHostImplClient implementation |
| 70 void DidLoseCompositorFrameSinkOnImplThread() override; | 70 void DidLoseCompositorFrameSinkOnImplThread() override; |
| 71 void SetBeginFrameSource(BeginFrameSource* source) override; | 71 void SetBeginFrameSource(BeginFrameSource* source) override; |
| 72 void SetEstimatedParentDrawTime(base::TimeDelta draw_time) override; | |
| 73 void DidSwapBuffersCompleteOnImplThread() override; | 72 void DidSwapBuffersCompleteOnImplThread() override; |
| 74 void OnCanDrawStateChanged(bool can_draw) override; | 73 void OnCanDrawStateChanged(bool can_draw) override; |
| 75 void NotifyReadyToActivate() override; | 74 void NotifyReadyToActivate() override; |
| 76 void NotifyReadyToDraw() override; | 75 void NotifyReadyToDraw() override; |
| 77 // Please call these 2 functions through | 76 // Please call these 2 functions through |
| 78 // LayerTreeHostImpl's SetNeedsRedraw() and SetNeedsOneBeginImplFrame(). | 77 // LayerTreeHostImpl's SetNeedsRedraw() and SetNeedsOneBeginImplFrame(). |
| 79 void SetNeedsRedrawOnImplThread() override; | 78 void SetNeedsRedrawOnImplThread() override; |
| 80 void SetNeedsOneBeginImplFrameOnImplThread() override; | 79 void SetNeedsOneBeginImplFrameOnImplThread() override; |
| 81 void SetNeedsPrepareTilesOnImplThread() override; | 80 void SetNeedsPrepareTilesOnImplThread() override; |
| 82 void SetNeedsCommitOnImplThread() override; | 81 void SetNeedsCommitOnImplThread() override; |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 // Use accessors instead of this variable directly. | 145 // Use accessors instead of this variable directly. |
| 147 BlockedMainCommitOnly main_thread_blocked_commit_vars_unsafe_; | 146 BlockedMainCommitOnly main_thread_blocked_commit_vars_unsafe_; |
| 148 BlockedMainCommitOnly& blocked_main_commit(); | 147 BlockedMainCommitOnly& blocked_main_commit(); |
| 149 | 148 |
| 150 DISALLOW_COPY_AND_ASSIGN(ProxyImpl); | 149 DISALLOW_COPY_AND_ASSIGN(ProxyImpl); |
| 151 }; | 150 }; |
| 152 | 151 |
| 153 } // namespace cc | 152 } // namespace cc |
| 154 | 153 |
| 155 #endif // CC_TREES_PROXY_IMPL_H_ | 154 #endif // CC_TREES_PROXY_IMPL_H_ |
| OLD | NEW |