From 0bd24dc41f2351d84f5fce32130668a5792d134b Mon Sep 17 00:00:00 2001 From: Robert Phillips Date: Tue, 16 Jan 2018 08:06:32 -0500 Subject: Funnel most proxy creation through GrProxyProvider This is to provide a choke point for DDL to create Lazy Proxies. Change-Id: If178da13bc6447b31b7601810236d34502d9efbd Reviewed-on: https://skia-review.googlesource.com/93303 Commit-Queue: Robert Phillips Reviewed-by: Greg Daniel --- tests/ReadWriteAlphaTest.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'tests/ReadWriteAlphaTest.cpp') diff --git a/tests/ReadWriteAlphaTest.cpp b/tests/ReadWriteAlphaTest.cpp index ee3588f5fc..00891c1677 100644 --- a/tests/ReadWriteAlphaTest.cpp +++ b/tests/ReadWriteAlphaTest.cpp @@ -12,6 +12,7 @@ #include "GrContext.h" #include "GrContextPriv.h" +#include "GrProxyProvider.h" #include "GrResourceProvider.h" #include "GrSurfaceContext.h" #include "GrSurfaceProxy.h" @@ -60,9 +61,8 @@ DEF_GPUTEST_FOR_RENDERING_CONTEXTS(ReadWriteAlpha, reporter, ctxInfo) { // We are initializing the texture with zeros here memset(alphaData, 0, X_SIZE * Y_SIZE); - sk_sp proxy(GrSurfaceProxy::MakeDeferred(proxyProvider, - desc, SkBudgeted::kNo, - alphaData, 0)); + sk_sp proxy = proxyProvider->createTextureProxy(desc, SkBudgeted::kNo, + alphaData, 0); if (!proxy) { ERRORF(reporter, "Could not create alpha texture."); return; @@ -167,9 +167,9 @@ DEF_GPUTEST_FOR_RENDERING_CONTEXTS(ReadWriteAlpha, reporter, ctxInfo) { rgbaData[y * X_SIZE + x] = GrColorPackRGBA(6, 7, 8, alphaData[y * X_SIZE + x]); } } - sk_sp proxy(GrSurfaceProxy::MakeDeferred(proxyProvider, - desc, SkBudgeted::kNo, - rgbaData, 0)); + + sk_sp proxy = proxyProvider->createTextureProxy(desc, SkBudgeted::kNo, + rgbaData, 0); if (!proxy) { // We always expect to be able to create a RGBA texture if (!rt && kRGBA_8888_GrPixelConfig == desc.fConfig) { -- cgit v1.2.3