Index: gpu/skia_bindings/gl_bindings_skia_cmd_buffer.cc |
diff --git a/gpu/skia_bindings/gl_bindings_skia_cmd_buffer.cc b/gpu/skia_bindings/gl_bindings_skia_cmd_buffer.cc |
index dc4b236d2cc555d34de925d7ddb0c8e0553b7a6a..9afc900d6513d57a7982022b3d62e1db8e4ab985 100644 |
--- a/gpu/skia_bindings/gl_bindings_skia_cmd_buffer.cc |
+++ b/gpu/skia_bindings/gl_bindings_skia_cmd_buffer.cc |
@@ -15,8 +15,7 @@ |
namespace skia_bindings { |
-GrGLInterface* CreateCommandBufferSkiaGLBinding() { |
- GrGLInterface* interface = new GrGLInterface; |
+void InitCommandBufferSkiaGLBinding(GrGLInterface* interface) { |
interface->fStandard = kGLES_GrGLStandard; |
interface->fExtensions.init(kGLES_GrGLStandard, |
glGetString, |
@@ -180,8 +179,6 @@ GrGLInterface* CreateCommandBufferSkiaGLBinding() { |
glProgramPathFragmentInputGenCHROMIUM; |
functions->fBindFragmentInputLocation = glBindFragmentInputLocationCHROMIUM; |
} |
- |
- return interface; |
} |
} // namespace skia |