aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkPictureImageGenerator.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/core/SkPictureImageGenerator.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/core/SkPictureImageGenerator.h')
-rw-r--r--src/core/SkPictureImageGenerator.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/SkPictureImageGenerator.h b/src/core/SkPictureImageGenerator.h
index 6dba29c172..f328e4f072 100644
--- a/src/core/SkPictureImageGenerator.h
+++ b/src/core/SkPictureImageGenerator.h
@@ -21,7 +21,7 @@ protected:
override;
#if SK_SUPPORT_GPU
- bool onCanGenerateTexture() const override { return true; }
+ TexGenType onCanGenerateTexture() const override { return TexGenType::kExpensive; }
sk_sp<GrTextureProxy> onGenerateTexture(GrContext*, const SkImageInfo&,
const SkIPoint&) override;
#endif