aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/TestUtils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/TestUtils.cpp')
-rw-r--r--tests/TestUtils.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/TestUtils.cpp b/tests/TestUtils.cpp
index 588d479a10..463a8e9e34 100644
--- a/tests/TestUtils.cpp
+++ b/tests/TestUtils.cpp
@@ -9,6 +9,7 @@
#if SK_SUPPORT_GPU
+#include "GrProxyProvider.h"
#include "GrSurfaceContext.h"
#include "GrSurfaceProxy.h"
#include "GrTextureProxy.h"
@@ -111,9 +112,9 @@ void test_copy_to_surface(skiatest::Reporter* reporter, GrProxyProvider* proxyPr
copySrcDesc.fOrigin = (kNone_GrSurfaceFlags == flags) ? kTopLeft_GrSurfaceOrigin
: kBottomLeft_GrSurfaceOrigin;
- sk_sp<GrTextureProxy> src(GrSurfaceProxy::MakeDeferred(proxyProvider,
- copySrcDesc,
- SkBudgeted::kYes, pixels.get(), 0));
+ sk_sp<GrTextureProxy> src = proxyProvider->createTextureProxy(copySrcDesc, SkBudgeted::kYes,
+ pixels.get(), 0);
+
dstContext->copy(src.get());
test_read_pixels(reporter, dstContext, pixels.get(), testName);