Index: src/codec/SkGifCodec.cpp |
diff --git a/src/codec/SkGifCodec.cpp b/src/codec/SkGifCodec.cpp |
index 785c17e0f12ba7f4287d1061fc8c133db900b27b..a938f5fc48fac46ece1f929597ae5844675d3917 100644 |
--- a/src/codec/SkGifCodec.cpp |
+++ b/src/codec/SkGifCodec.cpp |
@@ -436,16 +436,19 @@ |
// Initialize color table and copy to the client if necessary |
this->initializeColorTable(dstInfo, inputColorPtr, inputColorCount); |
- this->initializeSwizzler(dstInfo, opts); |
- return kSuccess; |
-} |
- |
-void SkGifCodec::initializeSwizzler(const SkImageInfo& dstInfo, const Options& opts) { |
+ return this->initializeSwizzler(dstInfo, opts); |
+} |
+ |
+SkCodec::Result SkGifCodec::initializeSwizzler(const SkImageInfo& dstInfo, const Options& opts) { |
const SkPMColor* colorPtr = get_color_ptr(fColorTable.get()); |
const SkIRect* frameRect = fFrameIsSubset ? &fFrameRect : nullptr; |
fSwizzler.reset(SkSwizzler::CreateSwizzler(SkSwizzler::kIndex, colorPtr, dstInfo, opts, |
frameRect)); |
- SkASSERT(fSwizzler); |
+ |
+ if (nullptr != fSwizzler.get()) { |
+ return kSuccess; |
+ } |
+ return kUnimplemented; |
} |
bool SkGifCodec::readRow() { |