From d309e7aa0efa2d5dd7e7b1af97026fcd3a047e98 Mon Sep 17 00:00:00 2001 From: bsalomon Date: Thu, 30 Apr 2015 14:18:54 -0700 Subject: This replaces the texture creation/caching functions on GrContext with a GrTextureProvider interface. The goal is to pass this narrowly focused object in places that currently take a GrContext but don't need and shouldn't use its other methods. It also has an extended private interface for interacting with non-texture resource types. Review URL: https://codereview.chromium.org/1107973004 --- src/gpu/GrClipMaskCache.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gpu/GrClipMaskCache.h') diff --git a/src/gpu/GrClipMaskCache.h b/src/gpu/GrClipMaskCache.h index 0329c840a8..3aa80df04d 100644 --- a/src/gpu/GrClipMaskCache.h +++ b/src/gpu/GrClipMaskCache.h @@ -206,8 +206,8 @@ private: // HACK: set the last param to true to indicate that this request is at // flush time and therefore we require a scratch texture with no pending IO operations. - fLastMask.reset(context->refScratchTexture(desc, GrContext::kApprox_ScratchTexMatch, - /*flushing=*/true)); + fLastMask.reset(context->textureProvider()->refScratchTexture( + desc, GrTextureProvider::kApprox_ScratchTexMatch, /*flushing=*/true)); fLastBound = bound; } -- cgit v1.2.3