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

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

Issue 996453002: Allow ui::Compositor to disable commits during tab-switch (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cleaned up version Created 5 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_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/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 virtual const RendererCapabilities& GetRendererCapabilities() const = 0; 73 virtual const RendererCapabilities& GetRendererCapabilities() const = 0;
74 74
75 virtual void SetNeedsAnimate() = 0; 75 virtual void SetNeedsAnimate() = 0;
76 virtual void SetNeedsUpdateLayers() = 0; 76 virtual void SetNeedsUpdateLayers() = 0;
77 virtual void SetNeedsCommit() = 0; 77 virtual void SetNeedsCommit() = 0;
78 virtual void SetNeedsRedraw(const gfx::Rect& damage_rect) = 0; 78 virtual void SetNeedsRedraw(const gfx::Rect& damage_rect) = 0;
79 virtual void SetNextCommitWaitsForActivation() = 0; 79 virtual void SetNextCommitWaitsForActivation() = 0;
80 80
81 virtual void NotifyInputThrottledUntilCommit() = 0; 81 virtual void NotifyInputThrottledUntilCommit() = 0;
82 82
83 // Defers commits until it is reset. It is only supported when in threaded 83 // Defers commits until it is reset. It is only supported when using a
84 // mode. It's an error to make a sync call like CompositeAndReadback while 84 // scheduler.
85 // commits are deferred.
86 virtual void SetDeferCommits(bool defer_commits) = 0; 85 virtual void SetDeferCommits(bool defer_commits) = 0;
87 86
88 virtual void MainThreadHasStoppedFlinging() = 0; 87 virtual void MainThreadHasStoppedFlinging() = 0;
89 88
90 virtual bool CommitRequested() const = 0; 89 virtual bool CommitRequested() const = 0;
91 virtual bool BeginMainFrameRequested() const = 0; 90 virtual bool BeginMainFrameRequested() const = 0;
92 91
93 // Must be called before using the proxy. 92 // Must be called before using the proxy.
94 virtual void Start() = 0; 93 virtual void Start() = 0;
95 virtual void Stop() = 0; // Must be called before deleting the proxy. 94 virtual void Stop() = 0; // Must be called before deleting the proxy.
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 explicit DebugScopedSetMainThreadBlocked(Proxy* proxy) {} 155 explicit DebugScopedSetMainThreadBlocked(Proxy* proxy) {}
157 ~DebugScopedSetMainThreadBlocked() {} 156 ~DebugScopedSetMainThreadBlocked() {}
158 private: 157 private:
159 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetMainThreadBlocked); 158 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetMainThreadBlocked);
160 }; 159 };
161 #endif 160 #endif
162 161
163 } // namespace cc 162 } // namespace cc
164 163
165 #endif // CC_TREES_PROXY_H_ 164 #endif // CC_TREES_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698