| OLD | NEW |
| 1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 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_SINGLE_THREAD_PROXY_H_ | 5 #ifndef CC_TREES_SINGLE_THREAD_PROXY_H_ |
| 6 #define CC_TREES_SINGLE_THREAD_PROXY_H_ | 6 #define CC_TREES_SINGLE_THREAD_PROXY_H_ |
| 7 | 7 |
| 8 #include <limits> | 8 #include <limits> |
| 9 | 9 |
| 10 #include "base/cancelable_callback.h" | 10 #include "base/cancelable_callback.h" |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 SetEstimatedParentDrawTime(base::TimeDelta draw_time) override; | 86 void SetEstimatedParentDrawTime(base::TimeDelta draw_time) override; |
| 87 void SetMaxSwapsPendingOnImplThread(int max) override; | 87 void SetMaxSwapsPendingOnImplThread(int max) override; |
| 88 void DidSwapBuffersOnImplThread() override; | 88 void DidSwapBuffersOnImplThread() override; |
| 89 void DidSwapBuffersCompleteOnImplThread() override; | 89 void DidSwapBuffersCompleteOnImplThread() override; |
| 90 void OnResourcelessSoftareDrawStateChanged(bool resourceless_draw) override; |
| 90 void OnCanDrawStateChanged(bool can_draw) override; | 91 void OnCanDrawStateChanged(bool can_draw) override; |
| 91 void NotifyReadyToActivate() override; | 92 void NotifyReadyToActivate() override; |
| 92 void NotifyReadyToDraw() override; | 93 void NotifyReadyToDraw() override; |
| 93 void SetNeedsRedrawOnImplThread() override; | 94 void SetNeedsRedrawOnImplThread() override; |
| 94 void SetNeedsRedrawRectOnImplThread(const gfx::Rect& dirty_rect) override; | 95 void SetNeedsRedrawRectOnImplThread(const gfx::Rect& dirty_rect) override; |
| 95 void SetNeedsAnimateOnImplThread() override; | 96 void SetNeedsAnimateOnImplThread() override; |
| 96 void SetNeedsPrepareTilesOnImplThread() override; | 97 void SetNeedsPrepareTilesOnImplThread() override; |
| 97 void SetNeedsCommitOnImplThread() override; | 98 void SetNeedsCommitOnImplThread() override; |
| 98 void SetVideoNeedsBeginFrames(bool needs_begin_frames) override; | 99 void SetVideoNeedsBeginFrames(bool needs_begin_frames) override; |
| 99 void PostAnimationEventsToMainThreadOnImplThread( | 100 void PostAnimationEventsToMainThreadOnImplThread( |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 236 private: | 237 private: |
| 237 DebugScopedSetImplThread impl_thread_; | 238 DebugScopedSetImplThread impl_thread_; |
| 238 DebugScopedSetMainThreadBlocked main_thread_blocked_; | 239 DebugScopedSetMainThreadBlocked main_thread_blocked_; |
| 239 | 240 |
| 240 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetImplThreadAndMainThreadBlocked); | 241 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetImplThreadAndMainThreadBlocked); |
| 241 }; | 242 }; |
| 242 | 243 |
| 243 } // namespace cc | 244 } // namespace cc |
| 244 | 245 |
| 245 #endif // CC_TREES_SINGLE_THREAD_PROXY_H_ | 246 #endif // CC_TREES_SINGLE_THREAD_PROXY_H_ |
| OLD | NEW |