| 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" |
| 11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 #include "base/time/time.h" | 12 #include "base/time/time.h" |
| 13 #include "cc/animation/animation_events.h" | |
| 14 #include "cc/output/begin_frame_args.h" | 13 #include "cc/output/begin_frame_args.h" |
| 15 #include "cc/scheduler/scheduler.h" | 14 #include "cc/scheduler/scheduler.h" |
| 16 #include "cc/trees/blocking_task_runner.h" | 15 #include "cc/trees/blocking_task_runner.h" |
| 17 #include "cc/trees/layer_tree_host_impl.h" | 16 #include "cc/trees/layer_tree_host_impl.h" |
| 18 #include "cc/trees/proxy.h" | 17 #include "cc/trees/proxy.h" |
| 19 #include "cc/trees/task_runner_provider.h" | 18 #include "cc/trees/task_runner_provider.h" |
| 20 | 19 |
| 21 namespace cc { | 20 namespace cc { |
| 22 | 21 |
| 22 class AnimationEvents; |
| 23 class BeginFrameSource; | 23 class BeginFrameSource; |
| 24 class ContextProvider; | 24 class ContextProvider; |
| 25 class LayerTreeHost; | 25 class LayerTreeHost; |
| 26 class LayerTreeHostSingleThreadClient; | 26 class LayerTreeHostSingleThreadClient; |
| 27 | 27 |
| 28 class CC_EXPORT SingleThreadProxy : public Proxy, | 28 class CC_EXPORT SingleThreadProxy : public Proxy, |
| 29 NON_EXPORTED_BASE(LayerTreeHostImplClient), | 29 NON_EXPORTED_BASE(LayerTreeHostImplClient), |
| 30 SchedulerClient { | 30 SchedulerClient { |
| 31 public: | 31 public: |
| 32 static scoped_ptr<Proxy> Create(LayerTreeHost* layer_tree_host, | 32 static scoped_ptr<Proxy> Create(LayerTreeHost* layer_tree_host, |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 void OnCanDrawStateChanged(bool can_draw) override; | 88 void OnCanDrawStateChanged(bool can_draw) override; |
| 89 void NotifyReadyToActivate() override; | 89 void NotifyReadyToActivate() override; |
| 90 void NotifyReadyToDraw() override; | 90 void NotifyReadyToDraw() override; |
| 91 void SetNeedsRedrawOnImplThread() override; | 91 void SetNeedsRedrawOnImplThread() override; |
| 92 void SetNeedsRedrawRectOnImplThread(const gfx::Rect& dirty_rect) override; | 92 void SetNeedsRedrawRectOnImplThread(const gfx::Rect& dirty_rect) override; |
| 93 void SetNeedsOneBeginImplFrameOnImplThread() override; | 93 void SetNeedsOneBeginImplFrameOnImplThread() override; |
| 94 void SetNeedsPrepareTilesOnImplThread() override; | 94 void SetNeedsPrepareTilesOnImplThread() override; |
| 95 void SetNeedsCommitOnImplThread() override; | 95 void SetNeedsCommitOnImplThread() override; |
| 96 void SetVideoNeedsBeginFrames(bool needs_begin_frames) override; | 96 void SetVideoNeedsBeginFrames(bool needs_begin_frames) override; |
| 97 void PostAnimationEventsToMainThreadOnImplThread( | 97 void PostAnimationEventsToMainThreadOnImplThread( |
| 98 scoped_ptr<AnimationEventsVector> events) override; | 98 scoped_ptr<AnimationEvents> events) override; |
| 99 bool IsInsideDraw() override; | 99 bool IsInsideDraw() override; |
| 100 void RenewTreePriority() override {} | 100 void RenewTreePriority() override {} |
| 101 void PostDelayedAnimationTaskOnImplThread(const base::Closure& task, | 101 void PostDelayedAnimationTaskOnImplThread(const base::Closure& task, |
| 102 base::TimeDelta delay) override {} | 102 base::TimeDelta delay) override {} |
| 103 void DidActivateSyncTree() override; | 103 void DidActivateSyncTree() override; |
| 104 void WillPrepareTiles() override; | 104 void WillPrepareTiles() override; |
| 105 void DidPrepareTiles() override; | 105 void DidPrepareTiles() override; |
| 106 void DidCompletePageScaleAnimationOnImplThread() override; | 106 void DidCompletePageScaleAnimationOnImplThread() override; |
| 107 void OnDrawForOutputSurface(bool resourceless_software_draw) override; | 107 void OnDrawForOutputSurface(bool resourceless_software_draw) override; |
| 108 void PostFrameTimingEventsOnImplThread( | 108 void PostFrameTimingEventsOnImplThread( |
| (...skipping 124 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 |