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

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

Issue 199523002: cc: Throttle swaps in Scheduler instead of OutputSurface (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Actually, unittests need CC_EXPORT. 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.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 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 DidSwapBuffersOnImplThread() OVERRIDE {} 76 virtual void SetMaxSwapsPendingOnImplThread(int max) OVERRIDE;
77 virtual void OnSwapBuffersCompleteOnImplThread() OVERRIDE; 77 virtual void DidSwapBuffersOnImplThread() OVERRIDE;
78 virtual void DidSwapBuffersCompleteOnImplThread() OVERRIDE;
78 virtual void BeginFrame(const BeginFrameArgs& args) OVERRIDE; 79 virtual void BeginFrame(const BeginFrameArgs& args) OVERRIDE;
79 virtual void OnCanDrawStateChanged(bool can_draw) OVERRIDE; 80 virtual void OnCanDrawStateChanged(bool can_draw) OVERRIDE;
80 virtual void NotifyReadyToActivate() OVERRIDE; 81 virtual void NotifyReadyToActivate() OVERRIDE;
81 // Please call these 2 functions through 82 // Please call these 2 functions through
82 // LayerTreeHostImpl's SetNeedsRedraw() and SetNeedsRedrawRect(). 83 // LayerTreeHostImpl's SetNeedsRedraw() and SetNeedsRedrawRect().
83 virtual void SetNeedsRedrawOnImplThread() OVERRIDE; 84 virtual void SetNeedsRedrawOnImplThread() OVERRIDE;
84 virtual void SetNeedsRedrawRectOnImplThread(const gfx::Rect& dirty_rect) 85 virtual void SetNeedsRedrawRectOnImplThread(const gfx::Rect& dirty_rect)
85 OVERRIDE; 86 OVERRIDE;
86 virtual void SetNeedsManageTilesOnImplThread() OVERRIDE; 87 virtual void SetNeedsManageTilesOnImplThread() OVERRIDE;
87 virtual void DidInitializeVisibleTileOnImplThread() OVERRIDE; 88 virtual void DidInitializeVisibleTileOnImplThread() OVERRIDE;
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
305 306
306 base::WeakPtr<ThreadProxy> main_thread_weak_ptr_; 307 base::WeakPtr<ThreadProxy> main_thread_weak_ptr_;
307 base::WeakPtr<ThreadProxy> impl_thread_weak_ptr_; 308 base::WeakPtr<ThreadProxy> impl_thread_weak_ptr_;
308 309
309 DISALLOW_COPY_AND_ASSIGN(ThreadProxy); 310 DISALLOW_COPY_AND_ASSIGN(ThreadProxy);
310 }; 311 };
311 312
312 } // namespace cc 313 } // namespace cc
313 314
314 #endif // CC_TREES_THREAD_PROXY_H_ 315 #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