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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 virtual size_t MaxPartialTextureUpdates() const OVERRIDE; | 66 virtual size_t MaxPartialTextureUpdates() const OVERRIDE; |
67 virtual void ForceSerializeOnSwapBuffers() OVERRIDE; | 67 virtual void ForceSerializeOnSwapBuffers() OVERRIDE; |
68 virtual void SetDebugState(const LayerTreeDebugState& debug_state) OVERRIDE; | 68 virtual void SetDebugState(const LayerTreeDebugState& debug_state) OVERRIDE; |
69 virtual scoped_ptr<base::Value> AsValue() const OVERRIDE; | 69 virtual scoped_ptr<base::Value> AsValue() const OVERRIDE; |
70 virtual bool CommitPendingForTesting() OVERRIDE; | 70 virtual bool CommitPendingForTesting() OVERRIDE; |
71 virtual scoped_ptr<base::Value> SchedulerStateAsValueForTesting() OVERRIDE; | 71 virtual scoped_ptr<base::Value> SchedulerStateAsValueForTesting() OVERRIDE; |
72 | 72 |
73 // LayerTreeHostImplClient implementation | 73 // LayerTreeHostImplClient implementation |
74 virtual void UpdateRendererCapabilitiesOnImplThread() OVERRIDE; | 74 virtual void UpdateRendererCapabilitiesOnImplThread() OVERRIDE; |
75 virtual void DidLoseOutputSurfaceOnImplThread() OVERRIDE; | 75 virtual void DidLoseOutputSurfaceOnImplThread() OVERRIDE; |
| 76 virtual void CommitVSyncParameters(base::TimeTicks timebase, |
| 77 base::TimeDelta interval) OVERRIDE; |
| 78 virtual void SetEstimatedParentDrawTime(base::TimeDelta draw_time) OVERRIDE; |
| 79 virtual void BeginFrame(const BeginFrameArgs& args) OVERRIDE; |
76 virtual void SetMaxSwapsPendingOnImplThread(int max) OVERRIDE; | 80 virtual void SetMaxSwapsPendingOnImplThread(int max) OVERRIDE; |
77 virtual void DidSwapBuffersOnImplThread() OVERRIDE; | 81 virtual void DidSwapBuffersOnImplThread() OVERRIDE; |
78 virtual void DidSwapBuffersCompleteOnImplThread() OVERRIDE; | 82 virtual void DidSwapBuffersCompleteOnImplThread() OVERRIDE; |
79 virtual void BeginFrame(const BeginFrameArgs& args) OVERRIDE; | |
80 virtual void OnCanDrawStateChanged(bool can_draw) OVERRIDE; | 83 virtual void OnCanDrawStateChanged(bool can_draw) OVERRIDE; |
81 virtual void NotifyReadyToActivate() OVERRIDE; | 84 virtual void NotifyReadyToActivate() OVERRIDE; |
82 // Please call these 2 functions through | 85 // Please call these 2 functions through |
83 // LayerTreeHostImpl's SetNeedsRedraw() and SetNeedsRedrawRect(). | 86 // LayerTreeHostImpl's SetNeedsRedraw() and SetNeedsRedrawRect(). |
84 virtual void SetNeedsRedrawOnImplThread() OVERRIDE; | 87 virtual void SetNeedsRedrawOnImplThread() OVERRIDE; |
85 virtual void SetNeedsRedrawRectOnImplThread(const gfx::Rect& dirty_rect) | 88 virtual void SetNeedsRedrawRectOnImplThread(const gfx::Rect& dirty_rect) |
86 OVERRIDE; | 89 OVERRIDE; |
87 virtual void SetNeedsManageTilesOnImplThread() OVERRIDE; | 90 virtual void SetNeedsManageTilesOnImplThread() OVERRIDE; |
88 virtual void DidInitializeVisibleTileOnImplThread() OVERRIDE; | 91 virtual void DidInitializeVisibleTileOnImplThread() OVERRIDE; |
89 virtual void SetNeedsCommitOnImplThread() OVERRIDE; | 92 virtual void SetNeedsCommitOnImplThread() OVERRIDE; |
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
301 | 304 |
302 base::WeakPtr<ThreadProxy> main_thread_weak_ptr_; | 305 base::WeakPtr<ThreadProxy> main_thread_weak_ptr_; |
303 base::WeakPtr<ThreadProxy> impl_thread_weak_ptr_; | 306 base::WeakPtr<ThreadProxy> impl_thread_weak_ptr_; |
304 | 307 |
305 DISALLOW_COPY_AND_ASSIGN(ThreadProxy); | 308 DISALLOW_COPY_AND_ASSIGN(ThreadProxy); |
306 }; | 309 }; |
307 | 310 |
308 } // namespace cc | 311 } // namespace cc |
309 | 312 |
310 #endif // CC_TREES_THREAD_PROXY_H_ | 313 #endif // CC_TREES_THREAD_PROXY_H_ |
OLD | NEW |