diff options
author | svaisanen <svaisanen@nvidia.com> | 2016-04-20 00:36:53 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-04-20 00:36:53 -0700 |
commit | b988ecf639f1394ea5e821ac15b989e25e064534 (patch) | |
tree | 166065e815d249422d6dc70e15844088b85742d1 /tools/gpu/gl | |
parent | 6d3119c9fc09ff1cf94965089d0873941097c1bc (diff) |
Enable NV_path_rendering in the Null GL.
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1882563002
Review URL: https://codereview.chromium.org/1882563002
Diffstat (limited to 'tools/gpu/gl')
-rw-r--r-- | tools/gpu/gl/null/NullGLTestContext.cpp | 8 | ||||
-rw-r--r-- | tools/gpu/gl/null/NullGLTestContext.h | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/tools/gpu/gl/null/NullGLTestContext.cpp b/tools/gpu/gl/null/NullGLTestContext.cpp index e0296541ac..56236a45a6 100644 --- a/tools/gpu/gl/null/NullGLTestContext.cpp +++ b/tools/gpu/gl/null/NullGLTestContext.cpp @@ -17,10 +17,10 @@ namespace { class NullGLContext : public sk_gpu_test::GLTestContext { public: - NullGLContext() { this->init(GrGLCreateNullInterface()); } + NullGLContext(bool enableNVPR) { this->init(GrGLCreateNullInterface(enableNVPR)); } ~NullGLContext() override { this->teardown(); } -private: +private: void onPlatformMakeCurrent() const override {}; void onPlatformSwapBuffers() const override {} GrGLFuncPtr onPlatformGetProcAddress(const char*) const override { return nullptr; } @@ -29,8 +29,8 @@ private: } // anonymous namespace namespace sk_gpu_test { -GLTestContext* CreateNullGLTestContext() { - GLTestContext* ctx = new NullGLContext(); +GLTestContext* CreateNullGLTestContext(bool enableNVPR) { + GLTestContext* ctx = new NullGLContext(enableNVPR); if (ctx->isValid()) { return ctx; } diff --git a/tools/gpu/gl/null/NullGLTestContext.h b/tools/gpu/gl/null/NullGLTestContext.h index ebde61a4c2..909ec2e666 100644 --- a/tools/gpu/gl/null/NullGLTestContext.h +++ b/tools/gpu/gl/null/NullGLTestContext.h @@ -11,7 +11,7 @@ #include "gl/GLTestContext.h" namespace sk_gpu_test { -GLTestContext* CreateNullGLTestContext(); +GLTestContext* CreateNullGLTestContext(bool enableNVPR); } // namespace sk_gpu_test #endif |