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

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: EXPECT_SCOPED 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
« no previous file with comments | « cc/trees/proxy_impl.cc ('k') | cc/trees/single_thread_proxy.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 void SendBeginMainFrameNotExpectedSoon() override; 77 void SendBeginMainFrameNotExpectedSoon() override;
78 78
79 // LayerTreeHostImplClient implementation 79 // LayerTreeHostImplClient implementation
80 void UpdateRendererCapabilitiesOnImplThread() override; 80 void UpdateRendererCapabilitiesOnImplThread() override;
81 void DidLoseOutputSurfaceOnImplThread() override; 81 void DidLoseOutputSurfaceOnImplThread() override;
82 void CommitVSyncParameters(base::TimeTicks timebase, 82 void CommitVSyncParameters(base::TimeTicks timebase,
83 base::TimeDelta interval) override; 83 base::TimeDelta interval) override;
84 void SetEstimatedParentDrawTime(base::TimeDelta draw_time) override; 84 void SetEstimatedParentDrawTime(base::TimeDelta draw_time) override;
85 void DidSwapBuffersOnImplThread() override; 85 void DidSwapBuffersOnImplThread() override;
86 void DidSwapBuffersCompleteOnImplThread() override; 86 void DidSwapBuffersCompleteOnImplThread() override;
87 void OnResourcelessSoftareDrawStateChanged(bool resourceless_draw) override;
88 void OnCanDrawStateChanged(bool can_draw) override; 87 void OnCanDrawStateChanged(bool can_draw) override;
89 void NotifyReadyToActivate() override; 88 void NotifyReadyToActivate() override;
90 void NotifyReadyToDraw() override; 89 void NotifyReadyToDraw() override;
91 void SetNeedsRedrawOnImplThread() override; 90 void SetNeedsRedrawOnImplThread() override;
92 void SetNeedsRedrawRectOnImplThread(const gfx::Rect& dirty_rect) override; 91 void SetNeedsRedrawRectOnImplThread(const gfx::Rect& dirty_rect) override;
93 void SetNeedsOneBeginImplFrameOnImplThread() override; 92 void SetNeedsOneBeginImplFrameOnImplThread() override;
94 void SetNeedsPrepareTilesOnImplThread() override; 93 void SetNeedsPrepareTilesOnImplThread() override;
95 void SetNeedsCommitOnImplThread() override; 94 void SetNeedsCommitOnImplThread() override;
96 void SetVideoNeedsBeginFrames(bool needs_begin_frames) override; 95 void SetVideoNeedsBeginFrames(bool needs_begin_frames) override;
97 void PostAnimationEventsToMainThreadOnImplThread( 96 void PostAnimationEventsToMainThreadOnImplThread(
98 scoped_ptr<AnimationEventsVector> events) override; 97 scoped_ptr<AnimationEventsVector> events) override;
99 bool IsInsideDraw() override; 98 bool IsInsideDraw() override;
100 void RenewTreePriority() override {} 99 void RenewTreePriority() override {}
101 void PostDelayedAnimationTaskOnImplThread(const base::Closure& task, 100 void PostDelayedAnimationTaskOnImplThread(const base::Closure& task,
102 base::TimeDelta delay) override {} 101 base::TimeDelta delay) override {}
103 void DidActivateSyncTree() override; 102 void DidActivateSyncTree() override;
104 void WillPrepareTiles() override; 103 void WillPrepareTiles() override;
105 void DidPrepareTiles() override; 104 void DidPrepareTiles() override;
106 void DidCompletePageScaleAnimationOnImplThread() override; 105 void DidCompletePageScaleAnimationOnImplThread() override;
107 void OnDrawForOutputSurface() override; 106 void OnDrawForOutputSurface(bool resourceless_software_draw) override;
108 void PostFrameTimingEventsOnImplThread( 107 void PostFrameTimingEventsOnImplThread(
109 scoped_ptr<FrameTimingTracker::CompositeTimingSet> composite_events, 108 scoped_ptr<FrameTimingTracker::CompositeTimingSet> composite_events,
110 scoped_ptr<FrameTimingTracker::MainFrameTimingSet> main_frame_events) 109 scoped_ptr<FrameTimingTracker::MainFrameTimingSet> main_frame_events)
111 override; 110 override;
112 111
113 void RequestNewOutputSurface(); 112 void RequestNewOutputSurface();
114 113
115 // Called by the legacy path where RenderWidget does the scheduling. 114 // Called by the legacy path where RenderWidget does the scheduling.
116 void CompositeImmediately(base::TimeTicks frame_begin_time); 115 void CompositeImmediately(base::TimeTicks frame_begin_time);
117 116
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 private: 232 private:
234 DebugScopedSetImplThread impl_thread_; 233 DebugScopedSetImplThread impl_thread_;
235 DebugScopedSetMainThreadBlocked main_thread_blocked_; 234 DebugScopedSetMainThreadBlocked main_thread_blocked_;
236 235
237 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetImplThreadAndMainThreadBlocked); 236 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetImplThreadAndMainThreadBlocked);
238 }; 237 };
239 238
240 } // namespace cc 239 } // namespace cc
241 240
242 #endif // CC_TREES_SINGLE_THREAD_PROXY_H_ 241 #endif // CC_TREES_SINGLE_THREAD_PROXY_H_
OLDNEW
« no previous file with comments | « cc/trees/proxy_impl.cc ('k') | cc/trees/single_thread_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698