Committing on behalf of [email protected] .

Remove duplicated code in AcceleratedSurface using PbufferGLContext instead.
This also fixes a crash caused by the OpenGL bindings not being initialized.

BUG=46286
TEST=flash plugin 10.1 works again in both mac 10.5 and 10.6

Review URL: http://codereview.chromium.org/2782006


git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49836 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/app/gfx/gl/gl_context.h b/app/gfx/gl/gl_context.h
index 1b04985d..9da7583 100644
--- a/app/gfx/gl/gl_context.h
+++ b/app/gfx/gl/gl_context.h
@@ -48,6 +48,8 @@
 
   // Create a GL context used for offscreen rendering. It is initially backed by
   // a 1x1 pbuffer. Use it to create an FBO to do useful rendering.
+  // |share_context|, if non-NULL, is a context which the internally created
+  // OpenGL context shares textures and other resources.
   static GLContext* CreateOffscreenGLContext(GLContext* shared_context);
 
  protected: