| OLD | NEW |
| 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 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 240 | 240 |
| 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 subset Subset of this PixelRef to copy. Must be fully contained w
ithin the bounds of | 244 * @param subset Subset of this PixelRef to copy. Must be fully contained w
ithin the bounds of |
| 245 * of this PixelRef. | 245 * of this PixelRef. |
| 246 * @return A new SkPixelRef, or NULL if either there is an error (e.g. the
destination could | 246 * @return A new SkPixelRef, or NULL if either there is an error (e.g. the
destination could |
| 247 * not be created with the given config), or this PixelRef does not
support deep | 247 * not be created with the given config), or this PixelRef does not
support deep |
| 248 * copies. | 248 * copies. |
| 249 */ | 249 */ |
| 250 virtual SkPixelRef* deepCopy(SkColorType colortype, const SkIRect* subset) { | 250 virtual SkPixelRef* deepCopy(SkColorType, const SkIRect* /*subset*/) { |
| 251 return NULL; | 251 return NULL; |
| 252 } | 252 } |
| 253 | 253 |
| 254 #ifdef SK_BUILD_FOR_ANDROID | 254 #ifdef SK_BUILD_FOR_ANDROID |
| 255 /** | 255 /** |
| 256 * Acquire a "global" ref on this object. | 256 * Acquire a "global" ref on this object. |
| 257 * The default implementation just calls ref(), but subclasses can override | 257 * The default implementation just calls ref(), but subclasses can override |
| 258 * this method to implement additional behavior. | 258 * this method to implement additional behavior. |
| 259 */ | 259 */ |
| 260 virtual void globalRef(void* data=NULL); | 260 virtual void globalRef(void* data=NULL); |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 386 /** | 386 /** |
| 387 * Allocate a new pixelref matching the specified ImageInfo, allocating | 387 * Allocate a new pixelref matching the specified ImageInfo, allocating |
| 388 * the memory for the pixels. If the ImageInfo requires a ColorTable, | 388 * the memory for the pixels. If the ImageInfo requires a ColorTable, |
| 389 * the pixelref will ref() the colortable. | 389 * the pixelref will ref() the colortable. |
| 390 * On failure return NULL. | 390 * On failure return NULL. |
| 391 */ | 391 */ |
| 392 virtual SkPixelRef* create(const SkImageInfo&, size_t rowBytes, SkColorTable
*) = 0; | 392 virtual SkPixelRef* create(const SkImageInfo&, size_t rowBytes, SkColorTable
*) = 0; |
| 393 }; | 393 }; |
| 394 | 394 |
| 395 #endif | 395 #endif |
| OLD | NEW |