| 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 "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 // Returns false if the renderer couldn't be reinitialized. | 77 // Returns false if the renderer couldn't be reinitialized. |
| 78 virtual bool RecreateOutputSurface() = 0; | 78 virtual bool RecreateOutputSurface() = 0; |
| 79 | 79 |
| 80 virtual const RendererCapabilities& GetRendererCapabilities() const = 0; | 80 virtual const RendererCapabilities& GetRendererCapabilities() const = 0; |
| 81 | 81 |
| 82 virtual void SetNeedsAnimate() = 0; | 82 virtual void SetNeedsAnimate() = 0; |
| 83 virtual void SetNeedsCommit() = 0; | 83 virtual void SetNeedsCommit() = 0; |
| 84 virtual void SetNeedsRedraw() = 0; | 84 virtual void SetNeedsRedraw() = 0; |
| 85 | 85 |
| 86 // Defers commits until it is reset. It is only supported when in threaded | 86 // Defers commits until it is reset. It is only supported when in threaded |
| 87 // mode. It's an error to make a sync call like compositeAndReadback while | 87 // mode. It's an error to make a sync call like CompositeAndReadback while |
| 88 // commits are deferred. | 88 // commits are deferred. |
| 89 virtual void SetDeferCommits(bool defer_commits) = 0; | 89 virtual void SetDeferCommits(bool defer_commits) = 0; |
| 90 | 90 |
| 91 virtual void MainThreadHasStoppedFlinging() = 0; | 91 virtual void MainThreadHasStoppedFlinging() = 0; |
| 92 | 92 |
| 93 virtual bool CommitRequested() const = 0; | 93 virtual bool CommitRequested() const = 0; |
| 94 | 94 |
| 95 virtual void Start() = 0; // Must be called before using the proxy. | 95 virtual void Start() = 0; // Must be called before using the proxy. |
| 96 virtual void Stop() = 0; // Must be called before deleting the proxy. | 96 virtual void Stop() = 0; // Must be called before deleting the proxy. |
| 97 | 97 |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 class DebugScopedSetMainThreadBlocked { | 145 class DebugScopedSetMainThreadBlocked { |
| 146 public: | 146 public: |
| 147 explicit DebugScopedSetMainThreadBlocked(Proxy* proxy) {} | 147 explicit DebugScopedSetMainThreadBlocked(Proxy* proxy) {} |
| 148 ~DebugScopedSetMainThreadBlocked() {} | 148 ~DebugScopedSetMainThreadBlocked() {} |
| 149 }; | 149 }; |
| 150 #endif | 150 #endif |
| 151 | 151 |
| 152 } | 152 } |
| 153 | 153 |
| 154 #endif // CC_TREES_PROXY_H_ | 154 #endif // CC_TREES_PROXY_H_ |
| OLD | NEW |