diff options
author | 2015-05-29 08:02:10 -0700 | |
---|---|---|
committer | 2015-05-29 08:02:10 -0700 | |
commit | 762286309545c8a1e4bbc05dcd1fe3085d2a1f47 (patch) | |
tree | 0b939756bc2106ec4bf46d90362c6292a2ae4435 /bench/nanobench.cpp | |
parent | ff2f423d90147dba710186ec4b63de75da7be8ed (diff) |
Add direct getter for GrCaps to GrContext.
TBR=joshualitt@google.com
Committed: https://skia.googlesource.com/skia/+/9138c46e572085870638b6f7ad7fcdfcdf3cac99
Review URL: https://codereview.chromium.org/1149773005
Diffstat (limited to 'bench/nanobench.cpp')
-rw-r--r-- | bench/nanobench.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bench/nanobench.cpp b/bench/nanobench.cpp index 2fba1f0533..cd15580afb 100644 --- a/bench/nanobench.cpp +++ b/bench/nanobench.cpp @@ -43,6 +43,7 @@ #if SK_SUPPORT_GPU #include "gl/GrGLDefines.h" + #include "GrCaps.h" #include "GrContextFactory.h" SkAutoTDelete<GrContextFactory> gGrFactory; #endif @@ -372,7 +373,7 @@ static bool is_gpu_config_allowed(const char* name, GrContextFactory::GLContextT return false; } if (const GrContext* ctx = gGrFactory->get(ctxType)) { - return sampleCnt <= ctx->getMaxSampleCount(); + return sampleCnt <= ctx->caps()->maxSampleCount(); } return false; } |