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

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

Issue 189913021: Implement support for a Context parameter in image filters (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Revert all but the Context changes. Created 6 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « src/utils/SkDeferredCanvas.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 289 matching lines...) Expand 10 before | Expand all | Expand 10 after
300 virtual bool onReadPixels(const SkBitmap& bitmap, 300 virtual bool onReadPixels(const SkBitmap& bitmap,
301 int x, int y, 301 int x, int y,
302 SkCanvas::Config8888 config8888) SK_OVERRIDE { 302 SkCanvas::Config8888 config8888) SK_OVERRIDE {
303 NotSupported(); 303 NotSupported();
304 return false; 304 return false;
305 } 305 }
306 virtual void lockPixels() SK_OVERRIDE { NothingToDo(); } 306 virtual void lockPixels() SK_OVERRIDE { NothingToDo(); }
307 virtual void unlockPixels() SK_OVERRIDE { NothingToDo(); } 307 virtual void unlockPixels() SK_OVERRIDE { NothingToDo(); }
308 virtual bool allowImageFilter(const SkImageFilter*) SK_OVERRIDE { return fal se; } 308 virtual bool allowImageFilter(const SkImageFilter*) SK_OVERRIDE { return fal se; }
309 virtual bool canHandleImageFilter(const SkImageFilter*) SK_OVERRIDE { return false; } 309 virtual bool canHandleImageFilter(const SkImageFilter*) SK_OVERRIDE { return false; }
310 virtual bool filterImage(const SkImageFilter*, const SkBitmap&, const SkMatr ix&, 310 virtual bool filterImage(const SkImageFilter*, const SkBitmap&, const SkImag eFilter::Context&,
311 SkBitmap* result, SkIPoint* offset) SK_OVERRIDE { 311 SkBitmap* result, SkIPoint* offset) SK_OVERRIDE {
312 return false; 312 return false;
313 } 313 }
314 314
315 private: 315 private:
316 SkPictureUtils::SkPixelRefContainer* fPRCont; 316 SkPictureUtils::SkPixelRefContainer* fPRCont;
317 SkISize fSize; 317 SkISize fSize;
318 318
319 SkBitmap fEmptyBitmap; // legacy -- need to remo ve 319 SkBitmap fEmptyBitmap; // legacy -- need to remo ve
320 320
(...skipping 23 matching lines...) Expand all
344 static void NotSupported() { 344 static void NotSupported() {
345 SkDEBUGFAIL("this method should never be called"); 345 SkDEBUGFAIL("this method should never be called");
346 } 346 }
347 347
348 static void NothingToDo() {} 348 static void NothingToDo() {}
349 349
350 typedef SkBaseDevice INHERITED; 350 typedef SkBaseDevice INHERITED;
351 }; 351 };
352 352
353 #endif // SkGatherPixelRefsAndRects_DEFINED 353 #endif // SkGatherPixelRefsAndRects_DEFINED
OLDNEW
« no previous file with comments | « src/utils/SkDeferredCanvas.cpp ('k') | src/utils/SkPictureUtils.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698