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

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: Created 6 years, 9 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 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 AcquireLayerTextures() OVERRIDE; 67 virtual void AcquireLayerTextures() OVERRIDE;
68 virtual void ForceSerializeOnSwapBuffers() OVERRIDE; 68 virtual void ForceSerializeOnSwapBuffers() 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 SetMaxSwapsPending(int max) OVERRIDE;
77 virtual void DidSwapBuffersOnImplThread() OVERRIDE;
77 virtual void OnSwapBuffersCompleteOnImplThread() OVERRIDE; 78 virtual void OnSwapBuffersCompleteOnImplThread() OVERRIDE;
78 virtual void BeginImplFrame(const BeginFrameArgs& args) OVERRIDE; 79 virtual void BeginImplFrame(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;
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
311 312
312 base::WeakPtr<ThreadProxy> main_thread_weak_ptr_; 313 base::WeakPtr<ThreadProxy> main_thread_weak_ptr_;
313 base::WeakPtr<ThreadProxy> impl_thread_weak_ptr_; 314 base::WeakPtr<ThreadProxy> impl_thread_weak_ptr_;
314 315
315 DISALLOW_COPY_AND_ASSIGN(ThreadProxy); 316 DISALLOW_COPY_AND_ASSIGN(ThreadProxy);
316 }; 317 };
317 318
318 } // namespace cc 319 } // namespace cc
319 320
320 #endif // CC_TREES_THREAD_PROXY_H_ 321 #endif // CC_TREES_THREAD_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698