Index: bench/nanobench.cpp |
diff --git a/bench/nanobench.cpp b/bench/nanobench.cpp |
index cd15580afbbd14d7fd477188822b9c030d9c7ef3..2fba1f053373c21e9aba473d65b79111f0464aaa 100644 |
--- a/bench/nanobench.cpp |
+++ b/bench/nanobench.cpp |
@@ -43,7 +43,6 @@ |
#if SK_SUPPORT_GPU |
#include "gl/GrGLDefines.h" |
- #include "GrCaps.h" |
#include "GrContextFactory.h" |
SkAutoTDelete<GrContextFactory> gGrFactory; |
#endif |
@@ -373,7 +372,7 @@ |
return false; |
} |
if (const GrContext* ctx = gGrFactory->get(ctxType)) { |
- return sampleCnt <= ctx->caps()->maxSampleCount(); |
+ return sampleCnt <= ctx->getMaxSampleCount(); |
} |
return false; |
} |