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

Unified Diff: src/gpu/GrContextFactory.cpp

Issue 1604993005: Add ability to wire up sharelist in glcontext creation (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 11 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: 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

Powered by Google App Engine
This is Rietveld 408576698