Index: src/gpu/gl/SkGLContextHelper.cpp |
diff --git a/src/gpu/gl/SkGLContextHelper.cpp b/src/gpu/gl/SkGLContextHelper.cpp |
index b06f755f677196bfabd5fcd58dda6a213cda665d..2381a84519b868618c21523baee44a57fe083e2f 100644 |
--- a/src/gpu/gl/SkGLContextHelper.cpp |
+++ b/src/gpu/gl/SkGLContextHelper.cpp |
@@ -27,13 +27,14 @@ SkGLContextHelper::~SkGLContextHelper() { |
SkSafeUnref(fGL); |
} |
-bool SkGLContextHelper::init(int width, int height) { |
+bool SkGLContextHelper::init(GrGLStandard forcedGpuAPI, int width, |
+ int height) { |
if (fGL) { |
fGL->unref(); |
this->destroyGLContext(); |
} |
- fGL = this->createGLContext(); |
+ fGL = this->createGLContext(forcedGpuAPI); |
if (fGL) { |
const GrGLubyte* temp; |