| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2013 Google Inc. | 2 * Copyright 2013 Google Inc. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 6 */ | 6 */ |
| 7 | 7 |
| 8 #ifndef SkTrackDevice_DEFINED | 8 #ifndef SkTrackDevice_DEFINED |
| 9 #define SkTrackDevice_DEFINED | 9 #define SkTrackDevice_DEFINED |
| 10 | 10 |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 } | 113 } |
| 114 | 114 |
| 115 virtual void drawText(const SkDraw& dummy1, const void* text, size_t len, | 115 virtual void drawText(const SkDraw& dummy1, const void* text, size_t len, |
| 116 SkScalar x, SkScalar y, const SkPaint& paint) { | 116 SkScalar x, SkScalar y, const SkPaint& paint) { |
| 117 before(); | 117 before(); |
| 118 INHERITED::drawText(dummy1, text, len, x, y, paint); | 118 INHERITED::drawText(dummy1, text, len, x, y, paint); |
| 119 after(); | 119 after(); |
| 120 } | 120 } |
| 121 | 121 |
| 122 virtual void drawPosText(const SkDraw& dummy1, const void* text, size_t len, | 122 virtual void drawPosText(const SkDraw& dummy1, const void* text, size_t len, |
| 123 const SkScalar pos[], SkScalar constY, | 123 const SkScalar pos[], int scalarsPerPos, |
| 124 int scalarsPerPos, const SkPaint& paint) { | 124 const SkPoint& offset, const SkPaint& paint) { |
| 125 before(); | 125 before(); |
| 126 INHERITED::drawPosText(dummy1, text, len, pos, constY, scalarsPerPos, pa
int); | 126 INHERITED::drawPosText(dummy1, text, len, pos, scalarsPerPos, offset, pa
int); |
| 127 after(); | 127 after(); |
| 128 } | 128 } |
| 129 | 129 |
| 130 virtual void drawTextOnPath(const SkDraw& dummy1, const void* text, size_t l
en, | 130 virtual void drawTextOnPath(const SkDraw& dummy1, const void* text, size_t l
en, |
| 131 const SkPath& path, const SkMatrix* matrix, | 131 const SkPath& path, const SkMatrix* matrix, |
| 132 const SkPaint& paint) { | 132 const SkPaint& paint) { |
| 133 before(); | 133 before(); |
| 134 INHERITED::drawTextOnPath(dummy1, text, len, path, matrix, paint); | 134 INHERITED::drawTextOnPath(dummy1, text, len, path, matrix, paint); |
| 135 after(); | 135 after(); |
| 136 } | 136 } |
| (...skipping 30 matching lines...) Expand all Loading... |
| 167 } | 167 } |
| 168 } | 168 } |
| 169 | 169 |
| 170 private: | 170 private: |
| 171 SkTracker* fTracker; | 171 SkTracker* fTracker; |
| 172 | 172 |
| 173 typedef SkBitmapDevice INHERITED; | 173 typedef SkBitmapDevice INHERITED; |
| 174 }; | 174 }; |
| 175 | 175 |
| 176 #endif // SkTrackDevice_DEFINED | 176 #endif // SkTrackDevice_DEFINED |
| OLD | NEW |