aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/gpu/gl/angle/SkANGLEGLContext.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/gpu/gl/angle/SkANGLEGLContext.h')
-rw-r--r--include/gpu/gl/angle/SkANGLEGLContext.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/gpu/gl/angle/SkANGLEGLContext.h b/include/gpu/gl/angle/SkANGLEGLContext.h
index 6590c765d8..8d5f83041a 100644
--- a/include/gpu/gl/angle/SkANGLEGLContext.h
+++ b/include/gpu/gl/angle/SkANGLEGLContext.h
@@ -16,11 +16,11 @@ class SkANGLEGLContext : public SkGLContext {
public:
~SkANGLEGLContext() override;
- static SkANGLEGLContext* Create(GrGLStandard forcedGpuAPI) {
+ static SkANGLEGLContext* Create(GrGLStandard forcedGpuAPI, bool useGLBackend) {
if (kGL_GrGLStandard == forcedGpuAPI) {
return NULL;
}
- SkANGLEGLContext* ctx = new SkANGLEGLContext;
+ SkANGLEGLContext* ctx = new SkANGLEGLContext(useGLBackend);
if (!ctx->isValid()) {
delete ctx;
return NULL;
@@ -29,10 +29,10 @@ public:
}
// The param is an EGLNativeDisplayType and the return is an EGLDispay.
- static void* GetD3DEGLDisplay(void* nativeDisplay);
+ static void* GetD3DEGLDisplay(void* nativeDisplay, bool useGLBackend);
private:
- SkANGLEGLContext();
+ SkANGLEGLContext(bool preferGLBackend);
void destroyGLContext();
void onPlatformMakeCurrent() const override;