diff options
author | csmartdalton <csmartdalton@google.com> | 2017-02-22 12:00:42 -0700 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-02-22 20:29:56 +0000 |
commit | 008b9d80ab9adbf2656eceaf54d11cd15e4dda05 (patch) | |
tree | 06d4863dc3f65dcdb6704ec65f31800e544ea181 /example | |
parent | 19eec39c90a357ff3476d65f2c672096f55518e3 (diff) |
Add the ability to enable/disable GPU path renderers
Adds a bitfield to GrContextOptions that masks out path renderers.
Adds commandline flags support to set this bitfield in tools apps.
Removes GrGLInterfaceRemoveNVPR since we can now accomplish the same
thing in the context options.
BUG=skia:
Change-Id: Icf2a4df36374b3ba2f69ebf0db56e8aedd6cf65f
Reviewed-on: https://skia-review.googlesource.com/8786
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Chris Dalton <csmartdalton@google.com>
Diffstat (limited to 'example')
-rw-r--r-- | example/SkiaSDLExample.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/example/SkiaSDLExample.cpp b/example/SkiaSDLExample.cpp index 3aa42b3518..abd198afe9 100644 --- a/example/SkiaSDLExample.cpp +++ b/example/SkiaSDLExample.cpp @@ -185,10 +185,6 @@ int main(int argc, char** argv) { // setup GrContext sk_sp<const GrGLInterface> interface(GrGLCreateNativeInterface()); - // To use NVPR, comment this out - interface.reset(GrGLInterfaceRemoveNVPR(interface)); - SkASSERT(interface); - // setup contexts sk_sp<GrContext> grContext(GrContext::Create(kOpenGL_GrBackend, (GrBackendContext)interface.get())); |