| 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 29 matching lines...) Expand all Loading... |
| 40 bool IsMainThread() const; | 40 bool IsMainThread() const; |
| 41 bool IsImplThread() const; | 41 bool IsImplThread() const; |
| 42 bool IsMainThreadBlocked() const; | 42 bool IsMainThreadBlocked() const; |
| 43 #if DCHECK_IS_ON | 43 #if DCHECK_IS_ON |
| 44 void SetMainThreadBlocked(bool is_main_thread_blocked); | 44 void SetMainThreadBlocked(bool is_main_thread_blocked); |
| 45 void SetCurrentThreadIsImplThread(bool is_impl_thread); | 45 void SetCurrentThreadIsImplThread(bool is_impl_thread); |
| 46 #endif | 46 #endif |
| 47 | 47 |
| 48 virtual ~Proxy(); | 48 virtual ~Proxy(); |
| 49 | 49 |
| 50 virtual bool CompositeAndReadback(void* pixels, const gfx::Rect& rect) = 0; | |
| 51 | |
| 52 virtual void FinishAllRendering() = 0; | 50 virtual void FinishAllRendering() = 0; |
| 53 | 51 |
| 54 virtual bool IsStarted() const = 0; | 52 virtual bool IsStarted() const = 0; |
| 55 | 53 |
| 56 // Indicates that the compositing surface associated with our context is | 54 // Indicates that the compositing surface associated with our context is |
| 57 // ready to use. | 55 // ready to use. |
| 58 virtual void SetLayerTreeHostClientReady() = 0; | 56 virtual void SetLayerTreeHostClientReady() = 0; |
| 59 | 57 |
| 60 virtual void SetVisible(bool visible) = 0; | 58 virtual void SetVisible(bool visible) = 0; |
| 61 | 59 |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 explicit DebugScopedSetMainThreadBlocked(Proxy* proxy) {} | 140 explicit DebugScopedSetMainThreadBlocked(Proxy* proxy) {} |
| 143 ~DebugScopedSetMainThreadBlocked() {} | 141 ~DebugScopedSetMainThreadBlocked() {} |
| 144 private: | 142 private: |
| 145 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetMainThreadBlocked); | 143 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetMainThreadBlocked); |
| 146 }; | 144 }; |
| 147 #endif | 145 #endif |
| 148 | 146 |
| 149 } // namespace cc | 147 } // namespace cc |
| 150 | 148 |
| 151 #endif // CC_TREES_PROXY_H_ | 149 #endif // CC_TREES_PROXY_H_ |
| OLD | NEW |