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 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
245 int indexCount, const SkPaint& paint) override | 245 int indexCount, const SkPaint& paint) override |
246 {SkASSERT(0);} | 246 {SkASSERT(0);} |
247 void drawPatch(const SkDraw&, const SkPoint cubics[12], const SkColor colors
[4], | 247 void drawPatch(const SkDraw&, const SkPoint cubics[12], const SkColor colors
[4], |
248 const SkPoint texCoords[4], SkXfermode* xmode, | 248 const SkPoint texCoords[4], SkXfermode* xmode, |
249 const SkPaint& paint) override | 249 const SkPaint& paint) override |
250 {SkASSERT(0);} | 250 {SkASSERT(0);} |
251 void drawDevice(const SkDraw&, SkBaseDevice*, int x, int y, | 251 void drawDevice(const SkDraw&, SkBaseDevice*, int x, int y, |
252 const SkPaint&) override | 252 const SkPaint&) override |
253 {SkASSERT(0);} | 253 {SkASSERT(0);} |
254 | 254 |
255 void lockPixels() override {} | |
256 void unlockPixels() override {} | |
257 | |
258 bool canHandleImageFilter(const SkImageFilter*) override { | 255 bool canHandleImageFilter(const SkImageFilter*) override { |
259 return false; | 256 return false; |
260 } | 257 } |
261 bool filterImage(const SkImageFilter*, const SkBitmap&, | 258 bool filterImage(const SkImageFilter*, const SkBitmap&, |
262 const SkImageFilter::Context&, SkBitmap*, SkIPoint*) overri
de { | 259 const SkImageFilter::Context&, SkBitmap*, SkIPoint*) overri
de { |
263 return false; | 260 return false; |
264 } | 261 } |
265 | 262 |
266 private: | 263 private: |
267 void flush() override; | 264 void flush() override; |
(...skipping 717 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
985 SkDrawFilter* SkDeferredCanvas::setDrawFilter(SkDrawFilter* filter) { | 982 SkDrawFilter* SkDeferredCanvas::setDrawFilter(SkDrawFilter* filter) { |
986 this->drawingCanvas()->setDrawFilter(filter); | 983 this->drawingCanvas()->setDrawFilter(filter); |
987 this->INHERITED::setDrawFilter(filter); | 984 this->INHERITED::setDrawFilter(filter); |
988 this->recordedDrawCommand(); | 985 this->recordedDrawCommand(); |
989 return filter; | 986 return filter; |
990 } | 987 } |
991 | 988 |
992 SkCanvas* SkDeferredCanvas::canvasForDrawIter() { | 989 SkCanvas* SkDeferredCanvas::canvasForDrawIter() { |
993 return this->drawingCanvas(); | 990 return this->drawingCanvas(); |
994 } | 991 } |
OLD | NEW |