| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_PROXY_IMPL_H_ | 5 #ifndef CC_TREES_PROXY_IMPL_H_ |
| 6 #define CC_TREES_PROXY_IMPL_H_ | 6 #define CC_TREES_PROXY_IMPL_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "cc/base/completion_event.h" | 10 #include "cc/base/completion_event.h" |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 friend class ProxyImplForTest; | 75 friend class ProxyImplForTest; |
| 76 | 76 |
| 77 // LayerTreeHostImplClient implementation | 77 // LayerTreeHostImplClient implementation |
| 78 void UpdateRendererCapabilitiesOnImplThread() override; | 78 void UpdateRendererCapabilitiesOnImplThread() override; |
| 79 void DidLoseOutputSurfaceOnImplThread() override; | 79 void DidLoseOutputSurfaceOnImplThread() override; |
| 80 void CommitVSyncParameters(base::TimeTicks timebase, | 80 void CommitVSyncParameters(base::TimeTicks timebase, |
| 81 base::TimeDelta interval) override; | 81 base::TimeDelta interval) override; |
| 82 void SetEstimatedParentDrawTime(base::TimeDelta draw_time) override; | 82 void SetEstimatedParentDrawTime(base::TimeDelta draw_time) override; |
| 83 void DidSwapBuffersOnImplThread() override; | 83 void DidSwapBuffersOnImplThread() override; |
| 84 void DidSwapBuffersCompleteOnImplThread() override; | 84 void DidSwapBuffersCompleteOnImplThread() override; |
| 85 void OnResourcelessSoftareDrawStateChanged(bool resourceless_draw) override; | |
| 86 void OnCanDrawStateChanged(bool can_draw) override; | 85 void OnCanDrawStateChanged(bool can_draw) override; |
| 87 void NotifyReadyToActivate() override; | 86 void NotifyReadyToActivate() override; |
| 88 void NotifyReadyToDraw() override; | 87 void NotifyReadyToDraw() override; |
| 89 // Please call these 3 functions through | 88 // Please call these 3 functions through |
| 90 // LayerTreeHostImpl's SetNeedsRedraw(), SetNeedsRedrawRect() and | 89 // LayerTreeHostImpl's SetNeedsRedraw(), SetNeedsRedrawRect() and |
| 91 // SetNeedsOneBeginImplFrame(). | 90 // SetNeedsOneBeginImplFrame(). |
| 92 void SetNeedsRedrawOnImplThread() override; | 91 void SetNeedsRedrawOnImplThread() override; |
| 93 void SetNeedsRedrawRectOnImplThread(const gfx::Rect& dirty_rect) override; | 92 void SetNeedsRedrawRectOnImplThread(const gfx::Rect& dirty_rect) override; |
| 94 void SetNeedsOneBeginImplFrameOnImplThread() override; | 93 void SetNeedsOneBeginImplFrameOnImplThread() override; |
| 95 void SetNeedsPrepareTilesOnImplThread() override; | 94 void SetNeedsPrepareTilesOnImplThread() override; |
| 96 void SetNeedsCommitOnImplThread() override; | 95 void SetNeedsCommitOnImplThread() override; |
| 97 void SetVideoNeedsBeginFrames(bool needs_begin_frames) override; | 96 void SetVideoNeedsBeginFrames(bool needs_begin_frames) override; |
| 98 void PostAnimationEventsToMainThreadOnImplThread( | 97 void PostAnimationEventsToMainThreadOnImplThread( |
| 99 scoped_ptr<AnimationEventsVector> queue) override; | 98 scoped_ptr<AnimationEventsVector> queue) override; |
| 100 bool IsInsideDraw() override; | 99 bool IsInsideDraw() override; |
| 101 void RenewTreePriority() override; | 100 void RenewTreePriority() override; |
| 102 void PostDelayedAnimationTaskOnImplThread(const base::Closure& task, | 101 void PostDelayedAnimationTaskOnImplThread(const base::Closure& task, |
| 103 base::TimeDelta delay) override; | 102 base::TimeDelta delay) override; |
| 104 void DidActivateSyncTree() override; | 103 void DidActivateSyncTree() override; |
| 105 void WillPrepareTiles() override; | 104 void WillPrepareTiles() override; |
| 106 void DidPrepareTiles() override; | 105 void DidPrepareTiles() override; |
| 107 void DidCompletePageScaleAnimationOnImplThread() override; | 106 void DidCompletePageScaleAnimationOnImplThread() override; |
| 108 void OnDrawForOutputSurface() override; | 107 void OnDrawForOutputSurface(bool resourceless_software_draw) override; |
| 109 // This should only be called by LayerTreeHostImpl::PostFrameTimingEvents. | 108 // This should only be called by LayerTreeHostImpl::PostFrameTimingEvents. |
| 110 void PostFrameTimingEventsOnImplThread( | 109 void PostFrameTimingEventsOnImplThread( |
| 111 scoped_ptr<FrameTimingTracker::CompositeTimingSet> composite_events, | 110 scoped_ptr<FrameTimingTracker::CompositeTimingSet> composite_events, |
| 112 scoped_ptr<FrameTimingTracker::MainFrameTimingSet> main_frame_events) | 111 scoped_ptr<FrameTimingTracker::MainFrameTimingSet> main_frame_events) |
| 113 override; | 112 override; |
| 114 | 113 |
| 115 // SchedulerClient implementation | 114 // SchedulerClient implementation |
| 116 void WillBeginImplFrame(const BeginFrameArgs& args) override; | 115 void WillBeginImplFrame(const BeginFrameArgs& args) override; |
| 117 void DidFinishImplFrame() override; | 116 void DidFinishImplFrame() override; |
| 118 void ScheduledActionSendBeginMainFrame(const BeginFrameArgs& args) override; | 117 void ScheduledActionSendBeginMainFrame(const BeginFrameArgs& args) override; |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 // Use accessors instead of this variable directly. | 167 // Use accessors instead of this variable directly. |
| 169 BlockedMainCommitOnly main_thread_blocked_commit_vars_unsafe_; | 168 BlockedMainCommitOnly main_thread_blocked_commit_vars_unsafe_; |
| 170 BlockedMainCommitOnly& blocked_main_commit(); | 169 BlockedMainCommitOnly& blocked_main_commit(); |
| 171 | 170 |
| 172 DISALLOW_COPY_AND_ASSIGN(ProxyImpl); | 171 DISALLOW_COPY_AND_ASSIGN(ProxyImpl); |
| 173 }; | 172 }; |
| 174 | 173 |
| 175 } // namespace cc | 174 } // namespace cc |
| 176 | 175 |
| 177 #endif // CC_TREES_PROXY_IMPL_H_ | 176 #endif // CC_TREES_PROXY_IMPL_H_ |
| OLD | NEW |