aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrBackendTextureImageGenerator.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/GrBackendTextureImageGenerator.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/GrBackendTextureImageGenerator.h')
-rw-r--r--src/gpu/GrBackendTextureImageGenerator.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gpu/GrBackendTextureImageGenerator.h b/src/gpu/GrBackendTextureImageGenerator.h
index 2ada687ab7..675c5531fa 100644
--- a/src/gpu/GrBackendTextureImageGenerator.h
+++ b/src/gpu/GrBackendTextureImageGenerator.h
@@ -27,7 +27,7 @@ protected:
bool onIsValid(GrContext*) const override { return true; }
#if SK_SUPPORT_GPU
- bool onCanGenerateTexture() const override { return true; }
+ TexGenType onCanGenerateTexture() const override { return TexGenType::kCheap; }
sk_sp<GrTextureProxy> onGenerateTexture(GrContext*, const SkImageInfo&,
const SkIPoint&) override;
#endif