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

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

Issue 726923002: Enable unused param checking for public includes. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase Created 6 years, 1 month 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/SkImageDecoder.h ('k') | include/core/SkShader.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 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « include/core/SkImageDecoder.h ('k') | include/core/SkShader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698