Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7)

Unified Diff: src/codec/SkCodec_libgif.cpp

Issue 1277213002: Support more swizzles to 565 in SkCodec (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Support wbmp, add tests Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/codec/SkCodec_libgif.cpp
diff --git a/src/codec/SkCodec_libgif.cpp b/src/codec/SkCodec_libgif.cpp
index 2e348cc856a20eedf72afe6fe773092cb838613c..fff572884d2e863fd1bb161ab2140a2fc20b2389 100644
--- a/src/codec/SkCodec_libgif.cpp
+++ b/src/codec/SkCodec_libgif.cpp
@@ -210,30 +210,6 @@ SkGifCodec::SkGifCodec(const SkImageInfo& srcInfo, SkStream* stream,
, fGif(gif)
{}
-/*
- * Checks if the conversion between the input image and the requested output
- * image has been implemented
- */
-static bool conversion_possible(const SkImageInfo& dst,
- const SkImageInfo& src) {
- // Ensure that the profile type is unchanged
- if (dst.profileType() != src.profileType()) {
- return false;
- }
-
- // Check for supported color and alpha types
- switch (dst.colorType()) {
- case kN32_SkColorType:
- return kPremul_SkAlphaType == dst.alphaType() ||
- kUnpremul_SkAlphaType == dst.alphaType();
- case kIndex_8_SkColorType:
- return kPremul_SkAlphaType == dst.alphaType() ||
- kUnpremul_SkAlphaType == dst.alphaType();
- default:
- return false;
- }
-}
-
bool SkGifCodec::onRewind() {
GifFileType* gifOut = NULL;
if (!ReadHeader(this->stream(), NULL, &gifOut)) {
« no previous file with comments | « src/codec/SkCodecPriv.h ('k') | src/codec/SkCodec_libico.cpp » ('j') | src/codec/SkSwizzler.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698