| 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 private: | 58 private: |
| 59 // The members of this struct should be accessed on the impl thread only when | 59 // The members of this struct should be accessed on the impl thread only when |
| 60 // the main thread is blocked for a commit. | 60 // the main thread is blocked for a commit. |
| 61 struct BlockedMainCommitOnly { | 61 struct BlockedMainCommitOnly { |
| 62 BlockedMainCommitOnly(); | 62 BlockedMainCommitOnly(); |
| 63 ~BlockedMainCommitOnly(); | 63 ~BlockedMainCommitOnly(); |
| 64 LayerTreeHost* layer_tree_host; | 64 LayerTreeHost* layer_tree_host; |
| 65 }; | 65 }; |
| 66 | 66 |
| 67 // LayerTreeHostImplClient implementation | 67 // LayerTreeHostImplClient implementation |
| 68 void UpdateRendererCapabilitiesOnImplThread() override; |
| 68 void DidLoseOutputSurfaceOnImplThread() override; | 69 void DidLoseOutputSurfaceOnImplThread() override; |
| 69 void CommitVSyncParameters(base::TimeTicks timebase, | 70 void CommitVSyncParameters(base::TimeTicks timebase, |
| 70 base::TimeDelta interval) override; | 71 base::TimeDelta interval) override; |
| 71 void SetBeginFrameSource(BeginFrameSource* source) override; | 72 void SetBeginFrameSource(BeginFrameSource* source) override; |
| 72 void SetEstimatedParentDrawTime(base::TimeDelta draw_time) override; | 73 void SetEstimatedParentDrawTime(base::TimeDelta draw_time) override; |
| 73 void DidSwapBuffersCompleteOnImplThread() override; | 74 void DidSwapBuffersCompleteOnImplThread() override; |
| 74 void OnCanDrawStateChanged(bool can_draw) override; | 75 void OnCanDrawStateChanged(bool can_draw) override; |
| 75 void NotifyReadyToActivate() override; | 76 void NotifyReadyToActivate() override; |
| 76 void NotifyReadyToDraw() override; | 77 void NotifyReadyToDraw() override; |
| 77 // Please call these 3 functions through | 78 // Please call these 3 functions through |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 // Use accessors instead of this variable directly. | 151 // Use accessors instead of this variable directly. |
| 151 BlockedMainCommitOnly main_thread_blocked_commit_vars_unsafe_; | 152 BlockedMainCommitOnly main_thread_blocked_commit_vars_unsafe_; |
| 152 BlockedMainCommitOnly& blocked_main_commit(); | 153 BlockedMainCommitOnly& blocked_main_commit(); |
| 153 | 154 |
| 154 DISALLOW_COPY_AND_ASSIGN(ProxyImpl); | 155 DISALLOW_COPY_AND_ASSIGN(ProxyImpl); |
| 155 }; | 156 }; |
| 156 | 157 |
| 157 } // namespace cc | 158 } // namespace cc |
| 158 | 159 |
| 159 #endif // CC_TREES_PROXY_IMPL_H_ | 160 #endif // CC_TREES_PROXY_IMPL_H_ |
| OLD | NEW |