Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(45)

Side by Side Diff: cc/single_thread_proxy.h

Issue 12212007: cc: Route offscreen context creation for compositor to the browser. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove the GrContextProvider::ScopedContexts guard classes Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698