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

Unified Diff: cc/gl_renderer.h

Issue 11232051: Remove static thread pointers from CC (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Address code review comments and fix all cc_unittests Created 8 years, 2 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/gl_renderer.h
diff --git a/cc/gl_renderer.h b/cc/gl_renderer.h
index e68e9442fd0f2b23757dfcd6018f0c67c811ed9c..676a0cb0cb6b8bf9a656331cc29bfa5105ce470f 100644
--- a/cc/gl_renderer.h
+++ b/cc/gl_renderer.h
@@ -33,7 +33,7 @@ class GLRenderer : public DirectRenderer,
public WebKit::WebGraphicsContext3D::WebGraphicsMemoryAllocationChangedCallbackCHROMIUM ,
public WebKit::WebGraphicsContext3D::WebGraphicsContextLostCallback {
public:
- static scoped_ptr<GLRenderer> create(RendererClient*, ResourceProvider*);
+ static scoped_ptr<GLRenderer> create(RendererClient*, ResourceProvider*, bool hasImplThread);
virtual ~GLRenderer();
@@ -57,7 +57,7 @@ public:
virtual void setVisible(bool) OVERRIDE;
protected:
- GLRenderer(RendererClient*, ResourceProvider*);
+ GLRenderer(RendererClient*, ResourceProvider*, bool hasImplThread);
static void debugGLCall(WebKit::WebGraphicsContext3D*, const char* command, const char* file, int line);
@@ -179,6 +179,8 @@ private:
const SolidColorProgram* solidColorProgram();
+ bool m_hasImplThread;
+
scoped_ptr<TileProgram> m_tileProgram;
scoped_ptr<TileProgramOpaque> m_tileProgramOpaque;
scoped_ptr<TileProgramAA> m_tileProgramAA;
« no previous file with comments | « cc/frame_rate_counter.cc ('k') | cc/gl_renderer.cc » ('j') | cc/gl_renderer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698