| 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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 const SkPaint& paint, | 89 const SkPaint& paint, |
| 90 SkCanvas::DrawBitmapRectFlags flags) SK_OVERRIDE
; | 90 SkCanvas::DrawBitmapRectFlags flags) SK_OVERRIDE
; |
| 91 | 91 |
| 92 /** | 92 /** |
| 93 * Does not handle text decoration. | 93 * Does not handle text decoration. |
| 94 * Decorations (underline and stike-thru) will be handled by SkCanvas. | 94 * Decorations (underline and stike-thru) will be handled by SkCanvas. |
| 95 */ | 95 */ |
| 96 virtual void drawText(const SkDraw&, const void* text, size_t len, | 96 virtual void drawText(const SkDraw&, const void* text, size_t len, |
| 97 SkScalar x, SkScalar y, const SkPaint& paint) SK_OVERR
IDE; | 97 SkScalar x, SkScalar y, const SkPaint& paint) SK_OVERR
IDE; |
| 98 virtual void drawPosText(const SkDraw&, const void* text, size_t len, | 98 virtual void drawPosText(const SkDraw&, const void* text, size_t len, |
| 99 const SkScalar pos[], int scalarsPerPos, | 99 const SkScalar pos[], SkScalar constY, |
| 100 const SkPoint& offset, const SkPaint& paint) SK_OVE
RRIDE; | 100 int scalarsPerPos, const SkPaint& paint) SK_OVERRID
E; |
| 101 virtual void drawTextOnPath(const SkDraw&, const void* text, size_t len, | 101 virtual void drawTextOnPath(const SkDraw&, const void* text, size_t len, |
| 102 const SkPath& path, const SkMatrix* matrix, | 102 const SkPath& path, const SkMatrix* matrix, |
| 103 const SkPaint& paint) SK_OVERRIDE; | 103 const SkPaint& paint) SK_OVERRIDE; |
| 104 virtual void drawVertices(const SkDraw&, SkCanvas::VertexMode, int vertexCou
nt, | 104 virtual void drawVertices(const SkDraw&, SkCanvas::VertexMode, int vertexCou
nt, |
| 105 const SkPoint verts[], const SkPoint texs[], | 105 const SkPoint verts[], const SkPoint texs[], |
| 106 const SkColor colors[], SkXfermode* xmode, | 106 const SkColor colors[], SkXfermode* xmode, |
| 107 const uint16_t indices[], int indexCount, | 107 const uint16_t indices[], int indexCount, |
| 108 const SkPaint& paint) SK_OVERRIDE; | 108 const SkPaint& paint) SK_OVERRIDE; |
| 109 /** The SkBaseDevice passed will be an SkBaseDevice which was returned by a
call to | 109 /** The SkBaseDevice passed will be an SkBaseDevice which was returned by a
call to |
| 110 onCreateDevice on this device with kSaveLayer_Usage. | 110 onCreateDevice on this device with kSaveLayer_Usage. |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 virtual const void* peekPixels(SkImageInfo*, size_t* rowBytes) SK_OVERRIDE; | 159 virtual const void* peekPixels(SkImageInfo*, size_t* rowBytes) SK_OVERRIDE; |
| 160 | 160 |
| 161 virtual SkImageFilter::Cache* getImageFilterCache() SK_OVERRIDE; | 161 virtual SkImageFilter::Cache* getImageFilterCache() SK_OVERRIDE; |
| 162 | 162 |
| 163 SkBitmap fBitmap; | 163 SkBitmap fBitmap; |
| 164 | 164 |
| 165 typedef SkBaseDevice INHERITED; | 165 typedef SkBaseDevice INHERITED; |
| 166 }; | 166 }; |
| 167 | 167 |
| 168 #endif // SkBitmapDevice_DEFINED | 168 #endif // SkBitmapDevice_DEFINED |
| OLD | NEW |