aboutsummaryrefslogtreecommitdiffhomepage
path: root/bench
diff options
context:
space:
mode:
authorGravatar bsalomon <bsalomon@google.com>2015-05-22 12:25:41 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-05-22 12:25:41 -0700
commitf28cff71db2cbb1ff18a8fbf1e80ca761d1f69bc (patch)
treeb91e0e301f518cd417afb870824e84aa16297a7d /bench
parenta624d12b2d10cff79ba4b31744d81cc2e0a8db5f (diff)
Store context options on caps.
Diffstat (limited to 'bench')
-rw-r--r--bench/nanobench.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/bench/nanobench.cpp b/bench/nanobench.cpp
index 85685fb3bc..2fba1f0533 100644
--- a/bench/nanobench.cpp
+++ b/bench/nanobench.cpp
@@ -47,6 +47,8 @@
SkAutoTDelete<GrContextFactory> gGrFactory;
#endif
+ struct GrContextOptions;
+
__SK_FORCE_IMAGE_DECODER_LINKING;
static const int kAutoTuneLoops = 0;
@@ -844,7 +846,7 @@ int nanobench_main() {
SkTaskGroup::Enabler enabled;
#if SK_SUPPORT_GPU
- GrContext::Options grContextOpts;
+ GrContextOptions grContextOpts;
grContextOpts.fDrawPathToCompressedTexture = FLAGS_gpuCompressAlphaMasks;
gGrFactory.reset(SkNEW_ARGS(GrContextFactory, (grContextOpts)));
#endif