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

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

Issue 1762823002: Remove runtime toggling of throttling frames (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
« no previous file with comments | « cc/trees/layer_tree_host.cc ('k') | cc/trees/proxy_impl.h » ('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_PROXY_H_ 5 #ifndef CC_TREES_PROXY_H_
6 #define CC_TREES_PROXY_H_ 6 #define CC_TREES_PROXY_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 30 matching lines...) Expand all
41 virtual bool CommitToActiveTree() const = 0; 41 virtual bool CommitToActiveTree() const = 0;
42 42
43 // Will call LayerTreeHost::OnCreateAndInitializeOutputSurfaceAttempted 43 // Will call LayerTreeHost::OnCreateAndInitializeOutputSurfaceAttempted
44 // with the result of this function. 44 // with the result of this function.
45 virtual void SetOutputSurface(OutputSurface* output_surface) = 0; 45 virtual void SetOutputSurface(OutputSurface* output_surface) = 0;
46 46
47 virtual void ReleaseOutputSurface() = 0; 47 virtual void ReleaseOutputSurface() = 0;
48 48
49 virtual void SetVisible(bool visible) = 0; 49 virtual void SetVisible(bool visible) = 0;
50 50
51 virtual void SetThrottleFrameProduction(bool throttle) = 0;
52
53 virtual const RendererCapabilities& GetRendererCapabilities() const = 0; 51 virtual const RendererCapabilities& GetRendererCapabilities() const = 0;
54 52
55 virtual void SetNeedsAnimate() = 0; 53 virtual void SetNeedsAnimate() = 0;
56 virtual void SetNeedsUpdateLayers() = 0; 54 virtual void SetNeedsUpdateLayers() = 0;
57 virtual void SetNeedsCommit() = 0; 55 virtual void SetNeedsCommit() = 0;
58 virtual void SetNeedsRedraw(const gfx::Rect& damage_rect) = 0; 56 virtual void SetNeedsRedraw(const gfx::Rect& damage_rect) = 0;
59 virtual void SetNextCommitWaitsForActivation() = 0; 57 virtual void SetNextCommitWaitsForActivation() = 0;
60 58
61 virtual void NotifyInputThrottledUntilCommit() = 0; 59 virtual void NotifyInputThrottledUntilCommit() = 0;
62 60
(...skipping 22 matching lines...) Expand all
85 TopControlsState current, 83 TopControlsState current,
86 bool animate) = 0; 84 bool animate) = 0;
87 85
88 // Testing hooks 86 // Testing hooks
89 virtual bool MainFrameWillHappenForTesting() = 0; 87 virtual bool MainFrameWillHappenForTesting() = 0;
90 }; 88 };
91 89
92 } // namespace cc 90 } // namespace cc
93 91
94 #endif // CC_TREES_PROXY_H_ 92 #endif // CC_TREES_PROXY_H_
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host.cc ('k') | cc/trees/proxy_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698