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

Unified Diff: webkit/glue/gl_bindings_skia_cmd_buffer.cc

Issue 7753035: Allow each WGC3D subclass to determine the correct GrGLInterface for its GrContext. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 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: webkit/glue/gl_bindings_skia_cmd_buffer.cc
===================================================================
--- webkit/glue/gl_bindings_skia_cmd_buffer.cc (revision 98420)
+++ webkit/glue/gl_bindings_skia_cmd_buffer.cc (working copy)
@@ -15,7 +15,7 @@
namespace webkit_glue {
-void BindSkiaToCommandBufferGL() {
+GrGLInterface* GetCommandBufferSkiaGLBinding() {
static SkAutoTUnref<GrGLInterface> cmd_buffer_interface;
if (NULL == cmd_buffer_interface.get()) {
GrGLInterface* interface = new GrGLInterface;
@@ -117,7 +117,7 @@
glRenderbufferStorageMultisampleEXT;
interface->fBlitFramebuffer = glBlitFramebufferEXT;
}
- GrGLSetDefaultGLInterface(cmd_buffer_interface.get());
+ return cmd_buffer_interface.get();
}
} // namespace webkit_glue
« no previous file with comments | « webkit/glue/gl_bindings_skia_cmd_buffer.h ('k') | webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698