| 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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 | 78 |
| 79 friend class ProxyImplForTest; | 79 friend class ProxyImplForTest; |
| 80 | 80 |
| 81 // LayerTreeHostImplClient implementation | 81 // LayerTreeHostImplClient implementation |
| 82 void UpdateRendererCapabilitiesOnImplThread() override; | 82 void UpdateRendererCapabilitiesOnImplThread() override; |
| 83 void DidLoseOutputSurfaceOnImplThread() override; | 83 void DidLoseOutputSurfaceOnImplThread() override; |
| 84 void CommitVSyncParameters(base::TimeTicks timebase, | 84 void CommitVSyncParameters(base::TimeTicks timebase, |
| 85 base::TimeDelta interval) override; | 85 base::TimeDelta interval) override; |
| 86 void SetBeginFrameSource(BeginFrameSource* source) override; | 86 void SetBeginFrameSource(BeginFrameSource* source) override; |
| 87 void SetEstimatedParentDrawTime(base::TimeDelta draw_time) override; | 87 void SetEstimatedParentDrawTime(base::TimeDelta draw_time) override; |
| 88 void DidSwapBuffersOnImplThread() override; | |
| 89 void DidSwapBuffersCompleteOnImplThread() override; | 88 void DidSwapBuffersCompleteOnImplThread() override; |
| 90 void OnCanDrawStateChanged(bool can_draw) override; | 89 void OnCanDrawStateChanged(bool can_draw) override; |
| 91 void NotifyReadyToActivate() override; | 90 void NotifyReadyToActivate() override; |
| 92 void NotifyReadyToDraw() override; | 91 void NotifyReadyToDraw() override; |
| 93 // Please call these 3 functions through | 92 // Please call these 3 functions through |
| 94 // LayerTreeHostImpl's SetNeedsRedraw(), SetNeedsRedrawRect() and | 93 // LayerTreeHostImpl's SetNeedsRedraw(), SetNeedsRedrawRect() and |
| 95 // SetNeedsOneBeginImplFrame(). | 94 // SetNeedsOneBeginImplFrame(). |
| 96 void SetNeedsRedrawOnImplThread() override; | 95 void SetNeedsRedrawOnImplThread() override; |
| 97 void SetNeedsRedrawRectOnImplThread(const gfx::Rect& dirty_rect) override; | 96 void SetNeedsRedrawRectOnImplThread(const gfx::Rect& dirty_rect) override; |
| 98 void SetNeedsOneBeginImplFrameOnImplThread() override; | 97 void SetNeedsOneBeginImplFrameOnImplThread() override; |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 // Use accessors instead of this variable directly. | 165 // Use accessors instead of this variable directly. |
| 167 BlockedMainCommitOnly main_thread_blocked_commit_vars_unsafe_; | 166 BlockedMainCommitOnly main_thread_blocked_commit_vars_unsafe_; |
| 168 BlockedMainCommitOnly& blocked_main_commit(); | 167 BlockedMainCommitOnly& blocked_main_commit(); |
| 169 | 168 |
| 170 DISALLOW_COPY_AND_ASSIGN(ProxyImpl); | 169 DISALLOW_COPY_AND_ASSIGN(ProxyImpl); |
| 171 }; | 170 }; |
| 172 | 171 |
| 173 } // namespace cc | 172 } // namespace cc |
| 174 | 173 |
| 175 #endif // CC_TREES_PROXY_IMPL_H_ | 174 #endif // CC_TREES_PROXY_IMPL_H_ |
| OLD | NEW |