From 1afd4cdb0800e2e395b465da24eb71e0e834dafa Mon Sep 17 00:00:00 2001 From: Robert Phillips Date: Mon, 8 Jan 2018 13:40:32 -0500 Subject: Add GrProxyProvider This pulls all the proxy tracking & creation functionality out of the GrResourceCache and GrResourceProvider and consolidates it in the GrProxyProvider. Change-Id: I7256f7c544319a70c1bd93dd5a9ccbe5fa0a544f Reviewed-on: https://skia-review.googlesource.com/91501 Commit-Queue: Robert Phillips Reviewed-by: Greg Daniel --- src/gpu/effects/GrRRectBlurEffect.fp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/gpu/effects/GrRRectBlurEffect.fp') diff --git a/src/gpu/effects/GrRRectBlurEffect.fp b/src/gpu/effects/GrRRectBlurEffect.fp index c920efd581..c21c4f07c7 100644 --- a/src/gpu/effects/GrRRectBlurEffect.fp +++ b/src/gpu/effects/GrRRectBlurEffect.fp @@ -9,6 +9,7 @@ uniform half blurRadius; #include "GrClip.h" #include "GrContext.h" #include "GrPaint.h" + #include "GrProxyProvider.h" #include "GrRenderTargetContext.h" #include "GrStyle.h" #include "SkBlurMaskFilter.h" @@ -35,7 +36,7 @@ uniform half blurRadius; } builder.finish(); - sk_sp mask(context->resourceProvider()->findOrCreateProxyByUniqueKey( + sk_sp mask(context->proxyProvider()->findOrCreateProxyByUniqueKey( key, kBottomLeft_GrSurfaceOrigin)); if (!mask) { // TODO: this could be approx but the texture coords will need to be updated @@ -74,7 +75,7 @@ uniform half blurRadius; return nullptr; } SkASSERT(mask->origin() == kBottomLeft_GrSurfaceOrigin); - context->resourceProvider()->assignUniqueKeyToProxy(key, mask.get()); + context->proxyProvider()->assignUniqueKeyToProxy(key, mask.get()); } return mask; -- cgit v1.2.3