| 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 virtual void Start() OVERRIDE; | 62 virtual void Start() OVERRIDE; |
| 63 virtual void Stop() OVERRIDE; | 63 virtual void Stop() OVERRIDE; |
| 64 virtual size_t MaxPartialTextureUpdates() const OVERRIDE; | 64 virtual size_t MaxPartialTextureUpdates() const OVERRIDE; |
| 65 virtual void AcquireLayerTextures() OVERRIDE; | 65 virtual void AcquireLayerTextures() OVERRIDE; |
| 66 virtual void ForceSerializeOnSwapBuffers() OVERRIDE; | 66 virtual void ForceSerializeOnSwapBuffers() OVERRIDE; |
| 67 virtual scoped_ptr<base::Value> AsValue() const OVERRIDE; | 67 virtual scoped_ptr<base::Value> AsValue() const OVERRIDE; |
| 68 virtual bool CommitPendingForTesting() OVERRIDE; | 68 virtual bool CommitPendingForTesting() OVERRIDE; |
| 69 virtual scoped_ptr<base::Value> SchedulerStateAsValueForTesting() OVERRIDE; | 69 virtual scoped_ptr<base::Value> SchedulerStateAsValueForTesting() OVERRIDE; |
| 70 | 70 |
| 71 // LayerTreeHostImplClient implementation | 71 // LayerTreeHostImplClient implementation |
| 72 virtual void UpdateRendererCapabilitiesOnImplThread() OVERRIDE; |
| 72 virtual void DidLoseOutputSurfaceOnImplThread() OVERRIDE; | 73 virtual void DidLoseOutputSurfaceOnImplThread() OVERRIDE; |
| 73 virtual void DidSwapBuffersOnImplThread() OVERRIDE {} | 74 virtual void DidSwapBuffersOnImplThread() OVERRIDE {} |
| 74 virtual void OnSwapBuffersCompleteOnImplThread() OVERRIDE; | 75 virtual void OnSwapBuffersCompleteOnImplThread() OVERRIDE; |
| 75 virtual void BeginImplFrame(const BeginFrameArgs& args) OVERRIDE; | 76 virtual void BeginImplFrame(const BeginFrameArgs& args) OVERRIDE; |
| 76 virtual void OnCanDrawStateChanged(bool can_draw) OVERRIDE; | 77 virtual void OnCanDrawStateChanged(bool can_draw) OVERRIDE; |
| 77 virtual void NotifyReadyToActivate() OVERRIDE; | 78 virtual void NotifyReadyToActivate() OVERRIDE; |
| 78 // Please call these 2 functions through | 79 // Please call these 2 functions through |
| 79 // LayerTreeHostImpl's SetNeedsRedraw() and SetNeedsRedrawRect(). | 80 // LayerTreeHostImpl's SetNeedsRedraw() and SetNeedsRedrawRect(). |
| 80 virtual void SetNeedsRedrawOnImplThread() OVERRIDE; | 81 virtual void SetNeedsRedrawOnImplThread() OVERRIDE; |
| 81 virtual void SetNeedsRedrawRectOnImplThread( | 82 virtual void SetNeedsRedrawRectOnImplThread( |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 ~BeginMainFrameAndCommitState(); | 131 ~BeginMainFrameAndCommitState(); |
| 131 | 132 |
| 132 base::TimeTicks monotonic_frame_begin_time; | 133 base::TimeTicks monotonic_frame_begin_time; |
| 133 scoped_ptr<ScrollAndScaleSet> scroll_info; | 134 scoped_ptr<ScrollAndScaleSet> scroll_info; |
| 134 size_t memory_allocation_limit_bytes; | 135 size_t memory_allocation_limit_bytes; |
| 135 int memory_allocation_priority_cutoff; | 136 int memory_allocation_priority_cutoff; |
| 136 bool evicted_ui_resources; | 137 bool evicted_ui_resources; |
| 137 }; | 138 }; |
| 138 | 139 |
| 139 // Called on main thread. | 140 // Called on main thread. |
| 141 void SetRendererCapabilitiesMainThreadCopy( |
| 142 const RendererCapabilities& capabilities); |
| 140 void BeginMainFrame( | 143 void BeginMainFrame( |
| 141 scoped_ptr<BeginMainFrameAndCommitState> begin_main_frame_state); | 144 scoped_ptr<BeginMainFrameAndCommitState> begin_main_frame_state); |
| 142 void DidCommitAndDrawFrame(); | 145 void DidCommitAndDrawFrame(); |
| 143 void DidCompleteSwapBuffers(); | 146 void DidCompleteSwapBuffers(); |
| 144 void SetAnimationEvents(scoped_ptr<AnimationEventsVector> queue, | 147 void SetAnimationEvents(scoped_ptr<AnimationEventsVector> queue, |
| 145 base::Time wall_clock_time); | 148 base::Time wall_clock_time); |
| 146 void DoCreateAndInitializeOutputSurface(); | 149 void DoCreateAndInitializeOutputSurface(); |
| 147 // |capabilities| is set only when |success| is true. | 150 // |capabilities| is set only when |success| is true. |
| 148 void OnOutputSurfaceInitializeAttempted( | 151 void OnOutputSurfaceInitializeAttempted( |
| 149 bool success, | 152 bool success, |
| (...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 289 base::WeakPtrFactory<ThreadProxy> weak_factory_; | 292 base::WeakPtrFactory<ThreadProxy> weak_factory_; |
| 290 | 293 |
| 291 const int layer_tree_host_id_; | 294 const int layer_tree_host_id_; |
| 292 | 295 |
| 293 DISALLOW_COPY_AND_ASSIGN(ThreadProxy); | 296 DISALLOW_COPY_AND_ASSIGN(ThreadProxy); |
| 294 }; | 297 }; |
| 295 | 298 |
| 296 } // namespace cc | 299 } // namespace cc |
| 297 | 300 |
| 298 #endif // CC_TREES_THREAD_PROXY_H_ | 301 #endif // CC_TREES_THREAD_PROXY_H_ |
| OLD | NEW |