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

Side by Side Diff: src/utils/SkGatherPixelRefsAndRects.h

Issue 148883011: Make SkImageFilter methods const. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: More fixes to gm/ Created 6 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 | « src/pdf/SkPDFDevice.cpp ('k') | src/utils/SkPictureUtils.cpp » ('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 2014 Google Inc. 2 * Copyright 2014 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 SkGatherPixelRefsAndRects_DEFINED 8 #ifndef SkGatherPixelRefsAndRects_DEFINED
9 #define SkGatherPixelRefsAndRects_DEFINED 9 #define SkGatherPixelRefsAndRects_DEFINED
10 10
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after
292 return fEmptyBitmap; 292 return fEmptyBitmap;
293 } 293 }
294 virtual bool onReadPixels(const SkBitmap& bitmap, 294 virtual bool onReadPixels(const SkBitmap& bitmap,
295 int x, int y, 295 int x, int y,
296 SkCanvas::Config8888 config8888) SK_OVERRIDE { 296 SkCanvas::Config8888 config8888) SK_OVERRIDE {
297 NotSupported(); 297 NotSupported();
298 return false; 298 return false;
299 } 299 }
300 virtual void lockPixels() SK_OVERRIDE { NothingToDo(); } 300 virtual void lockPixels() SK_OVERRIDE { NothingToDo(); }
301 virtual void unlockPixels() SK_OVERRIDE { NothingToDo(); } 301 virtual void unlockPixels() SK_OVERRIDE { NothingToDo(); }
302 virtual bool allowImageFilter(SkImageFilter*) SK_OVERRIDE { return false; } 302 virtual bool allowImageFilter(const SkImageFilter*) SK_OVERRIDE { return fal se; }
303 virtual bool canHandleImageFilter(SkImageFilter*) SK_OVERRIDE { return false ; } 303 virtual bool canHandleImageFilter(const SkImageFilter*) SK_OVERRIDE { return false; }
304 virtual bool filterImage(SkImageFilter*, const SkBitmap&, const SkMatrix&, 304 virtual bool filterImage(const SkImageFilter*, const SkBitmap&, const SkMatr ix&,
305 SkBitmap* result, SkIPoint* offset) SK_OVERRIDE { 305 SkBitmap* result, SkIPoint* offset) SK_OVERRIDE {
306 return false; 306 return false;
307 } 307 }
308 308
309 private: 309 private:
310 SkPictureUtils::SkPixelRefContainer* fPRCont; 310 SkPictureUtils::SkPixelRefContainer* fPRCont;
311 SkISize fSize; 311 SkISize fSize;
312 312
313 SkBitmap fEmptyBitmap; // legacy -- need to remo ve 313 SkBitmap fEmptyBitmap; // legacy -- need to remo ve
314 314
(...skipping 25 matching lines...) Expand all
340 static void NotSupported() { 340 static void NotSupported() {
341 SkDEBUGFAIL("this method should never be called"); 341 SkDEBUGFAIL("this method should never be called");
342 } 342 }
343 343
344 static void NothingToDo() {} 344 static void NothingToDo() {}
345 345
346 typedef SkBaseDevice INHERITED; 346 typedef SkBaseDevice INHERITED;
347 }; 347 };
348 348
349 #endif // SkGatherPixelRefsAndRects_DEFINED 349 #endif // SkGatherPixelRefsAndRects_DEFINED
OLDNEW
« no previous file with comments | « src/pdf/SkPDFDevice.cpp ('k') | src/utils/SkPictureUtils.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698