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