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

Side by Side Diff: include/core/SkImageDecoder.h

Issue 444093002: - Add astcbitmap to gm slides (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 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 unified diff | Download patch
OLDNEW
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 #ifndef SkImageDecoder_DEFINED 8 #ifndef SkImageDecoder_DEFINED
9 #define SkImageDecoder_DEFINED 9 #define SkImageDecoder_DEFINED
10 10
(...skipping 19 matching lines...) Expand all
30 kUnknown_Format, 30 kUnknown_Format,
31 kBMP_Format, 31 kBMP_Format,
32 kGIF_Format, 32 kGIF_Format,
33 kICO_Format, 33 kICO_Format,
34 kJPEG_Format, 34 kJPEG_Format,
35 kPNG_Format, 35 kPNG_Format,
36 kWBMP_Format, 36 kWBMP_Format,
37 kWEBP_Format, 37 kWEBP_Format,
38 kPKM_Format, 38 kPKM_Format,
39 kKTX_Format, 39 kKTX_Format,
40 kASTC_Format,
40 41
41 kLastKnownFormat = kKTX_Format, 42 kLastKnownFormat = kKTX_Format,
42 }; 43 };
43 44
44 /** Return the format of image this decoder can decode. If this decoder can decode multiple 45 /** Return the format of image this decoder can decode. If this decoder can decode multiple
45 formats, kUnknown_Format will be returned. 46 formats, kUnknown_Format will be returned.
46 */ 47 */
47 virtual Format getFormat() const; 48 virtual Format getFormat() const;
48 49
49 /** Return the format of the SkStreamRewindable or kUnknown_Format if it can not be determined. 50 /** Return the format of the SkStreamRewindable or kUnknown_Format if it can not be determined.
(...skipping 468 matching lines...) Expand 10 before | Expand all | Expand 10 after
518 // not all of these will be available 519 // not all of these will be available
519 DECLARE_DECODER_CREATOR(BMPImageDecoder); 520 DECLARE_DECODER_CREATOR(BMPImageDecoder);
520 DECLARE_DECODER_CREATOR(GIFImageDecoder); 521 DECLARE_DECODER_CREATOR(GIFImageDecoder);
521 DECLARE_DECODER_CREATOR(ICOImageDecoder); 522 DECLARE_DECODER_CREATOR(ICOImageDecoder);
522 DECLARE_DECODER_CREATOR(JPEGImageDecoder); 523 DECLARE_DECODER_CREATOR(JPEGImageDecoder);
523 DECLARE_DECODER_CREATOR(PNGImageDecoder); 524 DECLARE_DECODER_CREATOR(PNGImageDecoder);
524 DECLARE_DECODER_CREATOR(WBMPImageDecoder); 525 DECLARE_DECODER_CREATOR(WBMPImageDecoder);
525 DECLARE_DECODER_CREATOR(WEBPImageDecoder); 526 DECLARE_DECODER_CREATOR(WEBPImageDecoder);
526 DECLARE_DECODER_CREATOR(PKMImageDecoder); 527 DECLARE_DECODER_CREATOR(PKMImageDecoder);
527 DECLARE_DECODER_CREATOR(KTXImageDecoder); 528 DECLARE_DECODER_CREATOR(KTXImageDecoder);
529 DECLARE_DECODER_CREATOR(ASTCImageDecoder);
528 530
529 // Typedefs to make registering decoder and formatter callbacks easier. 531 // Typedefs to make registering decoder and formatter callbacks easier.
530 // These have to be defined outside SkImageDecoder. :( 532 // These have to be defined outside SkImageDecoder. :(
531 typedef SkTRegistry<SkImageDecoder*(*)(SkStreamRewindable*)> SkImageDecod er_DecodeReg; 533 typedef SkTRegistry<SkImageDecoder*(*)(SkStreamRewindable*)> SkImageDecod er_DecodeReg;
532 typedef SkTRegistry<SkImageDecoder::Format(*)(SkStreamRewindable*)> SkImageDecod er_FormatReg; 534 typedef SkTRegistry<SkImageDecoder::Format(*)(SkStreamRewindable*)> SkImageDecod er_FormatReg;
533 535
534 #endif 536 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698