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 CCSingleThreadProxy_h | 5 #ifndef CCSingleThreadProxy_h |
6 #define CCSingleThreadProxy_h | 6 #define CCSingleThreadProxy_h |
7 | 7 |
8 #include "CCAnimationEvents.h" | 8 #include "CCAnimationEvents.h" |
9 #include "CCLayerTreeHostImpl.h" | 9 #include "CCLayerTreeHostImpl.h" |
10 #include "CCProxy.h" | 10 #include "CCProxy.h" |
11 #include <limits> | 11 #include <limits> |
12 #include <wtf/OwnPtr.h> | 12 #include <wtf/OwnPtr.h> |
13 | 13 |
14 namespace WebCore { | 14 namespace cc { |
15 | 15 |
16 class CCLayerTreeHost; | 16 class CCLayerTreeHost; |
17 | 17 |
18 class CCSingleThreadProxy : public CCProxy, CCLayerTreeHostImplClient { | 18 class CCSingleThreadProxy : public CCProxy, CCLayerTreeHostImplClient { |
19 public: | 19 public: |
20 static PassOwnPtr<CCProxy> create(CCLayerTreeHost*); | 20 static PassOwnPtr<CCProxy> create(CCLayerTreeHost*); |
21 virtual ~CCSingleThreadProxy(); | 21 virtual ~CCSingleThreadProxy(); |
22 | 22 |
23 // CCProxy implementation | 23 // CCProxy implementation |
24 virtual bool compositeAndReadback(void *pixels, const IntRect&) OVERRIDE; | 24 virtual bool compositeAndReadback(void *pixels, const IntRect&) OVERRIDE; |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 | 118 |
119 // For use in the single-threaded case. In debug builds, it pretends that the | 119 // For use in the single-threaded case. In debug builds, it pretends that the |
120 // code is running on the impl thread and that the main thread is blocked to | 120 // code is running on the impl thread and that the main thread is blocked to |
121 // satisfy assertion checks | 121 // satisfy assertion checks |
122 class DebugScopedSetImplThreadAndMainThreadBlocked { | 122 class DebugScopedSetImplThreadAndMainThreadBlocked { |
123 private: | 123 private: |
124 DebugScopedSetImplThread m_implThread; | 124 DebugScopedSetImplThread m_implThread; |
125 DebugScopedSetMainThreadBlocked m_mainThreadBlocked; | 125 DebugScopedSetMainThreadBlocked m_mainThreadBlocked; |
126 }; | 126 }; |
127 | 127 |
128 } // namespace WebCore | 128 } // namespace cc |
129 | 129 |
130 #endif | 130 #endif |
OLD | NEW |