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 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
217 {SkASSERT(0);} | 217 {SkASSERT(0);} |
218 virtual void drawPosText(const SkDraw&, const void* text, size_t len, | 218 virtual void drawPosText(const SkDraw&, const void* text, size_t len, |
219 const SkScalar pos[], SkScalar constY, | 219 const SkScalar pos[], SkScalar constY, |
220 int scalarsPerPos, const SkPaint& paint) SK_OVER
RIDE | 220 int scalarsPerPos, const SkPaint& paint) SK_OVER
RIDE |
221 {SkASSERT(0);} | 221 {SkASSERT(0);} |
222 virtual void drawTextOnPath(const SkDraw&, const void* text, | 222 virtual void drawTextOnPath(const SkDraw&, const void* text, |
223 size_t len, const SkPath& path, | 223 size_t len, const SkPath& path, |
224 const SkMatrix* matrix, | 224 const SkMatrix* matrix, |
225 const SkPaint& paint) SK_OVERRIDE | 225 const SkPaint& paint) SK_OVERRIDE |
226 {SkASSERT(0);} | 226 {SkASSERT(0);} |
227 #ifdef SK_BUILD_FOR_ANDROID | |
228 virtual void drawPosTextOnPath(const SkDraw& draw, const void* text, | |
229 size_t len, const SkPoint pos[], | |
230 const SkPaint& paint, | |
231 const SkPath& path, | |
232 const SkMatrix* matrix) SK_OVERRIDE | |
233 {SkASSERT(0);} | |
234 #endif | |
235 virtual void drawVertices(const SkDraw&, SkCanvas::VertexMode, | 227 virtual void drawVertices(const SkDraw&, SkCanvas::VertexMode, |
236 int vertexCount, const SkPoint verts[], | 228 int vertexCount, const SkPoint verts[], |
237 const SkPoint texs[], const SkColor colors[], | 229 const SkPoint texs[], const SkColor colors[], |
238 SkXfermode* xmode, const uint16_t indices[], | 230 SkXfermode* xmode, const uint16_t indices[], |
239 int indexCount, const SkPaint& paint) SK_OVERRID
E | 231 int indexCount, const SkPaint& paint) SK_OVERRID
E |
240 {SkASSERT(0);} | 232 {SkASSERT(0);} |
241 virtual void drawDevice(const SkDraw&, SkBaseDevice*, int x, int y, | 233 virtual void drawDevice(const SkDraw&, SkBaseDevice*, int x, int y, |
242 const SkPaint&) SK_OVERRIDE | 234 const SkPaint&) SK_OVERRIDE |
243 {SkASSERT(0);} | 235 {SkASSERT(0);} |
244 private: | 236 private: |
(...skipping 762 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1007 SkDrawFilter* SkDeferredCanvas::setDrawFilter(SkDrawFilter* filter) { | 999 SkDrawFilter* SkDeferredCanvas::setDrawFilter(SkDrawFilter* filter) { |
1008 this->drawingCanvas()->setDrawFilter(filter); | 1000 this->drawingCanvas()->setDrawFilter(filter); |
1009 this->INHERITED::setDrawFilter(filter); | 1001 this->INHERITED::setDrawFilter(filter); |
1010 this->recordedDrawCommand(); | 1002 this->recordedDrawCommand(); |
1011 return filter; | 1003 return filter; |
1012 } | 1004 } |
1013 | 1005 |
1014 SkCanvas* SkDeferredCanvas::canvasForDrawIter() { | 1006 SkCanvas* SkDeferredCanvas::canvasForDrawIter() { |
1015 return this->drawingCanvas(); | 1007 return this->drawingCanvas(); |
1016 } | 1008 } |
OLD | NEW |