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

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

Issue 2072813002: Revert of Lots of progress switching to SkColorSpace rather than SkColorProfileType (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 6 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/SkImageInfo.h ('k') | include/gpu/SkGr.h » ('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 2008 The Android Open Source Project 2 * Copyright 2008 The Android Open Source Project
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 SkPixelRef_DEFINED 8 #ifndef SkPixelRef_DEFINED
9 #define SkPixelRef_DEFINED 9 #define SkPixelRef_DEFINED
10 10
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 /** 241 /**
242 * Makes a deep copy of this PixelRef, respecting the requested config. 242 * Makes a deep copy of this PixelRef, respecting the requested config.
243 * @param colorType Desired colortype. 243 * @param colorType Desired colortype.
244 * @param profileType Desired colorprofiletype. 244 * @param profileType Desired colorprofiletype.
245 * @param subset Subset of this PixelRef to copy. Must be fully contained w ithin the bounds of 245 * @param subset Subset of this PixelRef to copy. Must be fully contained w ithin the bounds of
246 * of this PixelRef. 246 * of this PixelRef.
247 * @return A new SkPixelRef, or NULL if either there is an error (e.g. the destination could 247 * @return A new SkPixelRef, or NULL if either there is an error (e.g. the destination could
248 * not be created with the given config), or this PixelRef does not support deep 248 * not be created with the given config), or this PixelRef does not support deep
249 * copies. 249 * copies.
250 */ 250 */
251 virtual SkPixelRef* deepCopy(SkColorType, SkColorSpace*, const SkIRect* /*su bset*/) { 251 virtual SkPixelRef* deepCopy(SkColorType, SkColorProfileType, const SkIRect* /*subset*/) {
252 return NULL; 252 return NULL;
253 } 253 }
254 254
255 // Register a listener that may be called the next time our generation ID ch anges. 255 // Register a listener that may be called the next time our generation ID ch anges.
256 // 256 //
257 // We'll only call the listener if we're confident that we are the only SkPi xelRef with this 257 // We'll only call the listener if we're confident that we are the only SkPi xelRef with this
258 // generation ID. If our generation ID changes and we decide not to call th e listener, we'll 258 // generation ID. If our generation ID changes and we decide not to call th e listener, we'll
259 // never call it: you must add a new listener for each generation ID change. We also won't call 259 // never call it: you must add a new listener for each generation ID change. We also won't call
260 // the listener when we're certain no one knows what our generation ID is. 260 // the listener when we're certain no one knows what our generation ID is.
261 // 261 //
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
414 /** 414 /**
415 * Allocate a new pixelref matching the specified ImageInfo, allocating 415 * Allocate a new pixelref matching the specified ImageInfo, allocating
416 * the memory for the pixels. If the ImageInfo requires a ColorTable, 416 * the memory for the pixels. If the ImageInfo requires a ColorTable,
417 * the pixelref will ref() the colortable. 417 * the pixelref will ref() the colortable.
418 * On failure return NULL. 418 * On failure return NULL.
419 */ 419 */
420 virtual SkPixelRef* create(const SkImageInfo&, size_t rowBytes, SkColorTable *) = 0; 420 virtual SkPixelRef* create(const SkImageInfo&, size_t rowBytes, SkColorTable *) = 0;
421 }; 421 };
422 422
423 #endif 423 #endif
OLDNEW
« no previous file with comments | « include/core/SkImageInfo.h ('k') | include/gpu/SkGr.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698