| 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_THREAD_PROXY_H_ | 5 #ifndef CC_TREES_THREAD_PROXY_H_ |
| 6 #define CC_TREES_THREAD_PROXY_H_ | 6 #define CC_TREES_THREAD_PROXY_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 bool BeginMainFrameRequested() const override; | 168 bool BeginMainFrameRequested() const override; |
| 169 void MainThreadHasStoppedFlinging() override; | 169 void MainThreadHasStoppedFlinging() override; |
| 170 void Start() override; | 170 void Start() override; |
| 171 void Stop() override; | 171 void Stop() override; |
| 172 size_t MaxPartialTextureUpdates() const override; | 172 size_t MaxPartialTextureUpdates() const override; |
| 173 void ForceSerializeOnSwapBuffers() override; | 173 void ForceSerializeOnSwapBuffers() override; |
| 174 bool SupportsImplScrolling() const override; | 174 bool SupportsImplScrolling() const override; |
| 175 void SetDebugState(const LayerTreeDebugState& debug_state) override; | 175 void SetDebugState(const LayerTreeDebugState& debug_state) override; |
| 176 void AsValueInto(base::debug::TracedValue* value) const override; | 176 void AsValueInto(base::debug::TracedValue* value) const override; |
| 177 bool MainFrameWillHappenForTesting() override; | 177 bool MainFrameWillHappenForTesting() override; |
| 178 void SetChildrenNeedBeginFrames(bool children_need_begin_frames) override; |
| 178 | 179 |
| 179 // LayerTreeHostImplClient implementation | 180 // LayerTreeHostImplClient implementation |
| 180 void UpdateRendererCapabilitiesOnImplThread() override; | 181 void UpdateRendererCapabilitiesOnImplThread() override; |
| 181 void DidLoseOutputSurfaceOnImplThread() override; | 182 void DidLoseOutputSurfaceOnImplThread() override; |
| 182 void CommitVSyncParameters(base::TimeTicks timebase, | 183 void CommitVSyncParameters(base::TimeTicks timebase, |
| 183 base::TimeDelta interval) override; | 184 base::TimeDelta interval) override; |
| 184 void SetEstimatedParentDrawTime(base::TimeDelta draw_time) override; | 185 void SetEstimatedParentDrawTime(base::TimeDelta draw_time) override; |
| 185 void SetMaxSwapsPendingOnImplThread(int max) override; | 186 void SetMaxSwapsPendingOnImplThread(int max) override; |
| 186 void DidSwapBuffersOnImplThread() override; | 187 void DidSwapBuffersOnImplThread() override; |
| 187 void DidSwapBuffersCompleteOnImplThread() override; | 188 void DidSwapBuffersCompleteOnImplThread() override; |
| (...skipping 27 matching lines...) Expand all Loading... |
| 215 void ScheduledActionAnimate() override; | 216 void ScheduledActionAnimate() override; |
| 216 void ScheduledActionCommit() override; | 217 void ScheduledActionCommit() override; |
| 217 void ScheduledActionActivateSyncTree() override; | 218 void ScheduledActionActivateSyncTree() override; |
| 218 void ScheduledActionBeginOutputSurfaceCreation() override; | 219 void ScheduledActionBeginOutputSurfaceCreation() override; |
| 219 void ScheduledActionManageTiles() override; | 220 void ScheduledActionManageTiles() override; |
| 220 void DidAnticipatedDrawTimeChange(base::TimeTicks time) override; | 221 void DidAnticipatedDrawTimeChange(base::TimeTicks time) override; |
| 221 base::TimeDelta DrawDurationEstimate() override; | 222 base::TimeDelta DrawDurationEstimate() override; |
| 222 base::TimeDelta BeginMainFrameToCommitDurationEstimate() override; | 223 base::TimeDelta BeginMainFrameToCommitDurationEstimate() override; |
| 223 base::TimeDelta CommitToActivateDurationEstimate() override; | 224 base::TimeDelta CommitToActivateDurationEstimate() override; |
| 224 void DidBeginImplFrameDeadline() override; | 225 void DidBeginImplFrameDeadline() override; |
| 226 void SendBeginFramesToChildren(const BeginFrameArgs& args) override; |
| 225 | 227 |
| 226 // ResourceUpdateControllerClient implementation | 228 // ResourceUpdateControllerClient implementation |
| 227 void ReadyToFinalizeTextureUpdates() override; | 229 void ReadyToFinalizeTextureUpdates() override; |
| 228 | 230 |
| 229 protected: | 231 protected: |
| 230 ThreadProxy( | 232 ThreadProxy( |
| 231 LayerTreeHost* layer_tree_host, | 233 LayerTreeHost* layer_tree_host, |
| 232 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner, | 234 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner, |
| 233 scoped_refptr<base::SingleThreadTaskRunner> impl_task_runner, | 235 scoped_refptr<base::SingleThreadTaskRunner> impl_task_runner, |
| 234 scoped_ptr<BeginFrameSource> external_begin_frame_source); | 236 scoped_ptr<BeginFrameSource> external_begin_frame_source); |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 294 | 296 |
| 295 base::WeakPtr<ThreadProxy> main_thread_weak_ptr_; | 297 base::WeakPtr<ThreadProxy> main_thread_weak_ptr_; |
| 296 base::WeakPtr<ThreadProxy> impl_thread_weak_ptr_; | 298 base::WeakPtr<ThreadProxy> impl_thread_weak_ptr_; |
| 297 | 299 |
| 298 DISALLOW_COPY_AND_ASSIGN(ThreadProxy); | 300 DISALLOW_COPY_AND_ASSIGN(ThreadProxy); |
| 299 }; | 301 }; |
| 300 | 302 |
| 301 } // namespace cc | 303 } // namespace cc |
| 302 | 304 |
| 303 #endif // CC_TREES_THREAD_PROXY_H_ | 305 #endif // CC_TREES_THREAD_PROXY_H_ |
| OLD | NEW |