aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrImageTextureMaker.h
diff options
context:
space:
mode:
authorGravatar Stan Iliev <stani@google.com>2017-06-08 15:16:53 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-06-08 20:23:05 +0000
commitba81af27cff1c1e23051d2957612b2f3e0fbf885 (patch)
tree26d9a5a1dd6766ea3055975409ab3cd44d2a4448 /src/gpu/GrImageTextureMaker.h
parent0cb31675f3aa9cc878aa3a9e1a7ad09efdb350fc (diff)
Add support for SkImageGenerator creating external textures
Copy the SkImageGenerator texture if tiling is needed and original texture target is GR_GL_TEXTURE_EXTERNAL. Bug: skia: Change-Id: I98f5acc3883e2060b1a35f80633b02b08a706107 Reviewed-on: https://skia-review.googlesource.com/18268 Reviewed-by: Brian Salomon <bsalomon@google.com> Commit-Queue: Stan Iliev <stani@google.com>
Diffstat (limited to 'src/gpu/GrImageTextureMaker.h')
-rw-r--r--src/gpu/GrImageTextureMaker.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gpu/GrImageTextureMaker.h b/src/gpu/GrImageTextureMaker.h
index 4f3e8bd3de..1a72f68e1b 100644
--- a/src/gpu/GrImageTextureMaker.h
+++ b/src/gpu/GrImageTextureMaker.h
@@ -24,7 +24,8 @@ protected:
// able to efficiently produce a "stretched" texture natively (e.g. picture-backed)
// GrTexture* generateTextureForParams(const CopyParams&) override;
sk_sp<GrTextureProxy> refOriginalTextureProxy(bool willBeMipped,
- SkColorSpace* dstColorSpace) override;
+ SkColorSpace* dstColorSpace,
+ AllowedTexGenType onlyIfFast) override;
void makeCopyKey(const CopyParams& stretch, GrUniqueKey* paramsCopyKey,
SkColorSpace* dstColorSpace) override;