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

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; fix tests 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
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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 virtual void AcquireLayerTextures() OVERRIDE; 67 virtual void AcquireLayerTextures() OVERRIDE;
68 virtual void ForceSerializeOnSwapBuffers() OVERRIDE; 68 virtual void ForceSerializeOnSwapBuffers() OVERRIDE;
69 virtual void SetDebugState(const LayerTreeDebugState& debug_state) OVERRIDE; 69 virtual void SetDebugState(const LayerTreeDebugState& debug_state) OVERRIDE;
70 virtual scoped_ptr<base::Value> AsValue() const OVERRIDE; 70 virtual scoped_ptr<base::Value> AsValue() const OVERRIDE;
71 virtual bool CommitPendingForTesting() OVERRIDE; 71 virtual bool CommitPendingForTesting() OVERRIDE;
72 virtual scoped_ptr<base::Value> SchedulerStateAsValueForTesting() OVERRIDE; 72 virtual scoped_ptr<base::Value> SchedulerStateAsValueForTesting() OVERRIDE;
73 73
74 // LayerTreeHostImplClient implementation 74 // LayerTreeHostImplClient implementation
75 virtual void UpdateRendererCapabilitiesOnImplThread() OVERRIDE; 75 virtual void UpdateRendererCapabilitiesOnImplThread() OVERRIDE;
76 virtual void DidLoseOutputSurfaceOnImplThread() OVERRIDE; 76 virtual void DidLoseOutputSurfaceOnImplThread() OVERRIDE;
77 virtual void CommitVSyncParameters(base::TimeTicks timebase,
78 base::TimeDelta interval) OVERRIDE;
79 virtual void SetEstimatedParentDrawTime(base::TimeDelta draw_time) OVERRIDE;
80 virtual void BeginFrame(const BeginFrameArgs& args) OVERRIDE;
77 virtual void SetMaxSwapsPending(int max) OVERRIDE; 81 virtual void SetMaxSwapsPending(int max) OVERRIDE;
78 virtual void DidSwapBuffersOnImplThread() OVERRIDE; 82 virtual void DidSwapBuffersOnImplThread() OVERRIDE;
79 virtual void OnSwapBuffersCompleteOnImplThread() OVERRIDE; 83 virtual void OnSwapBuffersCompleteOnImplThread() OVERRIDE;
80 virtual void BeginFrame(const BeginFrameArgs& args) OVERRIDE;
81 virtual void OnCanDrawStateChanged(bool can_draw) OVERRIDE; 84 virtual void OnCanDrawStateChanged(bool can_draw) OVERRIDE;
82 virtual void NotifyReadyToActivate() OVERRIDE; 85 virtual void NotifyReadyToActivate() OVERRIDE;
83 // Please call these 2 functions through 86 // Please call these 2 functions through
84 // LayerTreeHostImpl's SetNeedsRedraw() and SetNeedsRedrawRect(). 87 // LayerTreeHostImpl's SetNeedsRedraw() and SetNeedsRedrawRect().
85 virtual void SetNeedsRedrawOnImplThread() OVERRIDE; 88 virtual void SetNeedsRedrawOnImplThread() OVERRIDE;
86 virtual void SetNeedsRedrawRectOnImplThread(const gfx::Rect& dirty_rect) 89 virtual void SetNeedsRedrawRectOnImplThread(const gfx::Rect& dirty_rect)
87 OVERRIDE; 90 OVERRIDE;
88 virtual void SetNeedsManageTilesOnImplThread() OVERRIDE; 91 virtual void SetNeedsManageTilesOnImplThread() OVERRIDE;
89 virtual void DidInitializeVisibleTileOnImplThread() OVERRIDE; 92 virtual void DidInitializeVisibleTileOnImplThread() OVERRIDE;
90 virtual void SetNeedsCommitOnImplThread() OVERRIDE; 93 virtual void SetNeedsCommitOnImplThread() OVERRIDE;
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
314 317
315 base::WeakPtr<ThreadProxy> main_thread_weak_ptr_; 318 base::WeakPtr<ThreadProxy> main_thread_weak_ptr_;
316 base::WeakPtr<ThreadProxy> impl_thread_weak_ptr_; 319 base::WeakPtr<ThreadProxy> impl_thread_weak_ptr_;
317 320
318 DISALLOW_COPY_AND_ASSIGN(ThreadProxy); 321 DISALLOW_COPY_AND_ASSIGN(ThreadProxy);
319 }; 322 };
320 323
321 } // namespace cc 324 } // namespace cc
322 325
323 #endif // CC_TREES_THREAD_PROXY_H_ 326 #endif // CC_TREES_THREAD_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698