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

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

Issue 85693007: cc: Defer first OutputSurface creation until client is ready (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add tests Created 7 years 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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 // mode. It's an error to make a sync call like CompositeAndReadback while 77 // mode. It's an error to make a sync call like CompositeAndReadback while
78 // commits are deferred. 78 // commits are deferred.
79 virtual void SetDeferCommits(bool defer_commits) = 0; 79 virtual void SetDeferCommits(bool defer_commits) = 0;
80 80
81 virtual void MainThreadHasStoppedFlinging() = 0; 81 virtual void MainThreadHasStoppedFlinging() = 0;
82 82
83 virtual bool CommitRequested() const = 0; 83 virtual bool CommitRequested() const = 0;
84 virtual bool BeginMainFrameRequested() const = 0; 84 virtual bool BeginMainFrameRequested() const = 0;
85 85
86 // Must be called before using the proxy. 86 // Must be called before using the proxy.
87 virtual void Start(scoped_ptr<OutputSurface> first_output_surface) = 0; 87 virtual void Start() = 0;
88 virtual void Stop() = 0; // Must be called before deleting the proxy. 88 virtual void Stop() = 0; // Must be called before deleting the proxy.
89 89
90 // Forces 3D commands on all contexts to wait for all previous SwapBuffers 90 // Forces 3D commands on all contexts to wait for all previous SwapBuffers
91 // to finish before executing in the GPU process. 91 // to finish before executing in the GPU 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;
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 explicit DebugScopedSetMainThreadBlocked(Proxy* proxy) {} 141 explicit DebugScopedSetMainThreadBlocked(Proxy* proxy) {}
142 ~DebugScopedSetMainThreadBlocked() {} 142 ~DebugScopedSetMainThreadBlocked() {}
143 private: 143 private:
144 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetMainThreadBlocked); 144 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetMainThreadBlocked);
145 }; 145 };
146 #endif 146 #endif
147 147
148 } // namespace cc 148 } // namespace cc
149 149
150 #endif // CC_TREES_PROXY_H_ 150 #endif // CC_TREES_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698