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

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

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/gpu/SkGpuDevice.cpp ('k') | src/utils/SkGatherPixelRefsAndRects.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 /* 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 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 virtual void lockPixels() SK_OVERRIDE {} 243 virtual void lockPixels() SK_OVERRIDE {}
244 virtual void unlockPixels() SK_OVERRIDE {} 244 virtual void unlockPixels() SK_OVERRIDE {}
245 245
246 virtual bool allowImageFilter(const SkImageFilter*) SK_OVERRIDE { 246 virtual bool allowImageFilter(const SkImageFilter*) SK_OVERRIDE {
247 return false; 247 return false;
248 } 248 }
249 virtual bool canHandleImageFilter(const SkImageFilter*) SK_OVERRIDE { 249 virtual bool canHandleImageFilter(const SkImageFilter*) SK_OVERRIDE {
250 return false; 250 return false;
251 } 251 }
252 virtual bool filterImage(const SkImageFilter*, const SkBitmap&, 252 virtual bool filterImage(const SkImageFilter*, const SkBitmap&,
253 const SkMatrix&, SkBitmap*, SkIPoint*) SK_OVERRIDE { 253 const SkImageFilter::Context&, SkBitmap*, SkIPoint* ) SK_OVERRIDE {
254 return false; 254 return false;
255 } 255 }
256 256
257 private: 257 private:
258 virtual void flush() SK_OVERRIDE; 258 virtual void flush() SK_OVERRIDE;
259 virtual void replaceBitmapBackendForRasterSurface(const SkBitmap&) SK_OVERRI DE {} 259 virtual void replaceBitmapBackendForRasterSurface(const SkBitmap&) SK_OVERRI DE {}
260 260
261 void beginRecording(); 261 void beginRecording();
262 void init(); 262 void init();
263 void aboutToDraw(); 263 void aboutToDraw();
(...skipping 758 matching lines...) Expand 10 before | Expand all | Expand 10 after
1022 SkDrawFilter* SkDeferredCanvas::setDrawFilter(SkDrawFilter* filter) { 1022 SkDrawFilter* SkDeferredCanvas::setDrawFilter(SkDrawFilter* filter) {
1023 this->drawingCanvas()->setDrawFilter(filter); 1023 this->drawingCanvas()->setDrawFilter(filter);
1024 this->INHERITED::setDrawFilter(filter); 1024 this->INHERITED::setDrawFilter(filter);
1025 this->recordedDrawCommand(); 1025 this->recordedDrawCommand();
1026 return filter; 1026 return filter;
1027 } 1027 }
1028 1028
1029 SkCanvas* SkDeferredCanvas::canvasForDrawIter() { 1029 SkCanvas* SkDeferredCanvas::canvasForDrawIter() {
1030 return this->drawingCanvas(); 1030 return this->drawingCanvas();
1031 } 1031 }
OLDNEW
« no previous file with comments | « src/gpu/SkGpuDevice.cpp ('k') | src/utils/SkGatherPixelRefsAndRects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698