| 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 virtual ~Proxy(); | 54 virtual ~Proxy(); |
| 55 | 55 |
| 56 virtual void FinishAllRendering() = 0; | 56 virtual void FinishAllRendering() = 0; |
| 57 | 57 |
| 58 virtual bool IsStarted() const = 0; | 58 virtual bool IsStarted() const = 0; |
| 59 | 59 |
| 60 // Indicates that the compositing surface associated with our context is | 60 // Indicates that the compositing surface associated with our context is |
| 61 // ready to use. | 61 // ready to use. |
| 62 virtual void SetLayerTreeHostClientReady() = 0; | 62 virtual void SetLayerTreeHostClientReady() = 0; |
| 63 | 63 |
| 64 // Indicates that shutdown will happen soon and no more output surfaces |
| 65 // should be created. |
| 66 virtual void SetLayerTreeHostClientFinished() = 0; |
| 67 |
| 64 virtual void SetVisible(bool visible) = 0; | 68 virtual void SetVisible(bool visible) = 0; |
| 65 | 69 |
| 66 virtual const RendererCapabilities& GetRendererCapabilities() const = 0; | 70 virtual const RendererCapabilities& GetRendererCapabilities() const = 0; |
| 67 | 71 |
| 68 virtual void SetNeedsAnimate() = 0; | 72 virtual void SetNeedsAnimate() = 0; |
| 69 virtual void SetNeedsUpdateLayers() = 0; | 73 virtual void SetNeedsUpdateLayers() = 0; |
| 70 virtual void SetNeedsCommit() = 0; | 74 virtual void SetNeedsCommit() = 0; |
| 71 virtual void SetNeedsRedraw(const gfx::Rect& damage_rect) = 0; | 75 virtual void SetNeedsRedraw(const gfx::Rect& damage_rect) = 0; |
| 72 virtual void SetNextCommitWaitsForActivation() = 0; | 76 virtual void SetNextCommitWaitsForActivation() = 0; |
| 73 | 77 |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 explicit DebugScopedSetMainThreadBlocked(Proxy* proxy) {} | 147 explicit DebugScopedSetMainThreadBlocked(Proxy* proxy) {} |
| 144 ~DebugScopedSetMainThreadBlocked() {} | 148 ~DebugScopedSetMainThreadBlocked() {} |
| 145 private: | 149 private: |
| 146 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetMainThreadBlocked); | 150 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetMainThreadBlocked); |
| 147 }; | 151 }; |
| 148 #endif | 152 #endif |
| 149 | 153 |
| 150 } // namespace cc | 154 } // namespace cc |
| 151 | 155 |
| 152 #endif // CC_TREES_PROXY_H_ | 156 #endif // CC_TREES_PROXY_H_ |
| OLD | NEW |