diff options
Diffstat (limited to 'src/gpu/GrGpuFactory.cpp')
-rw-r--r-- | src/gpu/GrGpuFactory.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gpu/GrGpuFactory.cpp b/src/gpu/GrGpuFactory.cpp index 63a73b738a..a5114469ae 100644 --- a/src/gpu/GrGpuFactory.cpp +++ b/src/gpu/GrGpuFactory.cpp @@ -14,13 +14,13 @@ #include "GrGpu.h" #include "gl/GrGpuGL.h" -GrGpu* GrGpu::Create(GrBackend backend, GrBackendContext context) { +GrGpu* GrGpu::Create(GrBackend backend, GrBackendContext backendContext, GrContext* context) { const GrGLInterface* glInterface = NULL; SkAutoTUnref<const GrGLInterface> glInterfaceUnref; if (kOpenGL_GrBackend == backend) { - glInterface = reinterpret_cast<const GrGLInterface*>(context); + glInterface = reinterpret_cast<const GrGLInterface*>(backendContext); if (NULL == glInterface) { glInterface = GrGLDefaultInterface(); // By calling GrGLDefaultInterface we've taken a ref on the @@ -36,7 +36,7 @@ GrGpu* GrGpu::Create(GrBackend backend, GrBackendContext context) { } GrGLContextInfo ctxInfo(glInterface); if (ctxInfo.isInitialized()) { - return SkNEW_ARGS(GrGpuGL, (ctxInfo)); + return SkNEW_ARGS(GrGpuGL, (ctxInfo, context)); } } return NULL; |