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