| 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 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 186 | 186 |
| 187 // LayerTreeHostImplClient implementation | 187 // LayerTreeHostImplClient implementation |
| 188 void UpdateRendererCapabilitiesOnImplThread() override; | 188 void UpdateRendererCapabilitiesOnImplThread() override; |
| 189 void DidLoseOutputSurfaceOnImplThread() override; | 189 void DidLoseOutputSurfaceOnImplThread() override; |
| 190 void CommitVSyncParameters(base::TimeTicks timebase, | 190 void CommitVSyncParameters(base::TimeTicks timebase, |
| 191 base::TimeDelta interval) override; | 191 base::TimeDelta interval) override; |
| 192 void SetEstimatedParentDrawTime(base::TimeDelta draw_time) override; | 192 void SetEstimatedParentDrawTime(base::TimeDelta draw_time) override; |
| 193 void SetMaxSwapsPendingOnImplThread(int max) override; | 193 void SetMaxSwapsPendingOnImplThread(int max) override; |
| 194 void DidSwapBuffersOnImplThread() override; | 194 void DidSwapBuffersOnImplThread() override; |
| 195 void DidSwapBuffersCompleteOnImplThread() override; | 195 void DidSwapBuffersCompleteOnImplThread() override; |
| 196 void OnResourcelessSoftareDrawStateChanged(bool resourceless_draw) override; | |
| 197 void OnCanDrawStateChanged(bool can_draw) override; | 196 void OnCanDrawStateChanged(bool can_draw) override; |
| 198 void NotifyReadyToActivate() override; | 197 void NotifyReadyToActivate() override; |
| 199 void NotifyReadyToDraw() override; | 198 void NotifyReadyToDraw() override; |
| 200 // Please call these 3 functions through | 199 // Please call these 3 functions through |
| 201 // LayerTreeHostImpl's SetNeedsRedraw(), SetNeedsRedrawRect() and | 200 // LayerTreeHostImpl's SetNeedsRedraw(), SetNeedsRedrawRect() and |
| 202 // SetNeedsAnimate(). | 201 // SetNeedsAnimate(). |
| 203 void SetNeedsRedrawOnImplThread() override; | 202 void SetNeedsRedrawOnImplThread() override; |
| 204 void SetNeedsRedrawRectOnImplThread(const gfx::Rect& dirty_rect) override; | 203 void SetNeedsRedrawRectOnImplThread(const gfx::Rect& dirty_rect) override; |
| 205 void SetNeedsAnimateOnImplThread() override; | 204 void SetNeedsAnimateOnImplThread() override; |
| 206 void SetNeedsPrepareTilesOnImplThread() override; | 205 void SetNeedsPrepareTilesOnImplThread() override; |
| 207 void SetNeedsCommitOnImplThread() override; | 206 void SetNeedsCommitOnImplThread() override; |
| 208 void SetVideoNeedsBeginFrames(bool needs_begin_frames) override; | 207 void SetVideoNeedsBeginFrames(bool needs_begin_frames) override; |
| 209 void PostAnimationEventsToMainThreadOnImplThread( | 208 void PostAnimationEventsToMainThreadOnImplThread( |
| 210 scoped_ptr<AnimationEventsVector> queue) override; | 209 scoped_ptr<AnimationEventsVector> queue) override; |
| 211 bool IsInsideDraw() override; | 210 bool IsInsideDraw() override; |
| 212 void RenewTreePriority() override; | 211 void RenewTreePriority() override; |
| 213 void PostDelayedAnimationTaskOnImplThread(const base::Closure& task, | 212 void PostDelayedAnimationTaskOnImplThread(const base::Closure& task, |
| 214 base::TimeDelta delay) override; | 213 base::TimeDelta delay) override; |
| 215 void DidActivateSyncTree() override; | 214 void DidActivateSyncTree() override; |
| 216 void WillPrepareTiles() override; | 215 void WillPrepareTiles() override; |
| 217 void DidPrepareTiles() override; | 216 void DidPrepareTiles() override; |
| 218 void DidCompletePageScaleAnimationOnImplThread() override; | 217 void DidCompletePageScaleAnimationOnImplThread() override; |
| 219 void OnDrawForOutputSurface() override; | 218 void OnDrawForOutputSurface(bool resourceless_software_draw) override; |
| 220 // This should only be called by LayerTreeHostImpl::PostFrameTimingEvents. | 219 // This should only be called by LayerTreeHostImpl::PostFrameTimingEvents. |
| 221 void PostFrameTimingEventsOnImplThread( | 220 void PostFrameTimingEventsOnImplThread( |
| 222 scoped_ptr<FrameTimingTracker::CompositeTimingSet> composite_events, | 221 scoped_ptr<FrameTimingTracker::CompositeTimingSet> composite_events, |
| 223 scoped_ptr<FrameTimingTracker::MainFrameTimingSet> main_frame_events) | 222 scoped_ptr<FrameTimingTracker::MainFrameTimingSet> main_frame_events) |
| 224 override; | 223 override; |
| 225 | 224 |
| 226 // SchedulerClient implementation | 225 // SchedulerClient implementation |
| 227 void WillBeginImplFrame(const BeginFrameArgs& args) override; | 226 void WillBeginImplFrame(const BeginFrameArgs& args) override; |
| 228 void DidFinishImplFrame() override; | 227 void DidFinishImplFrame() override; |
| 229 void ScheduledActionSendBeginMainFrame() override; | 228 void ScheduledActionSendBeginMainFrame() override; |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 326 | 325 |
| 327 base::WeakPtr<ThreadProxy> main_thread_weak_ptr_; | 326 base::WeakPtr<ThreadProxy> main_thread_weak_ptr_; |
| 328 base::WeakPtr<ThreadProxy> impl_thread_weak_ptr_; | 327 base::WeakPtr<ThreadProxy> impl_thread_weak_ptr_; |
| 329 | 328 |
| 330 DISALLOW_COPY_AND_ASSIGN(ThreadProxy); | 329 DISALLOW_COPY_AND_ASSIGN(ThreadProxy); |
| 331 }; | 330 }; |
| 332 | 331 |
| 333 } // namespace cc | 332 } // namespace cc |
| 334 | 333 |
| 335 #endif // CC_TREES_THREAD_PROXY_H_ | 334 #endif // CC_TREES_THREAD_PROXY_H_ |
| OLD | NEW |