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

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

Issue 933853004: Remove SK_SUPPORT_LEGACY_GET_PIXELS_ENUM. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 10 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 | « gyp/skia_for_chromium_defines.gypi ('k') | no next file » | 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
11 #include "SkColor.h" 11 #include "SkColor.h"
12 #include "SkImageInfo.h" 12 #include "SkImageInfo.h"
13 13
14 class SkBitmap; 14 class SkBitmap;
15 class SkData; 15 class SkData;
16 class SkImageGenerator; 16 class SkImageGenerator;
17 17
18 //#define SK_SUPPORT_LEGACY_GET_PIXELS_ENUM
19
20 #ifdef SK_SUPPORT_LEGACY_GET_PIXELS_ENUM
21 #define onGetPixelsEnum onGetPixels
22 #endif
23
24 /** 18 /**
25 * Takes ownership of SkImageGenerator. If this method fails for 19 * Takes ownership of SkImageGenerator. If this method fails for
26 * whatever reason, it will return false and immediatetely delete 20 * whatever reason, it will return false and immediatetely delete
27 * the generator. If it succeeds, it will modify destination 21 * the generator. If it succeeds, it will modify destination
28 * bitmap. 22 * bitmap.
29 * 23 *
30 * If generator is NULL, will safely return false. 24 * If generator is NULL, will safely return false.
31 * 25 *
32 * If this fails or when the SkDiscardablePixelRef that is 26 * If this fails or when the SkDiscardablePixelRef that is
33 * installed into destination is destroyed, it will call 27 * installed into destination is destroyed, it will call
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 virtual bool onGetInfo(SkImageInfo* info); 179 virtual bool onGetInfo(SkImageInfo* info);
186 virtual Result onGetPixels(const SkImageInfo& info, 180 virtual Result onGetPixels(const SkImageInfo& info,
187 void* pixels, size_t rowBytes, 181 void* pixels, size_t rowBytes,
188 SkPMColor ctable[], int* ctableCount); 182 SkPMColor ctable[], int* ctableCount);
189 virtual bool onGetYUV8Planes(SkISize sizes[3], void* planes[3], size_t rowBy tes[3]); 183 virtual bool onGetYUV8Planes(SkISize sizes[3], void* planes[3], size_t rowBy tes[3]);
190 virtual bool onGetYUV8Planes(SkISize sizes[3], void* planes[3], size_t rowBy tes[3], 184 virtual bool onGetYUV8Planes(SkISize sizes[3], void* planes[3], size_t rowBy tes[3],
191 SkYUVColorSpace* colorSpace); 185 SkYUVColorSpace* colorSpace);
192 }; 186 };
193 187
194 #endif // SkImageGenerator_DEFINED 188 #endif // SkImageGenerator_DEFINED
OLDNEW
« no previous file with comments | « gyp/skia_for_chromium_defines.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698