Add the ability to enable/disable GPU path renderers
authorcsmartdalton <csmartdalton@google.com>
Wed, 22 Feb 2017 19:00:42 +0000 (12:00 -0700)
committerSkia Commit-Bot <skia-commit-bot@chromium.org>
Wed, 22 Feb 2017 20:29:56 +0000 (20:29 +0000)
commit008b9d80ab9adbf2656eceaf54d11cd15e4dda05
tree06d4863dc3f65dcdb6704ec65f31800e544ea181
parent19eec39c90a357ff3476d65f2c672096f55518e3
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>
19 files changed:
bench/nanobench.cpp
dm/DM.cpp
example/SkiaSDLExample.cpp
gm/pathmaskcache.cpp
include/gpu/GrContextOptions.h
include/gpu/gl/GrGLInterface.h
samplecode/SampleApp.cpp
samplecode/SampleApp.h
src/gpu/GrContext.cpp
src/gpu/GrPathRendererChain.cpp
src/gpu/GrPathRendererChain.h
src/gpu/gl/GrGLCaps.cpp
src/gpu/gl/GrGLInterface.cpp
tools/flags/SkCommonFlagsPathRenderer.h [new file with mode: 0644]
tools/gpu/GrContextFactory.cpp
tools/skpbench/skpbench.cpp
tools/viewer/Viewer.cpp
tools/viewer/sk_app/GLWindowContext.cpp
tools/viewer/sk_app/VulkanWindowContext.cpp