aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/gpu/gl
diff options
context:
space:
mode:
authorGravatar svaisanen <svaisanen@nvidia.com>2016-04-20 00:36:53 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-04-20 00:36:53 -0700
commitb988ecf639f1394ea5e821ac15b989e25e064534 (patch)
tree166065e815d249422d6dc70e15844088b85742d1 /tools/gpu/gl
parent6d3119c9fc09ff1cf94965089d0873941097c1bc (diff)
Enable NV_path_rendering in the Null GL.
Diffstat (limited to 'tools/gpu/gl')
-rw-r--r--tools/gpu/gl/null/NullGLTestContext.cpp8
-rw-r--r--tools/gpu/gl/null/NullGLTestContext.h2
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