diff options
author | Robert Phillips <robertphillips@google.com> | 2017-03-14 09:17:43 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-03-14 14:09:12 +0000 |
commit | d3749485db2de966a80e39669a49192fc7c0bd9d (patch) | |
tree | 2a86aa3d24a394dd569f25f94eae08cd58674efe /src/gpu/SkGr.h | |
parent | 4a01ac9e410e7b78fb04c8632e0676082b9408aa (diff) |
Consolidate Proxy caching code in GrResourceProvider
This doesn't implement the GrSurfaceProxy-based caching but just carves out a space for it.
Split out of: https://skia-review.googlesource.com/c/8823/ (Remove GrFragmentProcessor-derived class' GrTexture-based ctors)
Change-Id: Iec87b45e3264b349d7804f63e361e970b925e335
Reviewed-on: https://skia-review.googlesource.com/9626
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'src/gpu/SkGr.h')
-rw-r--r-- | src/gpu/SkGr.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gpu/SkGr.h b/src/gpu/SkGr.h index 9844e8a2aa..f0bc390b0c 100644 --- a/src/gpu/SkGr.h +++ b/src/gpu/SkGr.h @@ -213,13 +213,17 @@ GrTexture* GrRefCachedBitmapTexture(GrContext*, const SkBitmap&, */ GrTexture* GrUploadBitmapToTexture(GrContext*, const SkBitmap&); +sk_sp<GrTextureProxy> GrUploadBitmapToTextureProxy(GrContext*, const SkBitmap&); + GrTexture* GrGenerateMipMapsAndUploadToTexture(GrContext*, const SkBitmap&, SkColorSpace* dstColorSpace); /** * Creates a new texture for the pixmap. */ -GrTexture* GrUploadPixmapToTexture(GrContext*, const SkPixmap&, SkBudgeted budgeted); +GrTexture* GrUploadPixmapToTexture(GrContext*, const SkPixmap&, SkBudgeted); + +sk_sp<GrTextureProxy> GrUploadPixmapToTextureProxy(GrContext*, const SkPixmap&, SkBudgeted); /** * Creates a new texture populated with the mipmap levels. |