From 3743013f755d23c215d852af7d829c3cd74f34a2 Mon Sep 17 00:00:00 2001 From: Robert Phillips Date: Wed, 9 Nov 2016 06:50:43 -0500 Subject: Consolidate GrSurfaceProxy Make methods I think GrSurfaceDesc is still the most compact way to communicate the deferred GrSurface's settings to the Proxy but this CL, at least, reduces where it is used. GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=4559 Change-Id: Ica599c28a5aef1ed4094f47a4ac119e2d204d652 Reviewed-on: https://skia-review.googlesource.com/4559 Commit-Queue: Robert Phillips Reviewed-by: Brian Salomon --- tests/SpecialImageTest.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'tests/SpecialImageTest.cpp') diff --git a/tests/SpecialImageTest.cpp b/tests/SpecialImageTest.cpp index abadb303cb..62a5da6089 100644 --- a/tests/SpecialImageTest.cpp +++ b/tests/SpecialImageTest.cpp @@ -17,7 +17,7 @@ #if SK_SUPPORT_GPU #include "GrContext.h" -#include "GrTextureProxy.h" +#include "GrSurfaceProxy.h" #endif @@ -301,9 +301,10 @@ DEF_GPUTEST_FOR_RENDERING_CONTEXTS(SpecialImage_DeferredGpu, reporter, ctxInfo) desc.fWidth = kFullSize; desc.fHeight = kFullSize; - sk_sp proxy(GrTextureProxy::Make(*context->caps(), context->textureProvider(), - desc, SkBackingFit::kExact, SkBudgeted::kNo, - bm.getPixels(), 0)); + sk_sp proxy(GrSurfaceProxy::MakeDeferred(*context->caps(), + context->textureProvider(), + desc, SkBudgeted::kNo, + bm.getPixels(), 0)); if (!proxy) { return; } -- cgit v1.2.3