OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2013 Google Inc. | 2 * Copyright 2013 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 SkImageGenerator_DEFINED | 8 #ifndef SkImageGenerator_DEFINED |
9 #define SkImageGenerator_DEFINED | 9 #define SkImageGenerator_DEFINED |
10 | 10 |
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
214 virtual bool onGetPixels(const SkImageInfo& info, void* pixels, size_t rowBy
tes, | 214 virtual bool onGetPixels(const SkImageInfo& info, void* pixels, size_t rowBy
tes, |
215 SkPMColor ctable[], int* ctableCount); | 215 SkPMColor ctable[], int* ctableCount); |
216 #endif | 216 #endif |
217 virtual bool onGetYUV8Planes(SkISize sizes[3], void* planes[3], size_t rowBy
tes[3]); | 217 virtual bool onGetYUV8Planes(SkISize sizes[3], void* planes[3], size_t rowBy
tes[3]); |
218 virtual bool onGetYUV8Planes(SkISize sizes[3], void* planes[3], size_t rowBy
tes[3], | 218 virtual bool onGetYUV8Planes(SkISize sizes[3], void* planes[3], size_t rowBy
tes[3], |
219 SkYUVColorSpace* colorSpace); | 219 SkYUVColorSpace* colorSpace); |
220 | 220 |
221 private: | 221 private: |
222 const SkImageInfo fInfo; | 222 const SkImageInfo fInfo; |
223 | 223 |
| 224 // This is our default impl, which may be different on different platforms. |
| 225 // It is called from NewFromEncoded() after it has checked for any runtime f
actory. |
| 226 // The SkData will never be NULL, as that will have been checked by NewFromE
ncoded. |
224 static SkImageGenerator* NewFromEncodedImpl(SkData*); | 227 static SkImageGenerator* NewFromEncodedImpl(SkData*); |
225 }; | 228 }; |
226 | 229 |
227 #endif // SkImageGenerator_DEFINED | 230 #endif // SkImageGenerator_DEFINED |
OLD | NEW |