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

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

Issue 1223413002: remove getter for imagegenerator factory, update test (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: document that SkData will never be null Created 5 years, 5 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
« no previous file with comments | « include/core/SkGraphics.h ('k') | src/core/SkImageGenerator.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « include/core/SkGraphics.h ('k') | src/core/SkImageGenerator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698