aboutsummaryrefslogtreecommitdiffhomepage
path: root/bench/nanobench.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'bench/nanobench.cpp')
-rw-r--r--bench/nanobench.cpp3
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;
}