aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorGravatar hendrikw <hendrikw@chromium.org>2015-09-11 13:07:29 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-09-11 13:07:29 -0700
commiteddbefb4a5794b1d9f4e58a7cdf4e768b837c17f (patch)
tree1eebce01f8a1338110f5a171209e144ed503b86f /include
parent102081aba2525230fb1d904add4f66c5f46403b5 (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.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;