diff options
author | Robert Phillips <robertphillips@google.com> | 2018-01-16 08:06:32 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-01-16 13:28:43 +0000 |
commit | 0bd24dc41f2351d84f5fce32130668a5792d134b (patch) | |
tree | c46dc6fb7636fd7c2185e1f855f1dd582512fcc4 /tests/TestUtils.cpp | |
parent | 3167aa0c9c84cab1b0252031166e4a345e2afe2d (diff) |
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 <robertphillips@google.com>
Reviewed-by: Greg Daniel <egdaniel@google.com>
Diffstat (limited to 'tests/TestUtils.cpp')
-rw-r--r-- | tests/TestUtils.cpp | 7 |
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); |