diff options
author | 2016-01-20 08:07:01 -0800 | |
---|---|---|
committer | 2016-01-20 08:07:02 -0800 | |
commit | b59d1bc7a8596f346d57a9cfcd461dddc6d75edb (patch) | |
tree | 802ae32d377784134f621307ede9fff2b2adfb34 /src/gpu/gl/mac | |
parent | c1e710140b652509822a42872c4d4dd058393582 (diff) |
Add ability to wire up sharelist in glcontext creation
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1604993005
Review URL: https://codereview.chromium.org/1604993005
Diffstat (limited to 'src/gpu/gl/mac')
-rw-r--r-- | src/gpu/gl/mac/SkCreatePlatformGLContext_mac.cpp | 7 |
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; } |