aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/gl/mac
diff options
context:
space:
mode:
authorGravatar joshualitt <joshualitt@chromium.org>2016-01-20 08:07:01 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2016-01-20 08:07:02 -0800
commitb59d1bc7a8596f346d57a9cfcd461dddc6d75edb (patch)
tree802ae32d377784134f621307ede9fff2b2adfb34 /src/gpu/gl/mac
parentc1e710140b652509822a42872c4d4dd058393582 (diff)
Add ability to wire up sharelist in glcontext creation
Diffstat (limited to 'src/gpu/gl/mac')
-rw-r--r--src/gpu/gl/mac/SkCreatePlatformGLContext_mac.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/gpu/gl/mac/SkCreatePlatformGLContext_mac.cpp b/src/gpu/gl/mac/SkCreatePlatformGLContext_mac.cpp
index 41585c8632..d1826a49e3 100644
--- a/src/gpu/gl/mac/SkCreatePlatformGLContext_mac.cpp
+++ b/src/gpu/gl/mac/SkCreatePlatformGLContext_mac.cpp
@@ -109,7 +109,12 @@ GrGLFuncPtr MacGLContext::onPlatformGetProcAddress(const char* procName) const {
} // anonymous namespace
-SkGLContext* SkCreatePlatformGLContext(GrGLStandard forcedGpuAPI) {
+SkGLContext* SkCreatePlatformGLContext(GrGLStandard forcedGpuAPI, SkGLContext* shareContext) {
+ SkASSERT(!shareContext);
+ if (shareContext) {
+ return nullptr;
+ }
+
if (kGLES_GrGLStandard == forcedGpuAPI) {
return nullptr;
}