| 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 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 INHERITED::drawPosTextOnPath(draw, text, len, pos, paint, path, matrix); | 143 INHERITED::drawPosTextOnPath(draw, text, len, pos, paint, path, matrix); |
| 144 after(); | 144 after(); |
| 145 } | 145 } |
| 146 #endif | 146 #endif |
| 147 virtual void drawVertices(const SkDraw& dummy1, SkCanvas::VertexMode dummy2,
int vertexCount, | 147 virtual void drawVertices(const SkDraw& dummy1, SkCanvas::VertexMode dummy2,
int vertexCount, |
| 148 const SkPoint verts[], const SkPoint texs[], | 148 const SkPoint verts[], const SkPoint texs[], |
| 149 const SkColor colors[], SkXfermode* xmode, | 149 const SkColor colors[], SkXfermode* xmode, |
| 150 const uint16_t indices[], int indexCount, | 150 const uint16_t indices[], int indexCount, |
| 151 const SkPaint& paint) { | 151 const SkPaint& paint) { |
| 152 before(); | 152 before(); |
| 153 INHERITED::drawVertices(dummy1, dummy2, vertexCount,verts, texs,colors,
xmode, indices, indexCount, paint); | 153 INHERITED::drawVertices(dummy1, dummy2, vertexCount,verts, texs,colors,
xmode, indices, |
| 154 indexCount, paint); |
| 154 after(); | 155 after(); |
| 155 } | 156 } |
| 156 | 157 |
| 157 virtual void drawDevice(const SkDraw& dummy1, SkBaseDevice* dummy2, int x, i
nt y, | 158 virtual void drawDevice(const SkDraw& dummy1, SkBaseDevice* dummy2, int x, i
nt y, |
| 158 const SkPaint& dummy3) { | 159 const SkPaint& dummy3) { |
| 159 before(); | 160 before(); |
| 160 INHERITED::drawDevice(dummy1, dummy2, x, y, dummy3); | 161 INHERITED::drawDevice(dummy1, dummy2, x, y, dummy3); |
| 161 after(); | 162 after(); |
| 162 } | 163 } |
| 163 | 164 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 175 } | 176 } |
| 176 } | 177 } |
| 177 | 178 |
| 178 private: | 179 private: |
| 179 SkTracker* fTracker; | 180 SkTracker* fTracker; |
| 180 | 181 |
| 181 typedef SkBitmapDevice INHERITED; | 182 typedef SkBitmapDevice INHERITED; |
| 182 }; | 183 }; |
| 183 | 184 |
| 184 #endif // SkTrackDevice_DEFINED | 185 #endif // SkTrackDevice_DEFINED |
| OLD | NEW |