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 --- gm/flippity.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'gm/flippity.cpp') diff --git a/gm/flippity.cpp b/gm/flippity.cpp index f4358382c3..93813b943f 100644 --- a/gm/flippity.cpp +++ b/gm/flippity.cpp @@ -12,6 +12,7 @@ #if SK_SUPPORT_GPU +#include "GrContextPriv.h" #include "SkImage_Gpu.h" static const int kNumMatrices = 6; @@ -129,9 +130,10 @@ static sk_sp make_reference_image(GrContext* context, } } - sk_sp proxy = GrSurfaceProxy::MakeDeferred(context->resourceProvider(), - desc, SkBudgeted::kYes, - bm.getPixels(), bm.rowBytes()); + sk_sp proxy = GrSurfaceProxy::MakeDeferred( + context->contextPriv().proxyProvider(), + desc, SkBudgeted::kYes, + bm.getPixels(), bm.rowBytes()); if (!proxy) { return nullptr; } -- cgit v1.2.3