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

Side by Side Diff: src/utils/SkDeferredCanvas.cpp

Issue 920513003: Make filters use SkImage instead of SkBitmap Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 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
« no previous file with comments | « src/pdf/SkPDFDevice.cpp ('k') | tests/ImageFilterTest.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 /* 2 /*
3 * Copyright 2013 Google Inc. 3 * Copyright 2013 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 #include "SkDeferredCanvas.h" 9 #include "SkDeferredCanvas.h"
10 10
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 virtual void drawDevice(const SkDraw&, SkBaseDevice*, int x, int y, 245 virtual void drawDevice(const SkDraw&, SkBaseDevice*, int x, int y,
246 const SkPaint&) SK_OVERRIDE 246 const SkPaint&) SK_OVERRIDE
247 {SkASSERT(0);} 247 {SkASSERT(0);}
248 248
249 void lockPixels() SK_OVERRIDE {} 249 void lockPixels() SK_OVERRIDE {}
250 void unlockPixels() SK_OVERRIDE {} 250 void unlockPixels() SK_OVERRIDE {}
251 251
252 bool canHandleImageFilter(const SkImageFilter*) SK_OVERRIDE { 252 bool canHandleImageFilter(const SkImageFilter*) SK_OVERRIDE {
253 return false; 253 return false;
254 } 254 }
255 virtual bool filterImage(const SkImageFilter*, const SkBitmap&, 255 virtual bool filterImage(const SkImageFilter*, const SkImage*,
256 const SkImageFilter::Context&, SkBitmap*, SkIPoint* ) SK_OVERRIDE { 256 const SkImageFilter::Context&,
257 SkAutoTUnref<const SkImage>&, SkIPoint*) SK_OVERRID E {
257 return false; 258 return false;
258 } 259 }
259 260
260 private: 261 private:
261 void flush() SK_OVERRIDE; 262 void flush() SK_OVERRIDE;
262 void replaceBitmapBackend(const SkBitmap&) SK_OVERRIDE {} 263 void replaceBitmapBackend(const SkBitmap&) SK_OVERRIDE {}
263 264
264 void beginRecording(); 265 void beginRecording();
265 void init(); 266 void init();
266 void aboutToDraw(); 267 void aboutToDraw();
(...skipping 706 matching lines...) Expand 10 before | Expand all | Expand 10 after
973 SkDrawFilter* SkDeferredCanvas::setDrawFilter(SkDrawFilter* filter) { 974 SkDrawFilter* SkDeferredCanvas::setDrawFilter(SkDrawFilter* filter) {
974 this->drawingCanvas()->setDrawFilter(filter); 975 this->drawingCanvas()->setDrawFilter(filter);
975 this->INHERITED::setDrawFilter(filter); 976 this->INHERITED::setDrawFilter(filter);
976 this->recordedDrawCommand(); 977 this->recordedDrawCommand();
977 return filter; 978 return filter;
978 } 979 }
979 980
980 SkCanvas* SkDeferredCanvas::canvasForDrawIter() { 981 SkCanvas* SkDeferredCanvas::canvasForDrawIter() {
981 return this->drawingCanvas(); 982 return this->drawingCanvas();
982 } 983 }
OLDNEW
« no previous file with comments | « src/pdf/SkPDFDevice.cpp ('k') | tests/ImageFilterTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698