OLD | NEW |
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 Loading... |
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() = 0; | 87 virtual void Start(scoped_ptr<OutputSurface> first_output_surface) = 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 Loading... |
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_ |
OLD | NEW |