Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(472)

Side by Side Diff: cc/trees/single_thread_proxy.h

Issue 1418273002: cc: Move draw params from SetExternalDrawConstraints to OnDraw (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ForTesting Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/cancelable_callback.h" 10 #include "base/cancelable_callback.h"
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 void SendBeginMainFrameNotExpectedSoon() override; 79 void SendBeginMainFrameNotExpectedSoon() override;
80 80
81 // LayerTreeHostImplClient implementation 81 // LayerTreeHostImplClient implementation
82 void UpdateRendererCapabilitiesOnImplThread() override; 82 void UpdateRendererCapabilitiesOnImplThread() override;
83 void DidLoseOutputSurfaceOnImplThread() override; 83 void DidLoseOutputSurfaceOnImplThread() override;
84 void CommitVSyncParameters(base::TimeTicks timebase, 84 void CommitVSyncParameters(base::TimeTicks timebase,
85 base::TimeDelta interval) override; 85 base::TimeDelta interval) override;
86 void SetEstimatedParentDrawTime(base::TimeDelta draw_time) override; 86 void SetEstimatedParentDrawTime(base::TimeDelta draw_time) override;
87 void DidSwapBuffersOnImplThread() override; 87 void DidSwapBuffersOnImplThread() override;
88 void DidSwapBuffersCompleteOnImplThread() override; 88 void DidSwapBuffersCompleteOnImplThread() override;
89 void OnResourcelessSoftareDrawStateChanged(bool resourceless_draw) override;
90 void OnCanDrawStateChanged(bool can_draw) override; 89 void OnCanDrawStateChanged(bool can_draw) override;
91 void NotifyReadyToActivate() override; 90 void NotifyReadyToActivate() override;
92 void NotifyReadyToDraw() override; 91 void NotifyReadyToDraw() override;
93 void SetNeedsRedrawOnImplThread() override; 92 void SetNeedsRedrawOnImplThread() override;
94 void SetNeedsRedrawRectOnImplThread(const gfx::Rect& dirty_rect) override; 93 void SetNeedsRedrawRectOnImplThread(const gfx::Rect& dirty_rect) override;
95 void SetNeedsOneBeginImplFrameOnImplThread() override; 94 void SetNeedsOneBeginImplFrameOnImplThread() override;
96 void SetNeedsPrepareTilesOnImplThread() override; 95 void SetNeedsPrepareTilesOnImplThread() override;
97 void SetNeedsCommitOnImplThread() override; 96 void SetNeedsCommitOnImplThread() override;
98 void SetVideoNeedsBeginFrames(bool needs_begin_frames) override; 97 void SetVideoNeedsBeginFrames(bool needs_begin_frames) override;
99 void PostAnimationEventsToMainThreadOnImplThread( 98 void PostAnimationEventsToMainThreadOnImplThread(
100 scoped_ptr<AnimationEventsVector> events) override; 99 scoped_ptr<AnimationEventsVector> events) override;
101 bool IsInsideDraw() override; 100 bool IsInsideDraw() override;
102 void RenewTreePriority() override {} 101 void RenewTreePriority() override {}
103 void PostDelayedAnimationTaskOnImplThread(const base::Closure& task, 102 void PostDelayedAnimationTaskOnImplThread(const base::Closure& task,
104 base::TimeDelta delay) override {} 103 base::TimeDelta delay) override {}
105 void DidActivateSyncTree() override; 104 void DidActivateSyncTree() override;
106 void WillPrepareTiles() override; 105 void WillPrepareTiles() override;
107 void DidPrepareTiles() override; 106 void DidPrepareTiles() override;
108 void DidCompletePageScaleAnimationOnImplThread() override; 107 void DidCompletePageScaleAnimationOnImplThread() override;
109 void OnDrawForOutputSurface() override; 108 void OnDrawForOutputSurface(bool resourceless_software_draw) override;
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 void RequestNewOutputSurface(); 114 void RequestNewOutputSurface();
116 115
117 // Called by the legacy path where RenderWidget does the scheduling. 116 // Called by the legacy path where RenderWidget does the scheduling.
118 void CompositeImmediately(base::TimeTicks frame_begin_time); 117 void CompositeImmediately(base::TimeTicks frame_begin_time);
119 118
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 private: 235 private:
237 DebugScopedSetImplThread impl_thread_; 236 DebugScopedSetImplThread impl_thread_;
238 DebugScopedSetMainThreadBlocked main_thread_blocked_; 237 DebugScopedSetMainThreadBlocked main_thread_blocked_;
239 238
240 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetImplThreadAndMainThreadBlocked); 239 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetImplThreadAndMainThreadBlocked);
241 }; 240 };
242 241
243 } // namespace cc 242 } // namespace cc
244 243
245 #endif // CC_TREES_SINGLE_THREAD_PROXY_H_ 244 #endif // CC_TREES_SINGLE_THREAD_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698