| 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 "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "cc/base/completion_event.h" | 10 #include "cc/base/completion_event.h" |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 LayerTreeHost* layer_tree_host; | 71 LayerTreeHost* layer_tree_host; |
| 72 }; | 72 }; |
| 73 | 73 |
| 74 friend class ProxyImplForTest; | 74 friend class ProxyImplForTest; |
| 75 | 75 |
| 76 // LayerTreeHostImplClient implementation | 76 // LayerTreeHostImplClient implementation |
| 77 void UpdateRendererCapabilitiesOnImplThread() override; | 77 void UpdateRendererCapabilitiesOnImplThread() override; |
| 78 void DidLoseOutputSurfaceOnImplThread() override; | 78 void DidLoseOutputSurfaceOnImplThread() override; |
| 79 void CommitVSyncParameters(base::TimeTicks timebase, | 79 void CommitVSyncParameters(base::TimeTicks timebase, |
| 80 base::TimeDelta interval) override; | 80 base::TimeDelta interval) override; |
| 81 void SetBeginFrameSource(BeginFrameSource* source) override; |
| 81 void SetEstimatedParentDrawTime(base::TimeDelta draw_time) override; | 82 void SetEstimatedParentDrawTime(base::TimeDelta draw_time) override; |
| 82 void DidSwapBuffersOnImplThread() override; | 83 void DidSwapBuffersOnImplThread() override; |
| 83 void DidSwapBuffersCompleteOnImplThread() override; | 84 void DidSwapBuffersCompleteOnImplThread() override; |
| 84 void OnCanDrawStateChanged(bool can_draw) override; | 85 void OnCanDrawStateChanged(bool can_draw) override; |
| 85 void NotifyReadyToActivate() override; | 86 void NotifyReadyToActivate() override; |
| 86 void NotifyReadyToDraw() override; | 87 void NotifyReadyToDraw() override; |
| 87 // Please call these 3 functions through | 88 // Please call these 3 functions through |
| 88 // LayerTreeHostImpl's SetNeedsRedraw(), SetNeedsRedrawRect() and | 89 // LayerTreeHostImpl's SetNeedsRedraw(), SetNeedsRedrawRect() and |
| 89 // SetNeedsOneBeginImplFrame(). | 90 // SetNeedsOneBeginImplFrame(). |
| 90 void SetNeedsRedrawOnImplThread() override; | 91 void SetNeedsRedrawOnImplThread() override; |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 // Use accessors instead of this variable directly. | 169 // Use accessors instead of this variable directly. |
| 169 BlockedMainCommitOnly main_thread_blocked_commit_vars_unsafe_; | 170 BlockedMainCommitOnly main_thread_blocked_commit_vars_unsafe_; |
| 170 BlockedMainCommitOnly& blocked_main_commit(); | 171 BlockedMainCommitOnly& blocked_main_commit(); |
| 171 | 172 |
| 172 DISALLOW_COPY_AND_ASSIGN(ProxyImpl); | 173 DISALLOW_COPY_AND_ASSIGN(ProxyImpl); |
| 173 }; | 174 }; |
| 174 | 175 |
| 175 } // namespace cc | 176 } // namespace cc |
| 176 | 177 |
| 177 #endif // CC_TREES_PROXY_IMPL_H_ | 178 #endif // CC_TREES_PROXY_IMPL_H_ |
| OLD | NEW |