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, 1 insertions, 2 deletions
diff --git a/bench/nanobench.cpp b/bench/nanobench.cpp
index 0376bdbec3..4d2773e605 100644
--- a/bench/nanobench.cpp
+++ b/bench/nanobench.cpp
@@ -424,8 +424,7 @@ static void create_config(const SkCommandLineConfig* config, SkTArray<Config>* c
GrContextFactory factory(grContextOpts);
if (const GrContext* ctx = factory.get(ctxType, ctxOverrides)) {
- GrPixelConfig grPixConfig =
- SkImageInfo2GrPixelConfig(colorType, colorSpace, *ctx->contextPriv().caps());
+ GrPixelConfig grPixConfig = SkColorType2GrPixelConfig(colorType);
int supportedSampleCount =
ctx->contextPriv().caps()->getRenderTargetSampleCount(sampleCount, grPixConfig);
if (sampleCount != supportedSampleCount) {