OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2011 Google Inc. | 2 * Copyright 2011 Google Inc. |
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 SkImageEncoder_DEFINED | 8 #ifndef SkImageEncoder_DEFINED |
9 #define SkImageEncoder_DEFINED | 9 #define SkImageEncoder_DEFINED |
10 | 10 |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 /** An ARGBImageEncoder will always write out | 103 /** An ARGBImageEncoder will always write out |
104 * bitmap.width() * bitmap.height() * 4 | 104 * bitmap.width() * bitmap.height() * 4 |
105 * bytes. | 105 * bytes. |
106 */ | 106 */ |
107 DECLARE_ENCODER_CREATOR(ARGBImageEncoder); | 107 DECLARE_ENCODER_CREATOR(ARGBImageEncoder); |
108 DECLARE_ENCODER_CREATOR(JPEGImageEncoder); | 108 DECLARE_ENCODER_CREATOR(JPEGImageEncoder); |
109 DECLARE_ENCODER_CREATOR(PNGImageEncoder); | 109 DECLARE_ENCODER_CREATOR(PNGImageEncoder); |
110 DECLARE_ENCODER_CREATOR(KTXImageEncoder); | 110 DECLARE_ENCODER_CREATOR(KTXImageEncoder); |
111 DECLARE_ENCODER_CREATOR(WEBPImageEncoder); | 111 DECLARE_ENCODER_CREATOR(WEBPImageEncoder); |
112 | 112 |
113 #if defined(SK_BUILD_FOR_MAC) || defined(SK_BUILD_FOR_IOS) | 113 #ifdef SK_BUILD_FOR_IOS |
114 DECLARE_ENCODER_CREATOR(PNGImageEncoder_CG); | 114 DECLARE_ENCODER_CREATOR(PNGImageEncoder_IOS); |
115 #endif | |
116 | |
117 #if defined(SK_BUILD_FOR_WIN) | |
118 DECLARE_ENCODER_CREATOR(ImageEncoder_WIC); | |
119 #endif | 115 #endif |
120 | 116 |
121 // Typedef to make registering encoder callback easier | 117 // Typedef to make registering encoder callback easier |
122 // This has to be defined outside SkImageEncoder. :( | 118 // This has to be defined outside SkImageEncoder. :( |
123 typedef SkTRegistry<SkImageEncoder*(*)(SkImageEncoder::Type)> SkImageEncoder_Enc
odeReg; | 119 typedef SkTRegistry<SkImageEncoder*(*)(SkImageEncoder::Type)> SkImageEncoder_Enc
odeReg; |
124 #endif | 120 #endif |
OLD | NEW |