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_SINGLE_THREAD_PROXY_H_ | 5 #ifndef CC_SINGLE_THREAD_PROXY_H_ |
6 #define CC_SINGLE_THREAD_PROXY_H_ | 6 #define CC_SINGLE_THREAD_PROXY_H_ |
7 | 7 |
8 #include <limits> | 8 #include <limits> |
9 | 9 |
10 #include "base/time.h" | 10 #include "base/time.h" |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 virtual void renewTreePriority() OVERRIDE { } | 66 virtual void renewTreePriority() OVERRIDE { } |
67 | 67 |
68 // Called by the legacy path where RenderWidget does the scheduling. | 68 // Called by the legacy path where RenderWidget does the scheduling. |
69 void compositeImmediately(); | 69 void compositeImmediately(); |
70 | 70 |
71 private: | 71 private: |
72 explicit SingleThreadProxy(LayerTreeHost*); | 72 explicit SingleThreadProxy(LayerTreeHost*); |
73 | 73 |
74 bool commitAndComposite(); | 74 bool commitAndComposite(); |
75 void doCommit(scoped_ptr<ResourceUpdateQueue>); | 75 void doCommit(scoped_ptr<ResourceUpdateQueue>); |
76 bool doComposite(); | 76 bool doComposite(WebKit::WebGraphicsContext3D* offscreenContext3d, GrContext
* offscreenGrContext); |
77 void didSwapFrame(); | 77 void didSwapFrame(); |
78 | 78 |
79 // Accessed on main thread only. | 79 // Accessed on main thread only. |
80 LayerTreeHost* m_layerTreeHost; | 80 LayerTreeHost* m_layerTreeHost; |
81 bool m_outputSurfaceLost; | 81 bool m_outputSurfaceLost; |
82 | 82 |
83 // Holds on to the context between initializeContext() and initializeRendere
r() calls. Shouldn't | 83 // Holds on to the context between initializeContext() and initializeRendere
r() calls. Shouldn't |
84 // be used for anything else. | 84 // be used for anything else. |
85 scoped_ptr<OutputSurface> m_outputSurfaceBeforeInitialization; | 85 scoped_ptr<OutputSurface> m_outputSurfaceBeforeInitialization; |
86 | 86 |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 { | 154 { |
155 } | 155 } |
156 private: | 156 private: |
157 DebugScopedSetImplThread m_implThread; | 157 DebugScopedSetImplThread m_implThread; |
158 DebugScopedSetMainThreadBlocked m_mainThreadBlocked; | 158 DebugScopedSetMainThreadBlocked m_mainThreadBlocked; |
159 }; | 159 }; |
160 | 160 |
161 } // namespace cc | 161 } // namespace cc |
162 | 162 |
163 #endif // CC_SINGLE_THREAD_PROXY_H_ | 163 #endif // CC_SINGLE_THREAD_PROXY_H_ |
OLD | NEW |