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