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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
52 | 52 |
53 // LayerTreeHostImplClient implementation | 53 // LayerTreeHostImplClient implementation |
54 virtual void UpdateRendererCapabilitiesOnImplThread() OVERRIDE; | 54 virtual void UpdateRendererCapabilitiesOnImplThread() OVERRIDE; |
55 virtual void DidLoseOutputSurfaceOnImplThread() OVERRIDE; | 55 virtual void DidLoseOutputSurfaceOnImplThread() OVERRIDE; |
56 virtual void CommitVSyncParameters(base::TimeTicks timebase, | 56 virtual void CommitVSyncParameters(base::TimeTicks timebase, |
57 base::TimeDelta interval) OVERRIDE {} | 57 base::TimeDelta interval) OVERRIDE {} |
58 virtual void SetEstimatedParentDrawTime(base::TimeDelta draw_time) OVERRIDE {} | 58 virtual void SetEstimatedParentDrawTime(base::TimeDelta draw_time) OVERRIDE {} |
59 virtual void SetMaxSwapsPendingOnImplThread(int max) OVERRIDE {} | 59 virtual void SetMaxSwapsPendingOnImplThread(int max) OVERRIDE {} |
60 virtual void DidSwapBuffersOnImplThread() OVERRIDE; | 60 virtual void DidSwapBuffersOnImplThread() OVERRIDE; |
61 virtual void DidSwapBuffersCompleteOnImplThread() OVERRIDE; | 61 virtual void DidSwapBuffersCompleteOnImplThread() OVERRIDE; |
62 virtual void BeginFrame(const BeginFrameArgs& args) OVERRIDE {} | 62 // TODO(mithro): Why is this an empty??? |
simonhong
2014/06/12 13:47:40
In the single thread mode, BeginFrame() is not use
| |
63 virtual void OnCanDrawStateChanged(bool can_draw) OVERRIDE; | 63 virtual void OnCanDrawStateChanged(bool can_draw) OVERRIDE; |
64 virtual void NotifyReadyToActivate() OVERRIDE; | 64 virtual void NotifyReadyToActivate() OVERRIDE; |
65 virtual void SetNeedsRedrawOnImplThread() OVERRIDE; | 65 virtual void SetNeedsRedrawOnImplThread() OVERRIDE; |
66 virtual void SetNeedsRedrawRectOnImplThread( | 66 virtual void SetNeedsRedrawRectOnImplThread( |
67 const gfx::Rect& dirty_rect) OVERRIDE; | 67 const gfx::Rect& dirty_rect) OVERRIDE; |
68 virtual void SetNeedsAnimateOnImplThread() OVERRIDE; | 68 virtual void SetNeedsAnimateOnImplThread() OVERRIDE; |
69 virtual void SetNeedsManageTilesOnImplThread() OVERRIDE; | 69 virtual void SetNeedsManageTilesOnImplThread() OVERRIDE; |
70 virtual void DidInitializeVisibleTileOnImplThread() OVERRIDE; | 70 virtual void DidInitializeVisibleTileOnImplThread() OVERRIDE; |
71 virtual void SetNeedsCommitOnImplThread() OVERRIDE; | 71 virtual void SetNeedsCommitOnImplThread() OVERRIDE; |
72 virtual void PostAnimationEventsToMainThreadOnImplThread( | 72 virtual void PostAnimationEventsToMainThreadOnImplThread( |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
176 private: | 176 private: |
177 DebugScopedSetImplThread impl_thread_; | 177 DebugScopedSetImplThread impl_thread_; |
178 DebugScopedSetMainThreadBlocked main_thread_blocked_; | 178 DebugScopedSetMainThreadBlocked main_thread_blocked_; |
179 | 179 |
180 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetImplThreadAndMainThreadBlocked); | 180 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetImplThreadAndMainThreadBlocked); |
181 }; | 181 }; |
182 | 182 |
183 } // namespace cc | 183 } // namespace cc |
184 | 184 |
185 #endif // CC_TREES_SINGLE_THREAD_PROXY_H_ | 185 #endif // CC_TREES_SINGLE_THREAD_PROXY_H_ |
OLD | NEW |