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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 virtual void OnCanDrawStateChanged(bool can_draw) OVERRIDE; | 62 virtual void OnCanDrawStateChanged(bool can_draw) OVERRIDE; |
63 virtual void NotifyReadyToActivate() OVERRIDE; | 63 virtual void NotifyReadyToActivate() OVERRIDE; |
64 virtual void SetNeedsRedrawOnImplThread() OVERRIDE; | 64 virtual void SetNeedsRedrawOnImplThread() OVERRIDE; |
65 virtual void SetNeedsRedrawRectOnImplThread( | 65 virtual void SetNeedsRedrawRectOnImplThread( |
66 const gfx::Rect& dirty_rect) OVERRIDE; | 66 const gfx::Rect& dirty_rect) OVERRIDE; |
67 virtual void SetNeedsManageTilesOnImplThread() OVERRIDE; | 67 virtual void SetNeedsManageTilesOnImplThread() OVERRIDE; |
68 virtual void DidInitializeVisibleTileOnImplThread() OVERRIDE; | 68 virtual void DidInitializeVisibleTileOnImplThread() OVERRIDE; |
69 virtual void SetNeedsCommitOnImplThread() OVERRIDE; | 69 virtual void SetNeedsCommitOnImplThread() OVERRIDE; |
70 virtual void PostAnimationEventsToMainThreadOnImplThread( | 70 virtual void PostAnimationEventsToMainThreadOnImplThread( |
71 scoped_ptr<AnimationEventsVector> events, | 71 scoped_ptr<AnimationEventsVector> events, |
72 base::Time wall_clock_time) OVERRIDE; | 72 base::TimeTicks clock_time) OVERRIDE; |
73 virtual bool ReduceContentsTextureMemoryOnImplThread( | 73 virtual bool ReduceContentsTextureMemoryOnImplThread( |
74 size_t limit_bytes, | 74 size_t limit_bytes, |
75 int priority_cutoff) OVERRIDE; | 75 int priority_cutoff) OVERRIDE; |
76 virtual void SendManagedMemoryStats() OVERRIDE; | 76 virtual void SendManagedMemoryStats() OVERRIDE; |
77 virtual bool IsInsideDraw() OVERRIDE; | 77 virtual bool IsInsideDraw() OVERRIDE; |
78 virtual void RenewTreePriority() OVERRIDE {} | 78 virtual void RenewTreePriority() OVERRIDE {} |
79 virtual void RequestScrollbarAnimationOnImplThread(base::TimeDelta delay) | 79 virtual void RequestScrollbarAnimationOnImplThread(base::TimeDelta delay) |
80 OVERRIDE {} | 80 OVERRIDE {} |
81 virtual void DidActivatePendingTree() OVERRIDE {} | 81 virtual void DidActivatePendingTree() OVERRIDE {} |
82 virtual void DidManageTiles() OVERRIDE {} | 82 virtual void DidManageTiles() OVERRIDE {} |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
178 private: | 178 private: |
179 DebugScopedSetImplThread impl_thread_; | 179 DebugScopedSetImplThread impl_thread_; |
180 DebugScopedSetMainThreadBlocked main_thread_blocked_; | 180 DebugScopedSetMainThreadBlocked main_thread_blocked_; |
181 | 181 |
182 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetImplThreadAndMainThreadBlocked); | 182 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetImplThreadAndMainThreadBlocked); |
183 }; | 183 }; |
184 | 184 |
185 } // namespace cc | 185 } // namespace cc |
186 | 186 |
187 #endif // CC_TREES_SINGLE_THREAD_PROXY_H_ | 187 #endif // CC_TREES_SINGLE_THREAD_PROXY_H_ |
OLD | NEW |