aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrProxyProvider.h
diff options
context:
space:
mode:
authorGravatar Greg Daniel <egdaniel@google.com>2018-02-07 10:21:48 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-02-07 15:46:02 +0000
commita4ead65e2c80b6e649f31e28e8fa116aca83fad4 (patch)
treee707b3a79ab62bf9920daf47ff2bf8fabc07d086 /src/gpu/GrProxyProvider.h
parent2a223358ed19f3dd25f9b127aa21f1dd138cb9f0 (diff)
Add function to GrProxyProvider to lazily upload mip map data
Bug: skia: Change-Id: I906207727242bed8a109bf3ca10b5a6e8e4b952e Reviewed-on: https://skia-review.googlesource.com/104581 Reviewed-by: Robert Phillips <robertphillips@google.com> Commit-Queue: Greg Daniel <egdaniel@google.com>
Diffstat (limited to 'src/gpu/GrProxyProvider.h')
-rw-r--r--src/gpu/GrProxyProvider.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gpu/GrProxyProvider.h b/src/gpu/GrProxyProvider.h
index c5191a681c..aa1d991fae 100644
--- a/src/gpu/GrProxyProvider.h
+++ b/src/gpu/GrProxyProvider.h
@@ -18,6 +18,7 @@ class GrCaps;
class GrResourceProvider;
class GrSingleOwner;
class GrBackendRenderTarget;
+class SkBitmap;
class SkImage;
/*
@@ -110,6 +111,12 @@ public:
sk_sp<GrTextureProxy> createMipMapProxy(const GrSurfaceDesc&, SkBudgeted);
/*
+ * Creates a new mipmapped texture proxy for the bitmap with mip levels generated by the cpu.
+ */
+ sk_sp<GrTextureProxy> createMipMapProxyFromBitmap(const SkBitmap& bitmap,
+ SkColorSpace* dstColorSpace);
+
+ /*
* Create a GrSurfaceProxy without any data.
*/
sk_sp<GrTextureProxy> createProxy(const GrSurfaceDesc&, SkBackingFit, SkBudgeted,