From c7fe0f708ccbf12bf2ad1374ff307940d2c93880 Mon Sep 17 00:00:00 2001 From: Brian Salomon Date: Fri, 11 May 2018 10:14:21 -0400 Subject: Make GrCaps and GrShaderCaps private. Moves getCaps() from GrContext to GrContextPriv and removes unused refCaps(). Change-Id: Ic6a8951b656c0d1b2773eae73bff8e88af819866 Reviewed-on: https://skia-review.googlesource.com/127389 Commit-Queue: Brian Salomon Reviewed-by: Greg Daniel --- bench/nanobench.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'bench') diff --git a/bench/nanobench.cpp b/bench/nanobench.cpp index 99bea4f60f..a156ad6ecc 100644 --- a/bench/nanobench.cpp +++ b/bench/nanobench.cpp @@ -439,10 +439,10 @@ static void create_config(const SkCommandLineConfig* config, SkTArray* c GrContextFactory factory(grContextOpts); if (const GrContext* ctx = factory.get(ctxType, ctxOverrides)) { - GrPixelConfig grPixConfig = SkImageInfo2GrPixelConfig(colorType, colorSpace, - *ctx->caps()); + GrPixelConfig grPixConfig = + SkImageInfo2GrPixelConfig(colorType, colorSpace, *ctx->contextPriv().caps()); int supportedSampleCount = - ctx->caps()->getRenderTargetSampleCount(sampleCount, grPixConfig); + ctx->contextPriv().caps()->getRenderTargetSampleCount(sampleCount, grPixConfig); if (sampleCount != supportedSampleCount) { SkDebugf("Configuration '%s' sample count %d is not a supported sample count.\n", config->getTag().c_str(), sampleCount); -- cgit v1.2.3