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

Unified Diff: ui/gfx/gl/gl_context_mac.cc

Issue 7021014: GLContext no longer holds a pointer to a GLSurface. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 7 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: ui/gfx/gl/gl_context_mac.cc
===================================================================
--- ui/gfx/gl/gl_context_mac.cc (revision 85357)
+++ ui/gfx/gl/gl_context_mac.cc (working copy)
@@ -16,24 +16,17 @@
namespace gfx {
-GLContext* GLContext::CreateGLContext(GLSurface* compatible_surface,
- GLContext* shared_context) {
- scoped_ptr<GLSurface> surface(compatible_surface);
-
+GLContext* GLContext::CreateGLContext(GLContext* shared_context) {
switch (GetGLImplementation()) {
case kGLImplementationDesktopGL: {
- scoped_ptr<GLContextCGL> context(
- new GLContextCGL(
- static_cast<GLSurfaceCGL*>(surface.release())));
+ scoped_ptr<GLContextCGL> context(new GLContextCGL);
if (!context->Initialize(shared_context))
return NULL;
return context.release();
}
case kGLImplementationOSMesaGL: {
- scoped_ptr<GLContextOSMesa> context(
- new GLContextOSMesa(
- static_cast<GLSurfaceOSMesa*>(surface.release())));
+ scoped_ptr<GLContextOSMesa> context(new GLContextOSMesa);
if (!context->Initialize(OSMESA_RGBA, shared_context))
return NULL;

Powered by Google App Engine
This is Rietveld 408576698