diff options
author | 2015-09-11 13:07:29 -0700 | |
---|---|---|
committer | 2015-09-11 13:07:29 -0700 | |
commit | eddbefb4a5794b1d9f4e58a7cdf4e768b837c17f (patch) | |
tree | 1eebce01f8a1338110f5a171209e144ed503b86f /include | |
parent | 102081aba2525230fb1d904add4f66c5f46403b5 (diff) |
skia: Add ANGLE with GL backend to nanobench/DM
This will allow us to test this without hacking it in, might be useful
for others too.
Review URL: https://codereview.chromium.org/1338003002
Diffstat (limited to 'include')
-rw-r--r-- | include/gpu/gl/angle/SkANGLEGLContext.h | 8 |
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; |