| 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 #ifndef SkBitmapDevice_DEFINED | 9 #ifndef SkBitmapDevice_DEFINED |
| 10 #define SkBitmapDevice_DEFINED | 10 #define SkBitmapDevice_DEFINED |
| (...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 * Decorations (underline and stike-thru) will be handled by SkCanvas. | 177 * Decorations (underline and stike-thru) will be handled by SkCanvas. |
| 178 */ | 178 */ |
| 179 virtual void drawText(const SkDraw&, const void* text, size_t len, | 179 virtual void drawText(const SkDraw&, const void* text, size_t len, |
| 180 SkScalar x, SkScalar y, const SkPaint& paint) SK_OVERR
IDE; | 180 SkScalar x, SkScalar y, const SkPaint& paint) SK_OVERR
IDE; |
| 181 virtual void drawPosText(const SkDraw&, const void* text, size_t len, | 181 virtual void drawPosText(const SkDraw&, const void* text, size_t len, |
| 182 const SkScalar pos[], SkScalar constY, | 182 const SkScalar pos[], SkScalar constY, |
| 183 int scalarsPerPos, const SkPaint& paint) SK_OVERRID
E; | 183 int scalarsPerPos, const SkPaint& paint) SK_OVERRID
E; |
| 184 virtual void drawTextOnPath(const SkDraw&, const void* text, size_t len, | 184 virtual void drawTextOnPath(const SkDraw&, const void* text, size_t len, |
| 185 const SkPath& path, const SkMatrix* matrix, | 185 const SkPath& path, const SkMatrix* matrix, |
| 186 const SkPaint& paint) SK_OVERRIDE; | 186 const SkPaint& paint) SK_OVERRIDE; |
| 187 #ifdef SK_BUILD_FOR_ANDROID | |
| 188 virtual void drawPosTextOnPath(const SkDraw& draw, const void* text, size_t
len, | |
| 189 const SkPoint pos[], const SkPaint& paint, | |
| 190 const SkPath& path, const SkMatrix* matrix) S
K_OVERRIDE; | |
| 191 #endif | |
| 192 virtual void drawVertices(const SkDraw&, SkCanvas::VertexMode, int vertexCou
nt, | 187 virtual void drawVertices(const SkDraw&, SkCanvas::VertexMode, int vertexCou
nt, |
| 193 const SkPoint verts[], const SkPoint texs[], | 188 const SkPoint verts[], const SkPoint texs[], |
| 194 const SkColor colors[], SkXfermode* xmode, | 189 const SkColor colors[], SkXfermode* xmode, |
| 195 const uint16_t indices[], int indexCount, | 190 const uint16_t indices[], int indexCount, |
| 196 const SkPaint& paint) SK_OVERRIDE; | 191 const SkPaint& paint) SK_OVERRIDE; |
| 197 /** The SkBaseDevice passed will be an SkBaseDevice which was returned by a
call to | 192 /** The SkBaseDevice passed will be an SkBaseDevice which was returned by a
call to |
| 198 onCreateCompatibleDevice on this device with kSaveLayer_Usage. | 193 onCreateCompatibleDevice on this device with kSaveLayer_Usage. |
| 199 */ | 194 */ |
| 200 virtual void drawDevice(const SkDraw&, SkBaseDevice*, int x, int y, | 195 virtual void drawDevice(const SkDraw&, SkBaseDevice*, int x, int y, |
| 201 const SkPaint&) SK_OVERRIDE; | 196 const SkPaint&) SK_OVERRIDE; |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 286 /** Causes any deferred drawing to the device to be completed. | 281 /** Causes any deferred drawing to the device to be completed. |
| 287 */ | 282 */ |
| 288 virtual void flush() SK_OVERRIDE {} | 283 virtual void flush() SK_OVERRIDE {} |
| 289 | 284 |
| 290 SkBitmap fBitmap; | 285 SkBitmap fBitmap; |
| 291 | 286 |
| 292 typedef SkBaseDevice INHERITED; | 287 typedef SkBaseDevice INHERITED; |
| 293 }; | 288 }; |
| 294 | 289 |
| 295 #endif // SkBitmapDevice_DEFINED | 290 #endif // SkBitmapDevice_DEFINED |
| OLD | NEW |