Index: src/gpu/GrContextFactory.cpp |
diff --git a/src/gpu/GrContextFactory.cpp b/src/gpu/GrContextFactory.cpp |
index b7e48254c881af6835b8c6e195b3a8c2ee1a69a7..7b0bd82acaa29a4f4f39d8273c65db9b71ad46ee 100755 |
--- a/src/gpu/GrContextFactory.cpp |
+++ b/src/gpu/GrContextFactory.cpp |
@@ -60,7 +60,8 @@ void GrContextFactory::abandonContexts() { |
} |
GrContextFactory::ContextInfo GrContextFactory::getContextInfo(GLContextType type, |
- GLContextOptions options) { |
+ GLContextOptions options, |
+ SkGLContext* shareList) { |
for (int i = 0; i < fContexts.count(); ++i) { |
Context& context = fContexts[i]; |
if (!context.fGLContext) { |
@@ -76,13 +77,13 @@ GrContextFactory::ContextInfo GrContextFactory::getContextInfo(GLContextType typ |
SkAutoTUnref<GrContext> grCtx; |
switch (type) { |
case kNative_GLContextType: |
- glCtx.reset(SkCreatePlatformGLContext(kNone_GrGLStandard)); |
+ glCtx.reset(SkCreatePlatformGLContext(kNone_GrGLStandard, shareList)); |
break; |
case kGL_GLContextType: |
- glCtx.reset(SkCreatePlatformGLContext(kGL_GrGLStandard)); |
+ glCtx.reset(SkCreatePlatformGLContext(kGL_GrGLStandard, shareList)); |
break; |
case kGLES_GLContextType: |
- glCtx.reset(SkCreatePlatformGLContext(kGLES_GrGLStandard)); |
+ glCtx.reset(SkCreatePlatformGLContext(kGLES_GrGLStandard, shareList)); |
break; |
#if SK_ANGLE |
#ifdef SK_BUILD_FOR_WIN |