OLD | NEW |
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 Loading... |
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 Loading... |
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 } |
OLD | NEW |