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_THREAD_PROXY_H_ | 5 #ifndef CC_TREES_THREAD_PROXY_H_ |
6 #define CC_TREES_THREAD_PROXY_H_ | 6 #define CC_TREES_THREAD_PROXY_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 int priority_cutoff) | 84 int priority_cutoff) |
85 OVERRIDE; | 85 OVERRIDE; |
86 virtual void ReduceWastedContentsTextureMemoryOnImplThread() OVERRIDE; | 86 virtual void ReduceWastedContentsTextureMemoryOnImplThread() OVERRIDE; |
87 virtual void SendManagedMemoryStats() OVERRIDE; | 87 virtual void SendManagedMemoryStats() OVERRIDE; |
88 virtual bool IsInsideDraw() OVERRIDE; | 88 virtual bool IsInsideDraw() OVERRIDE; |
89 virtual void RenewTreePriority() OVERRIDE; | 89 virtual void RenewTreePriority() OVERRIDE; |
90 virtual void RequestScrollbarAnimationOnImplThread(base::TimeDelta delay) | 90 virtual void RequestScrollbarAnimationOnImplThread(base::TimeDelta delay) |
91 OVERRIDE; | 91 OVERRIDE; |
92 virtual void DidActivatePendingTree() OVERRIDE; | 92 virtual void DidActivatePendingTree() OVERRIDE; |
93 | 93 |
| 94 // LayerTreeHostImplClient UI Resource management |
| 95 virtual void UIResourceCreatedOnImplThread(UIResourceId uid) OVERRIDE; |
| 96 virtual void UIResourceLostOnImplThread(UIResourceId uid) OVERRIDE; |
| 97 |
| 98 virtual void PostUIResourceCreatedToMainThread(UIResourceId uid); |
| 99 virtual void PostUIResourceLostToMainThread(UIResourceId uid); |
| 100 |
94 // SchedulerClient implementation | 101 // SchedulerClient implementation |
95 virtual void SetNeedsBeginFrameOnImplThread(bool enable) OVERRIDE; | 102 virtual void SetNeedsBeginFrameOnImplThread(bool enable) OVERRIDE; |
96 virtual void ScheduledActionSendBeginFrameToMainThread() OVERRIDE; | 103 virtual void ScheduledActionSendBeginFrameToMainThread() OVERRIDE; |
97 virtual ScheduledActionDrawAndSwapResult | 104 virtual ScheduledActionDrawAndSwapResult |
98 ScheduledActionDrawAndSwapIfPossible() OVERRIDE; | 105 ScheduledActionDrawAndSwapIfPossible() OVERRIDE; |
99 virtual ScheduledActionDrawAndSwapResult ScheduledActionDrawAndSwapForced() | 106 virtual ScheduledActionDrawAndSwapResult ScheduledActionDrawAndSwapForced() |
100 OVERRIDE; | 107 OVERRIDE; |
101 virtual void ScheduledActionCommit() OVERRIDE; | 108 virtual void ScheduledActionCommit() OVERRIDE; |
102 virtual void ScheduledActionCheckForCompletedTileUploads() OVERRIDE; | 109 virtual void ScheduledActionCheckForCompletedTileUploads() OVERRIDE; |
103 virtual void ScheduledActionActivatePendingTreeIfNeeded() OVERRIDE; | 110 virtual void ScheduledActionActivatePendingTreeIfNeeded() OVERRIDE; |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
249 bool renew_tree_priority_on_impl_thread_pending_; | 256 bool renew_tree_priority_on_impl_thread_pending_; |
250 | 257 |
251 RollingTimeDeltaHistory draw_duration_history_; | 258 RollingTimeDeltaHistory draw_duration_history_; |
252 | 259 |
253 DISALLOW_COPY_AND_ASSIGN(ThreadProxy); | 260 DISALLOW_COPY_AND_ASSIGN(ThreadProxy); |
254 }; | 261 }; |
255 | 262 |
256 } // namespace cc | 263 } // namespace cc |
257 | 264 |
258 #endif // CC_TREES_THREAD_PROXY_H_ | 265 #endif // CC_TREES_THREAD_PROXY_H_ |
OLD | NEW |