aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/image/SkImage_Lazy.cpp
diff options
context:
space:
mode:
authorGravatar Greg Daniel <egdaniel@google.com>2018-03-14 15:33:42 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-03-14 20:10:49 +0000
commit56008aac75f24f879cab2c29e25bcd189260065a (patch)
tree96193ce7efb0fa8c45ba91d5fb64f8f08eb38847 /src/image/SkImage_Lazy.cpp
parenta421112ac4a9836b2dc910a55d3139de12a1654b (diff)
Add SkColorType getter on SkImage.
Bug: skia: Change-Id: I131fb5f7faf3f54e0eb6d31b800d224e6d4963ce Reviewed-on: https://skia-review.googlesource.com/114464 Reviewed-by: Cary Clark <caryclark@google.com> Reviewed-by: Brian Salomon <bsalomon@google.com> Reviewed-by: Mike Reed <reed@google.com> Commit-Queue: Greg Daniel <egdaniel@google.com>
Diffstat (limited to 'src/image/SkImage_Lazy.cpp')
-rw-r--r--src/image/SkImage_Lazy.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/image/SkImage_Lazy.cpp b/src/image/SkImage_Lazy.cpp
index 4adf4e8368..4c12b81a26 100644
--- a/src/image/SkImage_Lazy.cpp
+++ b/src/image/SkImage_Lazy.cpp
@@ -70,6 +70,9 @@ public:
SkImageInfo onImageInfo() const override {
return fInfo;
}
+ SkColorType onColorType() const override {
+ return kUnknown_SkColorType;
+ }
SkAlphaType onAlphaType() const override {
return fInfo.alphaType();
}