aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrProxyProvider.h
diff options
context:
space:
mode:
authorGravatar Brian Salomon <bsalomon@google.com>2018-03-07 15:20:21 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-03-07 21:23:30 +0000
commit02bd2950e04952398930ed179bb72e08ad5ed3d3 (patch)
treee7be26df052023b0e3d4504917e923dcccf54b53 /src/gpu/GrProxyProvider.h
parent88df8d2e5a87df5605b1d5530408cc6f534d8feb (diff)
Make ProxyUtils::MakeTextureProxyFromData use wrapped textures when origin is kBottomLeft
This is to prepare for only supporting kBottomLeft origin for wrapped texture/render targets. Change-Id: Iecb2e463867f746186695893276ebb5dc47a9d90 Reviewed-on: https://skia-review.googlesource.com/112860 Reviewed-by: Robert Phillips <robertphillips@google.com> Commit-Queue: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'src/gpu/GrProxyProvider.h')
-rw-r--r--src/gpu/GrProxyProvider.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gpu/GrProxyProvider.h b/src/gpu/GrProxyProvider.h
index 0500e2f17c..2f2eeb1113 100644
--- a/src/gpu/GrProxyProvider.h
+++ b/src/gpu/GrProxyProvider.h
@@ -129,7 +129,8 @@ public:
*/
sk_sp<GrTextureProxy> wrapRenderableBackendTexture(const GrBackendTexture&,
GrSurfaceOrigin,
- int sampleCnt);
+ int sampleCnt,
+ GrWrapOwnership = kBorrow_GrWrapOwnership);
/*
* Create a render target proxy that wraps a backend rendertarget