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

Side by Side Diff: cc/proxy.h

Issue 11748031: cc: remove loseOutputSurface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 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
« no previous file with comments | « cc/layer_tree_host.cc ('k') | cc/single_thread_proxy.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_PROXY_H_ 5 #ifndef CC_PROXY_H_
6 #define CC_PROXY_H_ 6 #define CC_PROXY_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/time.h" 10 #include "base/time.h"
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 // Forces 3D commands on all contexts to wait for all previous SwapBuffers t o finish before executing in the GPU 90 // Forces 3D commands on all contexts to wait for all previous SwapBuffers t o finish before executing in the GPU
91 // process. 91 // process.
92 virtual void forceSerializeOnSwapBuffers() = 0; 92 virtual void forceSerializeOnSwapBuffers() = 0;
93 93
94 // Maximum number of sub-region texture updates supported for each commit. 94 // Maximum number of sub-region texture updates supported for each commit.
95 virtual size_t maxPartialTextureUpdates() const = 0; 95 virtual size_t maxPartialTextureUpdates() const = 0;
96 96
97 virtual void acquireLayerTextures() = 0; 97 virtual void acquireLayerTextures() = 0;
98 98
99 // Testing hooks 99 // Testing hooks
100 virtual void loseOutputSurface() = 0;
101 virtual bool commitPendingForTesting() = 0; 100 virtual bool commitPendingForTesting() = 0;
102 101
103 protected: 102 protected:
104 explicit Proxy(scoped_ptr<Thread> implThread); 103 explicit Proxy(scoped_ptr<Thread> implThread);
105 friend class DebugScopedSetImplThread; 104 friend class DebugScopedSetImplThread;
106 friend class DebugScopedSetMainThread; 105 friend class DebugScopedSetMainThread;
107 friend class DebugScopedSetMainThreadBlocked; 106 friend class DebugScopedSetMainThreadBlocked;
108 107
109 private: 108 private:
110 DISALLOW_COPY_AND_ASSIGN(Proxy); 109 DISALLOW_COPY_AND_ASSIGN(Proxy);
(...skipping 27 matching lines...) Expand all
138 class DebugScopedSetMainThreadBlocked { 137 class DebugScopedSetMainThreadBlocked {
139 public: 138 public:
140 explicit DebugScopedSetMainThreadBlocked(Proxy*) { } 139 explicit DebugScopedSetMainThreadBlocked(Proxy*) { }
141 ~DebugScopedSetMainThreadBlocked() { } 140 ~DebugScopedSetMainThreadBlocked() { }
142 }; 141 };
143 #endif 142 #endif
144 143
145 } 144 }
146 145
147 #endif // CC_PROXY_H_ 146 #endif // CC_PROXY_H_
OLDNEW
« no previous file with comments | « cc/layer_tree_host.cc ('k') | cc/single_thread_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698