| Index: include/gpu/gl/angle/SkANGLEGLContext.h
|
| diff --git a/include/gpu/gl/angle/SkANGLEGLContext.h b/include/gpu/gl/angle/SkANGLEGLContext.h
|
| index 6590c765d89f060c59c0319522ac94154ca23356..8d5f83041a9d4a268fad8432297a281605b2a469 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;
|
|
|