| 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 bool SupportsImplScrolling() const override; | 58 bool SupportsImplScrolling() const override; |
| 59 bool MainFrameWillHappenForTesting() override; | 59 bool MainFrameWillHappenForTesting() override; |
| 60 void UpdateTopControlsState(TopControlsState constraints, | 60 void UpdateTopControlsState(TopControlsState constraints, |
| 61 TopControlsState current, | 61 TopControlsState current, |
| 62 bool animate) override; | 62 bool animate) override; |
| 63 | 63 |
| 64 // SchedulerClient implementation | 64 // SchedulerClient implementation |
| 65 void WillBeginImplFrame(const BeginFrameArgs& args) override; | 65 void WillBeginImplFrame(const BeginFrameArgs& args) override; |
| 66 void DidFinishImplFrame() override; | 66 void DidFinishImplFrame() override; |
| 67 void ScheduledActionSendBeginMainFrame(const BeginFrameArgs& args) override; | 67 void ScheduledActionSendBeginMainFrame(const BeginFrameArgs& args) override; |
| 68 DrawResult ScheduledActionDrawAndSwapIfPossible() override; | 68 DrawResult ScheduledActionSubmitCompositorFrameIfPossible() override; |
| 69 DrawResult ScheduledActionDrawAndSwapForced() override; | 69 DrawResult ScheduledActionSubmitCompositorFrameForced() override; |
| 70 void ScheduledActionCommit() override; | 70 void ScheduledActionCommit() override; |
| 71 void ScheduledActionActivateSyncTree() override; | 71 void ScheduledActionActivateSyncTree() override; |
| 72 void ScheduledActionBeginCompositorFrameSinkCreation() override; | 72 void ScheduledActionBeginCompositorFrameSinkCreation() override; |
| 73 void ScheduledActionPrepareTiles() override; | 73 void ScheduledActionPrepareTiles() override; |
| 74 void ScheduledActionInvalidateCompositorFrameSink() override; | 74 void ScheduledActionInvalidateCompositorFrameSink() override; |
| 75 void SendBeginMainFrameNotExpectedSoon() override; | 75 void SendBeginMainFrameNotExpectedSoon() override; |
| 76 | 76 |
| 77 // LayerTreeHostImplClient implementation | 77 // LayerTreeHostImplClient implementation |
| 78 void DidLoseCompositorFrameSinkOnImplThread() override; | 78 void DidLoseCompositorFrameSinkOnImplThread() override; |
| 79 void SetBeginFrameSource(BeginFrameSource* source) override; | 79 void SetBeginFrameSource(BeginFrameSource* source) override; |
| 80 void DidSwapBuffersCompleteOnImplThread() override; | 80 void DidReceiveCompositorFrameAckOnImplThread() override; |
| 81 void OnCanDrawStateChanged(bool can_draw) override; | 81 void OnCanDrawStateChanged(bool can_draw) override; |
| 82 void NotifyReadyToActivate() override; | 82 void NotifyReadyToActivate() override; |
| 83 void NotifyReadyToDraw() override; | 83 void NotifyReadyToDraw() override; |
| 84 void SetNeedsRedrawOnImplThread() override; | 84 void SetNeedsRedrawOnImplThread() override; |
| 85 void SetNeedsOneBeginImplFrameOnImplThread() override; | 85 void SetNeedsOneBeginImplFrameOnImplThread() override; |
| 86 void SetNeedsPrepareTilesOnImplThread() override; | 86 void SetNeedsPrepareTilesOnImplThread() override; |
| 87 void SetNeedsCommitOnImplThread() override; | 87 void SetNeedsCommitOnImplThread() override; |
| 88 void SetVideoNeedsBeginFrames(bool needs_begin_frames) override; | 88 void SetVideoNeedsBeginFrames(bool needs_begin_frames) override; |
| 89 void PostAnimationEventsToMainThreadOnImplThread( | 89 void PostAnimationEventsToMainThreadOnImplThread( |
| 90 std::unique_ptr<AnimationEvents> events) override; | 90 std::unique_ptr<AnimationEvents> events) override; |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 233 private: | 233 private: |
| 234 DebugScopedSetImplThread impl_thread_; | 234 DebugScopedSetImplThread impl_thread_; |
| 235 DebugScopedSetMainThreadBlocked main_thread_blocked_; | 235 DebugScopedSetMainThreadBlocked main_thread_blocked_; |
| 236 | 236 |
| 237 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetImplThreadAndMainThreadBlocked); | 237 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetImplThreadAndMainThreadBlocked); |
| 238 }; | 238 }; |
| 239 | 239 |
| 240 } // namespace cc | 240 } // namespace cc |
| 241 | 241 |
| 242 #endif // CC_TREES_SINGLE_THREAD_PROXY_H_ | 242 #endif // CC_TREES_SINGLE_THREAD_PROXY_H_ |
| OLD | NEW |