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

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

Issue 734063004: Update from https://crrev.com/304418 (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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/single_thread_proxy.cc ('k') | cc/trees/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_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 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 void OnCanDrawStateChanged(bool can_draw) override; 188 void OnCanDrawStateChanged(bool can_draw) override;
189 void NotifyReadyToActivate() override; 189 void NotifyReadyToActivate() override;
190 void NotifyReadyToDraw() override; 190 void NotifyReadyToDraw() override;
191 // Please call these 3 functions through 191 // Please call these 3 functions through
192 // LayerTreeHostImpl's SetNeedsRedraw(), SetNeedsRedrawRect() and 192 // LayerTreeHostImpl's SetNeedsRedraw(), SetNeedsRedrawRect() and
193 // SetNeedsAnimate(). 193 // SetNeedsAnimate().
194 void SetNeedsRedrawOnImplThread() override; 194 void SetNeedsRedrawOnImplThread() override;
195 void SetNeedsRedrawRectOnImplThread(const gfx::Rect& dirty_rect) override; 195 void SetNeedsRedrawRectOnImplThread(const gfx::Rect& dirty_rect) override;
196 void SetNeedsAnimateOnImplThread() override; 196 void SetNeedsAnimateOnImplThread() override;
197 void SetNeedsManageTilesOnImplThread() override; 197 void SetNeedsManageTilesOnImplThread() override;
198 void DidInitializeVisibleTileOnImplThread() override;
199 void SetNeedsCommitOnImplThread() override; 198 void SetNeedsCommitOnImplThread() override;
200 void PostAnimationEventsToMainThreadOnImplThread( 199 void PostAnimationEventsToMainThreadOnImplThread(
201 scoped_ptr<AnimationEventsVector> queue) override; 200 scoped_ptr<AnimationEventsVector> queue) override;
202 bool ReduceContentsTextureMemoryOnImplThread(size_t limit_bytes, 201 bool ReduceContentsTextureMemoryOnImplThread(size_t limit_bytes,
203 int priority_cutoff) override; 202 int priority_cutoff) override;
204 bool IsInsideDraw() override; 203 bool IsInsideDraw() override;
205 void RenewTreePriority() override; 204 void RenewTreePriority() override;
206 void PostDelayedScrollbarFadeOnImplThread(const base::Closure& start_fade, 205 void PostDelayedScrollbarFadeOnImplThread(const base::Closure& start_fade,
207 base::TimeDelta delay) override; 206 base::TimeDelta delay) override;
208 void DidActivateSyncTree() override; 207 void DidActivateSyncTree() override;
209 void DidManageTiles() override; 208 void DidManageTiles() override;
210 209
211 // SchedulerClient implementation 210 // SchedulerClient implementation
212 void WillBeginImplFrame(const BeginFrameArgs& args) override; 211 void WillBeginImplFrame(const BeginFrameArgs& args) override;
213 void ScheduledActionSendBeginMainFrame() override; 212 void ScheduledActionSendBeginMainFrame() override;
214 DrawResult ScheduledActionDrawAndSwapIfPossible() override; 213 DrawResult ScheduledActionDrawAndSwapIfPossible() override;
215 DrawResult ScheduledActionDrawAndSwapForced() override; 214 DrawResult ScheduledActionDrawAndSwapForced() override;
216 void ScheduledActionAnimate() override; 215 void ScheduledActionAnimate() override;
217 void ScheduledActionCommit() override; 216 void ScheduledActionCommit() override;
218 void ScheduledActionUpdateVisibleTiles() override;
219 void ScheduledActionActivateSyncTree() override; 217 void ScheduledActionActivateSyncTree() override;
220 void ScheduledActionBeginOutputSurfaceCreation() override; 218 void ScheduledActionBeginOutputSurfaceCreation() override;
221 void ScheduledActionManageTiles() override; 219 void ScheduledActionManageTiles() override;
222 void DidAnticipatedDrawTimeChange(base::TimeTicks time) override; 220 void DidAnticipatedDrawTimeChange(base::TimeTicks time) override;
223 base::TimeDelta DrawDurationEstimate() override; 221 base::TimeDelta DrawDurationEstimate() override;
224 base::TimeDelta BeginMainFrameToCommitDurationEstimate() override; 222 base::TimeDelta BeginMainFrameToCommitDurationEstimate() override;
225 base::TimeDelta CommitToActivateDurationEstimate() override; 223 base::TimeDelta CommitToActivateDurationEstimate() override;
226 void DidBeginImplFrameDeadline() override; 224 void DidBeginImplFrameDeadline() override;
227 225
228 // ResourceUpdateControllerClient implementation 226 // ResourceUpdateControllerClient implementation
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 294
297 base::WeakPtr<ThreadProxy> main_thread_weak_ptr_; 295 base::WeakPtr<ThreadProxy> main_thread_weak_ptr_;
298 base::WeakPtr<ThreadProxy> impl_thread_weak_ptr_; 296 base::WeakPtr<ThreadProxy> impl_thread_weak_ptr_;
299 297
300 DISALLOW_COPY_AND_ASSIGN(ThreadProxy); 298 DISALLOW_COPY_AND_ASSIGN(ThreadProxy);
301 }; 299 };
302 300
303 } // namespace cc 301 } // namespace cc
304 302
305 #endif // CC_TREES_THREAD_PROXY_H_ 303 #endif // CC_TREES_THREAD_PROXY_H_
OLDNEW
« no previous file with comments | « cc/trees/single_thread_proxy.cc ('k') | cc/trees/thread_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698