From c2a954290dc3888f877a047098b84c24363895fb Mon Sep 17 00:00:00 2001 From: Chong Zhang Date: Wed, 16 Aug 2017 13:03:47 -0700 Subject: skia: add heif decoding support Bug: b/64077740 Change-Id: I11e0243bcc4c21c0aa5aa29a719dd0fcba7ae6f7 Reviewed-on: https://skia-review.googlesource.com/35123 Reviewed-by: Chong Zhang Reviewed-by: Leon Scroggins Commit-Queue: Chong Zhang Commit-Queue: Leon Scroggins --- include/codec/SkCodec.h | 2 +- include/core/SkEncodedImageFormat.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/codec/SkCodec.h b/include/codec/SkCodec.h index fb4f165dbf..fb5bff5165 100644 --- a/include/codec/SkCodec.h +++ b/include/codec/SkCodec.h @@ -50,7 +50,7 @@ public: * this many bytes, or by implementing rewind() to be able to rewind() * after reading this many bytes. */ - static size_t MinBufferedBytesNeeded(); + static constexpr size_t MinBufferedBytesNeeded() { return 32; } /** * Error codes for various SkCodec methods. diff --git a/include/core/SkEncodedImageFormat.h b/include/core/SkEncodedImageFormat.h index 8f79236689..c391053739 100644 --- a/include/core/SkEncodedImageFormat.h +++ b/include/core/SkEncodedImageFormat.h @@ -28,6 +28,7 @@ enum class SkEncodedImageFormat { kKTX, kASTC, kDNG, + kHEIF, }; #endif // SkEncodedImageFormat_DEFINED -- cgit v1.2.3