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

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

Issue 23694031: Fix race conditions in window snapshot code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 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 | Annotate | Revision Log
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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 // LayerTreeHost::OnCreateAndInitializeOutputSurfaceAttempted with the result. 63 // LayerTreeHost::OnCreateAndInitializeOutputSurfaceAttempted with the result.
64 virtual void CreateAndInitializeOutputSurface() = 0; 64 virtual void CreateAndInitializeOutputSurface() = 0;
65 65
66 virtual const RendererCapabilities& GetRendererCapabilities() const = 0; 66 virtual const RendererCapabilities& GetRendererCapabilities() const = 0;
67 67
68 virtual void SetNeedsAnimate() = 0; 68 virtual void SetNeedsAnimate() = 0;
69 virtual void SetNeedsUpdateLayers() = 0; 69 virtual void SetNeedsUpdateLayers() = 0;
70 virtual void SetNeedsCommit() = 0; 70 virtual void SetNeedsCommit() = 0;
71 virtual void SetNeedsRedraw(gfx::Rect damage_rect) = 0; 71 virtual void SetNeedsRedraw(gfx::Rect damage_rect) = 0;
72 virtual void SetNextCommitWaitsForActivation() = 0; 72 virtual void SetNextCommitWaitsForActivation() = 0;
73 virtual void SetNextCommitForcesRedraw() = 0;
73 74
74 virtual void NotifyInputThrottledUntilCommit() = 0; 75 virtual void NotifyInputThrottledUntilCommit() = 0;
75 76
76 // Defers commits until it is reset. It is only supported when in threaded 77 // Defers commits until it is reset. It is only supported when in threaded
77 // mode. It's an error to make a sync call like CompositeAndReadback while 78 // mode. It's an error to make a sync call like CompositeAndReadback while
78 // commits are deferred. 79 // commits are deferred.
79 virtual void SetDeferCommits(bool defer_commits) = 0; 80 virtual void SetDeferCommits(bool defer_commits) = 0;
80 81
81 virtual void MainThreadHasStoppedFlinging() = 0; 82 virtual void MainThreadHasStoppedFlinging() = 0;
82 83
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 explicit DebugScopedSetMainThreadBlocked(Proxy* proxy) {} 141 explicit DebugScopedSetMainThreadBlocked(Proxy* proxy) {}
141 ~DebugScopedSetMainThreadBlocked() {} 142 ~DebugScopedSetMainThreadBlocked() {}
142 private: 143 private:
143 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetMainThreadBlocked); 144 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetMainThreadBlocked);
144 }; 145 };
145 #endif 146 #endif
146 147
147 } // namespace cc 148 } // namespace cc
148 149
149 #endif // CC_TREES_PROXY_H_ 150 #endif // CC_TREES_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698