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

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: rebase 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 DidSwapBuffersOnImplThread() OVERRIDE {} 77 virtual void SetMaxSwapsPending(int max) OVERRIDE;
78 virtual void DidSwapBuffersOnImplThread() OVERRIDE;
78 virtual void OnSwapBuffersCompleteOnImplThread() OVERRIDE; 79 virtual void OnSwapBuffersCompleteOnImplThread() OVERRIDE;
79 virtual void BeginFrame(const BeginFrameArgs& args) OVERRIDE; 80 virtual void BeginFrame(const BeginFrameArgs& args) OVERRIDE;
80 virtual void OnCanDrawStateChanged(bool can_draw) OVERRIDE; 81 virtual void OnCanDrawStateChanged(bool can_draw) OVERRIDE;
81 virtual void NotifyReadyToActivate() OVERRIDE; 82 virtual void NotifyReadyToActivate() OVERRIDE;
82 // Please call these 2 functions through 83 // Please call these 2 functions through
83 // LayerTreeHostImpl's SetNeedsRedraw() and SetNeedsRedrawRect(). 84 // LayerTreeHostImpl's SetNeedsRedraw() and SetNeedsRedrawRect().
84 virtual void SetNeedsRedrawOnImplThread() OVERRIDE; 85 virtual void SetNeedsRedrawOnImplThread() OVERRIDE;
85 virtual void SetNeedsRedrawRectOnImplThread(const gfx::Rect& dirty_rect) 86 virtual void SetNeedsRedrawRectOnImplThread(const gfx::Rect& dirty_rect)
86 OVERRIDE; 87 OVERRIDE;
87 virtual void SetNeedsManageTilesOnImplThread() OVERRIDE; 88 virtual void SetNeedsManageTilesOnImplThread() OVERRIDE;
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
313 314
314 base::WeakPtr<ThreadProxy> main_thread_weak_ptr_; 315 base::WeakPtr<ThreadProxy> main_thread_weak_ptr_;
315 base::WeakPtr<ThreadProxy> impl_thread_weak_ptr_; 316 base::WeakPtr<ThreadProxy> impl_thread_weak_ptr_;
316 317
317 DISALLOW_COPY_AND_ASSIGN(ThreadProxy); 318 DISALLOW_COPY_AND_ASSIGN(ThreadProxy);
318 }; 319 };
319 320
320 } // namespace cc 321 } // namespace cc
321 322
322 #endif // CC_TREES_THREAD_PROXY_H_ 323 #endif // CC_TREES_THREAD_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698