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

Unified Diff: mojo/gpu/gl_context.h

Issue 1307883004: Use C OpenGL interface in mojo::GLContext (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 4 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: mojo/gpu/gl_context.h
diff --git a/mojo/gpu/gl_context.h b/mojo/gpu/gl_context.h
index 79ef518552bdb5c775ca10c354a1ba09bcbbdd07..9c5eb3ab3518003a621ba04de078777559bcca9b 100644
--- a/mojo/gpu/gl_context.h
+++ b/mojo/gpu/gl_context.h
@@ -17,6 +17,7 @@ class GLES2Interface;
}
namespace mojo {
+class MojoGLES2Impl;
class Shell;
class GLContext {
@@ -34,7 +35,7 @@ class GLContext {
void MakeCurrent();
void Destroy();
- gpu::gles2::GLES2Interface* gl() const { return gl_; }
+ gpu::gles2::GLES2Interface* gl() const;
void AddObserver(Observer* observer);
void RemoveObserver(Observer* observer);
@@ -47,7 +48,7 @@ class GLContext {
void OnContextLost();
MojoGLES2Context context_;
- gpu::gles2::GLES2Interface* gl_;
+ scoped_ptr<MojoGLES2Impl> gl_impl_;
base::ObserverList<Observer> observers_;
base::WeakPtrFactory<GLContext> weak_factory_;
« no previous file with comments | « mojo/gles2/gles2_impl.cc ('k') | mojo/gpu/gl_context.cc » ('j') | mojo/gpu/gl_context.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698