diff options
author | bsalomon <bsalomon@google.com> | 2015-05-22 12:25:41 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-05-22 12:25:41 -0700 |
commit | f28cff71db2cbb1ff18a8fbf1e80ca761d1f69bc (patch) | |
tree | b91e0e301f518cd417afb870824e84aa16297a7d /bench | |
parent | a624d12b2d10cff79ba4b31744d81cc2e0a8db5f (diff) |
Store context options on caps.
Review URL: https://codereview.chromium.org/1158433006
Diffstat (limited to 'bench')
-rw-r--r-- | bench/nanobench.cpp | 4 |
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 |