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_THREADED_CHANNEL_H_ | 5 #ifndef CC_TREES_THREADED_CHANNEL_H_ |
6 #define CC_TREES_THREADED_CHANNEL_H_ | 6 #define CC_TREES_THREADED_CHANNEL_H_ |
7 | 7 |
8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "cc/base/cc_export.h" | 10 #include "cc/base/cc_export.h" |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 // ChannelMain Implementation | 78 // ChannelMain Implementation |
79 void SetThrottleFrameProductionOnImpl(bool throttle) override; | 79 void SetThrottleFrameProductionOnImpl(bool throttle) override; |
80 void UpdateTopControlsStateOnImpl(TopControlsState constraints, | 80 void UpdateTopControlsStateOnImpl(TopControlsState constraints, |
81 TopControlsState current, | 81 TopControlsState current, |
82 bool animate) override; | 82 bool animate) override; |
83 void InitializeOutputSurfaceOnImpl(OutputSurface* output_surface) override; | 83 void InitializeOutputSurfaceOnImpl(OutputSurface* output_surface) override; |
84 void MainThreadHasStoppedFlingingOnImpl() override; | 84 void MainThreadHasStoppedFlingingOnImpl() override; |
85 void SetInputThrottledUntilCommitOnImpl(bool is_throttled) override; | 85 void SetInputThrottledUntilCommitOnImpl(bool is_throttled) override; |
86 void SetDeferCommitsOnImpl(bool defer_commits) override; | 86 void SetDeferCommitsOnImpl(bool defer_commits) override; |
87 void SetNeedsCommitOnImpl() override; | 87 void SetNeedsCommitOnImpl() override; |
88 void BeginMainFrameAbortedOnImpl(CommitEarlyOutReason reason) override; | 88 void BeginMainFrameAbortedOnImpl( |
| 89 CommitEarlyOutReason reason, |
| 90 base::TimeTicks main_thread_start_time) override; |
89 void SetNeedsRedrawOnImpl(const gfx::Rect& damage_rect) override; | 91 void SetNeedsRedrawOnImpl(const gfx::Rect& damage_rect) override; |
90 | 92 |
91 // Blocking calls to ProxyImpl | 93 // Blocking calls to ProxyImpl |
92 void FinishAllRenderingOnImpl(CompletionEvent* completion) override; | 94 void FinishAllRenderingOnImpl(CompletionEvent* completion) override; |
93 void SetVisibleOnImpl(CompletionEvent* completion, bool visible) override; | 95 void SetVisibleOnImpl(CompletionEvent* completion, bool visible) override; |
94 void ReleaseOutputSurfaceOnImpl(CompletionEvent* completion) override; | 96 void ReleaseOutputSurfaceOnImpl(CompletionEvent* completion) override; |
95 void FinishGLOnImpl(CompletionEvent* completion) override; | 97 void FinishGLOnImpl(CompletionEvent* completion) override; |
96 void MainFrameWillHappenOnImplForTesting( | 98 void MainFrameWillHappenOnImplForTesting( |
97 CompletionEvent* completion, | 99 CompletionEvent* completion, |
98 bool* main_frame_will_happen) override; | 100 bool* main_frame_will_happen) override; |
99 void StartCommitOnImpl(CompletionEvent* completion) override; | 101 void StartCommitOnImpl(CompletionEvent* completion, |
| 102 base::TimeTicks main_thread_start_time) override; |
100 | 103 |
101 // ChannelImpl Implementation | 104 // ChannelImpl Implementation |
102 void DidCompleteSwapBuffers() override; | 105 void DidCompleteSwapBuffers() override; |
103 void SetRendererCapabilitiesMainCopy( | 106 void SetRendererCapabilitiesMainCopy( |
104 const RendererCapabilities& capabilities) override; | 107 const RendererCapabilities& capabilities) override; |
105 void BeginMainFrameNotExpectedSoon() override; | 108 void BeginMainFrameNotExpectedSoon() override; |
106 void DidCommitAndDrawFrame() override; | 109 void DidCommitAndDrawFrame() override; |
107 void SetAnimationEvents(scoped_ptr<AnimationEventsVector> queue) override; | 110 void SetAnimationEvents(scoped_ptr<AnimationEventsVector> queue) override; |
108 void DidLoseOutputSurface() override; | 111 void DidLoseOutputSurface() override; |
109 void RequestNewOutputSurface() override; | 112 void RequestNewOutputSurface() override; |
(...skipping 30 matching lines...) Expand all Loading... |
140 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner_; | 143 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner_; |
141 | 144 |
142 scoped_refptr<base::SingleThreadTaskRunner> impl_task_runner_; | 145 scoped_refptr<base::SingleThreadTaskRunner> impl_task_runner_; |
143 | 146 |
144 DISALLOW_COPY_AND_ASSIGN(ThreadedChannel); | 147 DISALLOW_COPY_AND_ASSIGN(ThreadedChannel); |
145 }; | 148 }; |
146 | 149 |
147 } // namespace cc | 150 } // namespace cc |
148 | 151 |
149 #endif // CC_TREES_THREADED_CHANNEL_H_ | 152 #endif // CC_TREES_THREADED_CHANNEL_H_ |
OLD | NEW |