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

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

Issue 221833009: cc: Move scheduling logic out of OutputSurface (Closed) Base URL: http://git.chromium.org/chromium/src.git@swapAck2Sched11
Patch Set: rebase; add comment about race Created 6 years, 8 months 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.h ('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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 virtual size_t MaxPartialTextureUpdates() const OVERRIDE; 66 virtual size_t MaxPartialTextureUpdates() const OVERRIDE;
67 virtual void ForceSerializeOnSwapBuffers() OVERRIDE; 67 virtual void ForceSerializeOnSwapBuffers() OVERRIDE;
68 virtual void SetDebugState(const LayerTreeDebugState& debug_state) OVERRIDE; 68 virtual void SetDebugState(const LayerTreeDebugState& debug_state) OVERRIDE;
69 virtual scoped_ptr<base::Value> AsValue() const OVERRIDE; 69 virtual scoped_ptr<base::Value> AsValue() const OVERRIDE;
70 virtual bool CommitPendingForTesting() OVERRIDE; 70 virtual bool CommitPendingForTesting() OVERRIDE;
71 virtual scoped_ptr<base::Value> SchedulerStateAsValueForTesting() OVERRIDE; 71 virtual scoped_ptr<base::Value> SchedulerStateAsValueForTesting() OVERRIDE;
72 72
73 // LayerTreeHostImplClient implementation 73 // LayerTreeHostImplClient implementation
74 virtual void UpdateRendererCapabilitiesOnImplThread() OVERRIDE; 74 virtual void UpdateRendererCapabilitiesOnImplThread() OVERRIDE;
75 virtual void DidLoseOutputSurfaceOnImplThread() OVERRIDE; 75 virtual void DidLoseOutputSurfaceOnImplThread() OVERRIDE;
76 virtual void CommitVSyncParameters(base::TimeTicks timebase,
77 base::TimeDelta interval) OVERRIDE;
78 virtual void SetEstimatedParentDrawTime(base::TimeDelta draw_time) OVERRIDE;
79 virtual void BeginFrame(const BeginFrameArgs& args) OVERRIDE;
76 virtual void SetMaxSwapsPendingOnImplThread(int max) OVERRIDE; 80 virtual void SetMaxSwapsPendingOnImplThread(int max) OVERRIDE;
77 virtual void DidSwapBuffersOnImplThread() OVERRIDE; 81 virtual void DidSwapBuffersOnImplThread() OVERRIDE;
78 virtual void DidSwapBuffersCompleteOnImplThread() OVERRIDE; 82 virtual void DidSwapBuffersCompleteOnImplThread() OVERRIDE;
79 virtual void BeginFrame(const BeginFrameArgs& args) OVERRIDE;
80 virtual void OnCanDrawStateChanged(bool can_draw) OVERRIDE; 83 virtual void OnCanDrawStateChanged(bool can_draw) OVERRIDE;
81 virtual void NotifyReadyToActivate() OVERRIDE; 84 virtual void NotifyReadyToActivate() OVERRIDE;
82 // Please call these 2 functions through 85 // Please call these 2 functions through
83 // LayerTreeHostImpl's SetNeedsRedraw() and SetNeedsRedrawRect(). 86 // LayerTreeHostImpl's SetNeedsRedraw() and SetNeedsRedrawRect().
84 virtual void SetNeedsRedrawOnImplThread() OVERRIDE; 87 virtual void SetNeedsRedrawOnImplThread() OVERRIDE;
85 virtual void SetNeedsRedrawRectOnImplThread(const gfx::Rect& dirty_rect) 88 virtual void SetNeedsRedrawRectOnImplThread(const gfx::Rect& dirty_rect)
86 OVERRIDE; 89 OVERRIDE;
87 virtual void SetNeedsManageTilesOnImplThread() OVERRIDE; 90 virtual void SetNeedsManageTilesOnImplThread() OVERRIDE;
88 virtual void DidInitializeVisibleTileOnImplThread() OVERRIDE; 91 virtual void DidInitializeVisibleTileOnImplThread() OVERRIDE;
89 virtual void SetNeedsCommitOnImplThread() OVERRIDE; 92 virtual void SetNeedsCommitOnImplThread() OVERRIDE;
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 304
302 base::WeakPtr<ThreadProxy> main_thread_weak_ptr_; 305 base::WeakPtr<ThreadProxy> main_thread_weak_ptr_;
303 base::WeakPtr<ThreadProxy> impl_thread_weak_ptr_; 306 base::WeakPtr<ThreadProxy> impl_thread_weak_ptr_;
304 307
305 DISALLOW_COPY_AND_ASSIGN(ThreadProxy); 308 DISALLOW_COPY_AND_ASSIGN(ThreadProxy);
306 }; 309 };
307 310
308 } // namespace cc 311 } // namespace cc
309 312
310 #endif // CC_TREES_THREAD_PROXY_H_ 313 #endif // CC_TREES_THREAD_PROXY_H_
OLDNEW
« no previous file with comments | « cc/trees/single_thread_proxy.h ('k') | cc/trees/thread_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698