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

Side by Side Diff: include/core/SkDevice.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/SkCanvas.h ('k') | include/core/SkImageDecoder.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 2010 The Android Open Source Project 2 * Copyright 2010 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 SkDevice_DEFINED 8 #ifndef SkDevice_DEFINED
9 #define SkDevice_DEFINED 9 #define SkDevice_DEFINED
10 10
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 virtual bool canHandleImageFilter(const SkImageFilter*) { return false; } 274 virtual bool canHandleImageFilter(const SkImageFilter*) { return false; }
275 275
276 /** 276 /**
277 * Related (but not required) to canHandleImageFilter, this method returns 277 * Related (but not required) to canHandleImageFilter, this method returns
278 * true if the device could apply the filter to the src bitmap and return 278 * true if the device could apply the filter to the src bitmap and return
279 * the result (and updates offset as needed). 279 * the result (and updates offset as needed).
280 * If the device does not recognize or support this filter, 280 * If the device does not recognize or support this filter,
281 * it just returns false and leaves result and offset unchanged. 281 * it just returns false and leaves result and offset unchanged.
282 */ 282 */
283 virtual bool filterImage(const SkImageFilter*, const SkBitmap&, 283 virtual bool filterImage(const SkImageFilter*, const SkBitmap&,
284 const SkImageFilter::Context& ctx, 284 const SkImageFilter::Context&,
285 SkBitmap* result, SkIPoint* offset) { 285 SkBitmap* /*result*/, SkIPoint* /*offset*/) {
286 return false; 286 return false;
287 } 287 }
288 288
289 protected: 289 protected:
290 // default impl returns NULL 290 // default impl returns NULL
291 virtual SkSurface* newSurface(const SkImageInfo&, const SkSurfaceProps&); 291 virtual SkSurface* newSurface(const SkImageInfo&, const SkSurfaceProps&);
292 292
293 // default impl returns NULL 293 // default impl returns NULL
294 virtual const void* peekPixels(SkImageInfo*, size_t* rowBytes); 294 virtual const void* peekPixels(SkImageInfo*, size_t* rowBytes);
295 295
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
345 : fInfo(info) 345 : fInfo(info)
346 , fUsage(usage) 346 , fUsage(usage)
347 , fPixelGeometry(AdjustGeometry(info, usage, geo)) 347 , fPixelGeometry(AdjustGeometry(info, usage, geo))
348 {} 348 {}
349 349
350 const SkImageInfo fInfo; 350 const SkImageInfo fInfo;
351 const Usage fUsage; 351 const Usage fUsage;
352 const SkPixelGeometry fPixelGeometry; 352 const SkPixelGeometry fPixelGeometry;
353 }; 353 };
354 354
355 virtual SkBaseDevice* onCreateCompatibleDevice(const CreateInfo& cinfo) { 355 virtual SkBaseDevice* onCreateCompatibleDevice(const CreateInfo&) {
356 return NULL; 356 return NULL;
357 } 357 }
358 358
359 virtual void initForRootLayer(SkPixelGeometry geo); 359 virtual void initForRootLayer(SkPixelGeometry geo);
360 360
361 private: 361 private:
362 friend class SkCanvas; 362 friend class SkCanvas;
363 friend struct DeviceCM; //for setMatrixClip 363 friend struct DeviceCM; //for setMatrixClip
364 friend class SkDraw; 364 friend class SkDraw;
365 friend class SkDrawIter; 365 friend class SkDrawIter;
(...skipping 25 matching lines...) Expand all
391 SkDeviceProperties* fLeakyProperties; // will always exist. 391 SkDeviceProperties* fLeakyProperties; // will always exist.
392 392
393 #ifdef SK_DEBUG 393 #ifdef SK_DEBUG
394 bool fAttachedToCanvas; 394 bool fAttachedToCanvas;
395 #endif 395 #endif
396 396
397 typedef SkRefCnt INHERITED; 397 typedef SkRefCnt INHERITED;
398 }; 398 };
399 399
400 #endif 400 #endif
OLDNEW
« no previous file with comments | « include/core/SkCanvas.h ('k') | include/core/SkImageDecoder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698