OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2011 Google Inc. | 3 * Copyright 2011 Google Inc. |
4 * | 4 * |
5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
7 */ | 7 */ |
8 #ifndef SkImageEncoder_DEFINED | 8 #ifndef SkImageEncoder_DEFINED |
9 #define SkImageEncoder_DEFINED | 9 #define SkImageEncoder_DEFINED |
10 | 10 |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 /** An ARGBImageEncoder will always write out | 93 /** An ARGBImageEncoder will always write out |
94 * bitmap.width() * bitmap.height() * 4 | 94 * bitmap.width() * bitmap.height() * 4 |
95 * bytes. | 95 * bytes. |
96 */ | 96 */ |
97 DECLARE_ENCODER_CREATOR(ARGBImageEncoder); | 97 DECLARE_ENCODER_CREATOR(ARGBImageEncoder); |
98 DECLARE_ENCODER_CREATOR(JPEGImageEncoder); | 98 DECLARE_ENCODER_CREATOR(JPEGImageEncoder); |
99 DECLARE_ENCODER_CREATOR(PNGImageEncoder); | 99 DECLARE_ENCODER_CREATOR(PNGImageEncoder); |
100 DECLARE_ENCODER_CREATOR(KTXImageEncoder); | 100 DECLARE_ENCODER_CREATOR(KTXImageEncoder); |
101 DECLARE_ENCODER_CREATOR(WEBPImageEncoder); | 101 DECLARE_ENCODER_CREATOR(WEBPImageEncoder); |
102 | 102 |
| 103 #ifdef SK_BUILD_FOR_IOS |
| 104 DECLARE_ENCODER_CREATOR(PNGImageEncoder_IOS); |
| 105 #endif |
| 106 |
103 // Typedef to make registering encoder callback easier | 107 // Typedef to make registering encoder callback easier |
104 // This has to be defined outside SkImageEncoder. :( | 108 // This has to be defined outside SkImageEncoder. :( |
105 typedef SkTRegistry<SkImageEncoder*(*)(SkImageEncoder::Type)> SkImageEncoder_Enc
odeReg; | 109 typedef SkTRegistry<SkImageEncoder*(*)(SkImageEncoder::Type)> SkImageEncoder_Enc
odeReg; |
106 #endif | 110 #endif |
OLD | NEW |