| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2006 The Android Open Source Project | 2 * Copyright 2006 The Android Open Source Project |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 6 */ | 6 */ |
| 7 | 7 |
| 8 | 8 |
| 9 #include "SkImageDecoder.h" | 9 #include "SkImageDecoder.h" |
| 10 #include "SkBitmap.h" | 10 #include "SkBitmap.h" |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 case kUnknown_Format: | 79 case kUnknown_Format: |
| 80 return "Unknown Format"; | 80 return "Unknown Format"; |
| 81 case kBMP_Format: | 81 case kBMP_Format: |
| 82 return "BMP"; | 82 return "BMP"; |
| 83 case kGIF_Format: | 83 case kGIF_Format: |
| 84 return "GIF"; | 84 return "GIF"; |
| 85 case kICO_Format: | 85 case kICO_Format: |
| 86 return "ICO"; | 86 return "ICO"; |
| 87 case kPKM_Format: | 87 case kPKM_Format: |
| 88 return "PKM"; | 88 return "PKM"; |
| 89 case kKTX_Format: |
| 90 return "KTX"; |
| 89 case kJPEG_Format: | 91 case kJPEG_Format: |
| 90 return "JPEG"; | 92 return "JPEG"; |
| 91 case kPNG_Format: | 93 case kPNG_Format: |
| 92 return "PNG"; | 94 return "PNG"; |
| 93 case kWBMP_Format: | 95 case kWBMP_Format: |
| 94 return "WBMP"; | 96 return "WBMP"; |
| 95 case kWEBP_Format: | 97 case kWEBP_Format: |
| 96 return "WEBP"; | 98 return "WEBP"; |
| 97 default: | 99 default: |
| 98 SkDEBUGFAIL("Invalid format type!"); | 100 SkDEBUGFAIL("Invalid format type!"); |
| (...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 300 if (kUnknown_Format == *format) { | 302 if (kUnknown_Format == *format) { |
| 301 if (stream->rewind()) { | 303 if (stream->rewind()) { |
| 302 *format = GetStreamFormat(stream); | 304 *format = GetStreamFormat(stream); |
| 303 } | 305 } |
| 304 } | 306 } |
| 305 } | 307 } |
| 306 delete codec; | 308 delete codec; |
| 307 } | 309 } |
| 308 return success; | 310 return success; |
| 309 } | 311 } |
| OLD | NEW |