| 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/time.h" | 10 #include "base/time.h" |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 base::Time wall_clock_time) OVERRIDE; | 64 base::Time wall_clock_time) OVERRIDE; |
| 65 virtual bool ReduceContentsTextureMemoryOnImplThread( | 65 virtual bool ReduceContentsTextureMemoryOnImplThread( |
| 66 size_t limit_bytes, | 66 size_t limit_bytes, |
| 67 int priority_cutoff) OVERRIDE; | 67 int priority_cutoff) OVERRIDE; |
| 68 virtual void ReduceWastedContentsTextureMemoryOnImplThread() OVERRIDE; | 68 virtual void ReduceWastedContentsTextureMemoryOnImplThread() OVERRIDE; |
| 69 virtual void SendManagedMemoryStats() OVERRIDE; | 69 virtual void SendManagedMemoryStats() OVERRIDE; |
| 70 virtual bool IsInsideDraw() OVERRIDE; | 70 virtual bool IsInsideDraw() OVERRIDE; |
| 71 virtual void RenewTreePriority() OVERRIDE {} | 71 virtual void RenewTreePriority() OVERRIDE {} |
| 72 virtual void RequestScrollbarAnimationOnImplThread(base::TimeDelta delay) | 72 virtual void RequestScrollbarAnimationOnImplThread(base::TimeDelta delay) |
| 73 OVERRIDE {} | 73 OVERRIDE {} |
| 74 virtual void DidReceiveLastInputEventForBeginFrameOnImplThread( | |
| 75 base::TimeTicks frame_time) OVERRIDE {} | |
| 76 virtual void DidActivatePendingTree() OVERRIDE {} | 74 virtual void DidActivatePendingTree() OVERRIDE {} |
| 77 | 75 |
| 78 // Called by the legacy path where RenderWidget does the scheduling. | 76 // Called by the legacy path where RenderWidget does the scheduling. |
| 79 void CompositeImmediately(base::TimeTicks frame_begin_time); | 77 void CompositeImmediately(base::TimeTicks frame_begin_time); |
| 80 | 78 |
| 81 private: | 79 private: |
| 82 explicit SingleThreadProxy(LayerTreeHost* layer_tree_host); | 80 explicit SingleThreadProxy(LayerTreeHost* layer_tree_host); |
| 83 | 81 |
| 84 void OnOutputSurfaceInitializeAttempted(bool success); | 82 void OnOutputSurfaceInitializeAttempted(bool success); |
| 85 bool CommitAndComposite(base::TimeTicks frame_begin_time, | 83 bool CommitAndComposite(base::TimeTicks frame_begin_time, |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 174 private: | 172 private: |
| 175 DebugScopedSetImplThread impl_thread_; | 173 DebugScopedSetImplThread impl_thread_; |
| 176 DebugScopedSetMainThreadBlocked main_thread_blocked_; | 174 DebugScopedSetMainThreadBlocked main_thread_blocked_; |
| 177 | 175 |
| 178 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetImplThreadAndMainThreadBlocked); | 176 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetImplThreadAndMainThreadBlocked); |
| 179 }; | 177 }; |
| 180 | 178 |
| 181 } // namespace cc | 179 } // namespace cc |
| 182 | 180 |
| 183 #endif // CC_TREES_SINGLE_THREAD_PROXY_H_ | 181 #endif // CC_TREES_SINGLE_THREAD_PROXY_H_ |
| OLD | NEW |