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/time.h" | 10 #include "base/time/time.h" |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 size_t limit_bytes, | 67 size_t limit_bytes, |
68 int priority_cutoff) OVERRIDE; | 68 int priority_cutoff) OVERRIDE; |
69 virtual void ReduceWastedContentsTextureMemoryOnImplThread() OVERRIDE; | 69 virtual void ReduceWastedContentsTextureMemoryOnImplThread() OVERRIDE; |
70 virtual void SendManagedMemoryStats() OVERRIDE; | 70 virtual void SendManagedMemoryStats() OVERRIDE; |
71 virtual bool IsInsideDraw() OVERRIDE; | 71 virtual bool IsInsideDraw() OVERRIDE; |
72 virtual void RenewTreePriority() OVERRIDE {} | 72 virtual void RenewTreePriority() OVERRIDE {} |
73 virtual void RequestScrollbarAnimationOnImplThread(base::TimeDelta delay) | 73 virtual void RequestScrollbarAnimationOnImplThread(base::TimeDelta delay) |
74 OVERRIDE {} | 74 OVERRIDE {} |
75 virtual void DidActivatePendingTree() OVERRIDE {} | 75 virtual void DidActivatePendingTree() OVERRIDE {} |
76 | 76 |
| 77 // LayerTreeHostImplClient UI Resource management |
| 78 virtual void UIResourceCreatedOnImplThread(UIResourceId uid) OVERRIDE {} |
| 79 virtual void UIResourceLostOnImplThread(UIResourceId uid) OVERRIDE {} |
| 80 |
77 // Called by the legacy path where RenderWidget does the scheduling. | 81 // Called by the legacy path where RenderWidget does the scheduling. |
78 void CompositeImmediately(base::TimeTicks frame_begin_time); | 82 void CompositeImmediately(base::TimeTicks frame_begin_time); |
79 | 83 |
80 private: | 84 private: |
81 explicit SingleThreadProxy(LayerTreeHost* layer_tree_host); | 85 explicit SingleThreadProxy(LayerTreeHost* layer_tree_host); |
82 | 86 |
83 void OnOutputSurfaceInitializeAttempted(bool success); | 87 void OnOutputSurfaceInitializeAttempted(bool success); |
84 bool CommitAndComposite(base::TimeTicks frame_begin_time, | 88 bool CommitAndComposite(base::TimeTicks frame_begin_time, |
85 gfx::Rect device_viewport_damage_rect, | 89 gfx::Rect device_viewport_damage_rect, |
86 bool for_readback, | 90 bool for_readback, |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 private: | 177 private: |
174 DebugScopedSetImplThread impl_thread_; | 178 DebugScopedSetImplThread impl_thread_; |
175 DebugScopedSetMainThreadBlocked main_thread_blocked_; | 179 DebugScopedSetMainThreadBlocked main_thread_blocked_; |
176 | 180 |
177 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetImplThreadAndMainThreadBlocked); | 181 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetImplThreadAndMainThreadBlocked); |
178 }; | 182 }; |
179 | 183 |
180 } // namespace cc | 184 } // namespace cc |
181 | 185 |
182 #endif // CC_TREES_SINGLE_THREAD_PROXY_H_ | 186 #endif // CC_TREES_SINGLE_THREAD_PROXY_H_ |
OLD | NEW |