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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 | 73 |
74 virtual void NotifyInputThrottledUntilCommit() = 0; | 74 virtual void NotifyInputThrottledUntilCommit() = 0; |
75 | 75 |
76 // Defers commits until it is reset. It is only supported when in threaded | 76 // 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 | 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; | |
82 | |
83 virtual bool CommitRequested() const = 0; | 81 virtual bool CommitRequested() const = 0; |
84 virtual bool BeginMainFrameRequested() const = 0; | 82 virtual bool BeginMainFrameRequested() const = 0; |
85 | 83 |
86 // Must be called before using the proxy. | 84 // Must be called before using the proxy. |
87 virtual void Start(scoped_ptr<OutputSurface> first_output_surface) = 0; | 85 virtual void Start(scoped_ptr<OutputSurface> first_output_surface) = 0; |
88 virtual void Stop() = 0; // Must be called before deleting the proxy. | 86 virtual void Stop() = 0; // Must be called before deleting the proxy. |
89 | 87 |
90 // Forces 3D commands on all contexts to wait for all previous SwapBuffers | 88 // Forces 3D commands on all contexts to wait for all previous SwapBuffers |
91 // to finish before executing in the GPU process. | 89 // to finish before executing in the GPU process. |
92 virtual void ForceSerializeOnSwapBuffers() = 0; | 90 virtual void ForceSerializeOnSwapBuffers() = 0; |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 explicit DebugScopedSetMainThreadBlocked(Proxy* proxy) {} | 139 explicit DebugScopedSetMainThreadBlocked(Proxy* proxy) {} |
142 ~DebugScopedSetMainThreadBlocked() {} | 140 ~DebugScopedSetMainThreadBlocked() {} |
143 private: | 141 private: |
144 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetMainThreadBlocked); | 142 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetMainThreadBlocked); |
145 }; | 143 }; |
146 #endif | 144 #endif |
147 | 145 |
148 } // namespace cc | 146 } // namespace cc |
149 | 147 |
150 #endif // CC_TREES_PROXY_H_ | 148 #endif // CC_TREES_PROXY_H_ |
OLD | NEW |