| 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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 void SetNeedsRedrawRectOnImplThread(const gfx::Rect& dirty_rect) override; | 97 void SetNeedsRedrawRectOnImplThread(const gfx::Rect& dirty_rect) override; |
| 98 void SetNeedsAnimateOnImplThread() override; | 98 void SetNeedsAnimateOnImplThread() override; |
| 99 void SetNeedsPrepareTilesOnImplThread() override; | 99 void SetNeedsPrepareTilesOnImplThread() override; |
| 100 void SetNeedsCommitOnImplThread() override; | 100 void SetNeedsCommitOnImplThread() override; |
| 101 void PostAnimationEventsToMainThreadOnImplThread( | 101 void PostAnimationEventsToMainThreadOnImplThread( |
| 102 scoped_ptr<AnimationEventsVector> events) override; | 102 scoped_ptr<AnimationEventsVector> events) override; |
| 103 bool ReduceContentsTextureMemoryOnImplThread(size_t limit_bytes, | 103 bool ReduceContentsTextureMemoryOnImplThread(size_t limit_bytes, |
| 104 int priority_cutoff) override; | 104 int priority_cutoff) override; |
| 105 bool IsInsideDraw() override; | 105 bool IsInsideDraw() override; |
| 106 void RenewTreePriority() override {} | 106 void RenewTreePriority() override {} |
| 107 void PostDelayedScrollbarFadeOnImplThread(const base::Closure& start_fade, | 107 void PostDelayedAnimationTaskOnImplThread(const base::Closure& task, |
| 108 base::TimeDelta delay) override {} | 108 base::TimeDelta delay) override {} |
| 109 void DidActivateSyncTree() override; | 109 void DidActivateSyncTree() override; |
| 110 void DidPrepareTiles() override; | 110 void DidPrepareTiles() override; |
| 111 void DidCompletePageScaleAnimationOnImplThread() override; | 111 void DidCompletePageScaleAnimationOnImplThread() override; |
| 112 void SetDebugState(const LayerTreeDebugState& debug_state) override {} | 112 void SetDebugState(const LayerTreeDebugState& debug_state) override {} |
| 113 | 113 |
| 114 void RequestNewOutputSurface(); | 114 void RequestNewOutputSurface(); |
| 115 | 115 |
| 116 // Called by the legacy path where RenderWidget does the scheduling. | 116 // Called by the legacy path where RenderWidget does the scheduling. |
| 117 void CompositeImmediately(base::TimeTicks frame_begin_time); | 117 void CompositeImmediately(base::TimeTicks frame_begin_time); |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 231 private: | 231 private: |
| 232 DebugScopedSetImplThread impl_thread_; | 232 DebugScopedSetImplThread impl_thread_; |
| 233 DebugScopedSetMainThreadBlocked main_thread_blocked_; | 233 DebugScopedSetMainThreadBlocked main_thread_blocked_; |
| 234 | 234 |
| 235 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetImplThreadAndMainThreadBlocked); | 235 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetImplThreadAndMainThreadBlocked); |
| 236 }; | 236 }; |
| 237 | 237 |
| 238 } // namespace cc | 238 } // namespace cc |
| 239 | 239 |
| 240 #endif // CC_TREES_SINGLE_THREAD_PROXY_H_ | 240 #endif // CC_TREES_SINGLE_THREAD_PROXY_H_ |
| OLD | NEW |