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

Unified 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: Fix typo 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 side-by-side diff with in-line comments
Download patch
Index: cc/single_thread_proxy.h
diff --git a/cc/single_thread_proxy.h b/cc/single_thread_proxy.h
index a49950167c12e845805eec47a6bb15f655c0b27e..a8be0933a96c03436120a073e6429690cf5fa43e 100644
--- a/cc/single_thread_proxy.h
+++ b/cc/single_thread_proxy.h
@@ -14,6 +14,7 @@
namespace cc {
+class ContextProvider;
class LayerTreeHost;
class SingleThreadProxy : public Proxy, LayerTreeHostImplClient {
@@ -73,12 +74,13 @@ private:
bool commitAndComposite();
void doCommit(scoped_ptr<ResourceUpdateQueue>);
- bool doComposite();
+ bool doComposite(scoped_refptr<cc::ContextProvider> offscreenContextProvider);
void didSwapFrame();
// Accessed on main thread only.
LayerTreeHost* m_layerTreeHost;
bool m_outputSurfaceLost;
+ bool m_createdOffscreenContextProvider;
// Holds on to the context between initializeContext() and initializeRenderer() calls. Shouldn't
// be used for anything else.

Powered by Google App Engine
This is Rietveld 408576698