| 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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 void NotifyReadyToActivate() override; | 96 void NotifyReadyToActivate() override; |
| 97 void NotifyReadyToDraw() override; | 97 void NotifyReadyToDraw() override; |
| 98 void SetNeedsRedrawOnImplThread() override; | 98 void SetNeedsRedrawOnImplThread() override; |
| 99 void SetNeedsRedrawRectOnImplThread(const gfx::Rect& dirty_rect) override; | 99 void SetNeedsRedrawRectOnImplThread(const gfx::Rect& dirty_rect) override; |
| 100 void SetNeedsAnimateOnImplThread() override; | 100 void SetNeedsAnimateOnImplThread() override; |
| 101 void SetNeedsPrepareTilesOnImplThread() override; | 101 void SetNeedsPrepareTilesOnImplThread() override; |
| 102 void SetNeedsCommitOnImplThread() override; | 102 void SetNeedsCommitOnImplThread() override; |
| 103 void SetVideoNeedsBeginFrames(bool needs_begin_frames) override; | 103 void SetVideoNeedsBeginFrames(bool needs_begin_frames) override; |
| 104 void PostAnimationEventsToMainThreadOnImplThread( | 104 void PostAnimationEventsToMainThreadOnImplThread( |
| 105 scoped_ptr<AnimationEventsVector> events) override; | 105 scoped_ptr<AnimationEventsVector> events) override; |
| 106 bool ReduceContentsTextureMemoryOnImplThread(size_t limit_bytes, | |
| 107 int priority_cutoff) override; | |
| 108 bool IsInsideDraw() override; | 106 bool IsInsideDraw() override; |
| 109 void RenewTreePriority() override {} | 107 void RenewTreePriority() override {} |
| 110 void PostDelayedAnimationTaskOnImplThread(const base::Closure& task, | 108 void PostDelayedAnimationTaskOnImplThread(const base::Closure& task, |
| 111 base::TimeDelta delay) override {} | 109 base::TimeDelta delay) override {} |
| 112 void DidActivateSyncTree() override; | 110 void DidActivateSyncTree() override; |
| 113 void DidPrepareTiles() override; | 111 void DidPrepareTiles() override; |
| 114 void DidCompletePageScaleAnimationOnImplThread() override; | 112 void DidCompletePageScaleAnimationOnImplThread() override; |
| 115 void OnDrawForOutputSurface() override; | 113 void OnDrawForOutputSurface() override; |
| 116 void PostFrameTimingEventsOnImplThread( | 114 void PostFrameTimingEventsOnImplThread( |
| 117 scoped_ptr<FrameTimingTracker::CompositeTimingSet> composite_events, | 115 scoped_ptr<FrameTimingTracker::CompositeTimingSet> composite_events, |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 241 private: | 239 private: |
| 242 DebugScopedSetImplThread impl_thread_; | 240 DebugScopedSetImplThread impl_thread_; |
| 243 DebugScopedSetMainThreadBlocked main_thread_blocked_; | 241 DebugScopedSetMainThreadBlocked main_thread_blocked_; |
| 244 | 242 |
| 245 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetImplThreadAndMainThreadBlocked); | 243 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetImplThreadAndMainThreadBlocked); |
| 246 }; | 244 }; |
| 247 | 245 |
| 248 } // namespace cc | 246 } // namespace cc |
| 249 | 247 |
| 250 #endif // CC_TREES_SINGLE_THREAD_PROXY_H_ | 248 #endif // CC_TREES_SINGLE_THREAD_PROXY_H_ |
| OLD | NEW |