Chromium Code Reviews| 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 45 void SetMainThreadBlocked(bool is_main_thread_blocked); | 45 void SetMainThreadBlocked(bool is_main_thread_blocked); |
| 46 void SetCurrentThreadIsImplThread(bool is_impl_thread); | 46 void SetCurrentThreadIsImplThread(bool is_impl_thread); |
| 47 #endif | 47 #endif |
| 48 | 48 |
| 49 virtual ~Proxy(); | 49 virtual ~Proxy(); |
| 50 | 50 |
| 51 virtual void FinishAllRendering() = 0; | 51 virtual void FinishAllRendering() = 0; |
| 52 | 52 |
| 53 virtual bool IsStarted() const = 0; | 53 virtual bool IsStarted() const = 0; |
| 54 | 54 |
| 55 virtual void SetOutputSurface(scoped_ptr<OutputSurface>) = 0; | |
|
danakj
2014/06/25 17:43:09
Can you add comment about how this will cause Laye
enne (OOO)
2014/06/25 21:25:05
Done. After this patch, I want to revist that and
danakj
2014/06/25 21:25:50
+1
| |
| 56 | |
| 55 // Indicates that the compositing surface associated with our context is | 57 // Indicates that the compositing surface associated with our context is |
| 56 // ready to use. | 58 // ready to use. |
| 57 virtual void SetLayerTreeHostClientReady() = 0; | 59 virtual void SetLayerTreeHostClientReady() = 0; |
| 58 | 60 |
| 59 virtual void SetVisible(bool visible) = 0; | 61 virtual void SetVisible(bool visible) = 0; |
| 60 | 62 |
| 61 virtual const RendererCapabilities& GetRendererCapabilities() const = 0; | 63 virtual const RendererCapabilities& GetRendererCapabilities() const = 0; |
| 62 | 64 |
| 63 virtual void SetNeedsAnimate() = 0; | 65 virtual void SetNeedsAnimate() = 0; |
| 64 virtual void SetNeedsUpdateLayers() = 0; | 66 virtual void SetNeedsUpdateLayers() = 0; |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 137 explicit DebugScopedSetMainThreadBlocked(Proxy* proxy) {} | 139 explicit DebugScopedSetMainThreadBlocked(Proxy* proxy) {} |
| 138 ~DebugScopedSetMainThreadBlocked() {} | 140 ~DebugScopedSetMainThreadBlocked() {} |
| 139 private: | 141 private: |
| 140 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetMainThreadBlocked); | 142 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetMainThreadBlocked); |
| 141 }; | 143 }; |
| 142 #endif | 144 #endif |
| 143 | 145 |
| 144 } // namespace cc | 146 } // namespace cc |
| 145 | 147 |
| 146 #endif // CC_TREES_PROXY_H_ | 148 #endif // CC_TREES_PROXY_H_ |
| OLD | NEW |