Index: tools/PictureRenderer.h |
diff --git a/tools/PictureRenderer.h b/tools/PictureRenderer.h |
index efe118ff08f48701e53c89c19c6f9fdca01bd607..b4e08aafeba704d362da6523de107cc2e8040649 100644 |
--- a/tools/PictureRenderer.h |
+++ b/tools/PictureRenderer.h |
@@ -165,7 +165,11 @@ public: |
/** |
* Set the backend type. Returns true on success and false on failure. |
*/ |
+#if SK_SUPPORT_GPU |
+ bool setDeviceType(SkDeviceTypes deviceType, GrGLStandard gpuAPI = kNone_GrGLStandard) { |
+#else |
bool setDeviceType(SkDeviceTypes deviceType) { |
+#endif |
fDeviceType = deviceType; |
#if SK_SUPPORT_GPU |
// In case this function is called more than once |
@@ -200,7 +204,7 @@ public: |
return false; |
} |
#if SK_SUPPORT_GPU |
- fGrContext = fGrContextFactory.get(glContextType); |
+ fGrContext = fGrContextFactory.get(glContextType, gpuAPI); |
if (NULL == fGrContext) { |
return false; |
} else { |