| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2011 Google Inc. | 2 * Copyright 2011 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 SkPictureRecord_DEFINED | 8 #ifndef SkPictureRecord_DEFINED |
| 9 #define SkPictureRecord_DEFINED | 9 #define SkPictureRecord_DEFINED |
| 10 | 10 |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 | 152 |
| 153 void willSave() override; | 153 void willSave() override; |
| 154 SaveLayerStrategy willSaveLayer(const SkRect*, const SkPaint*, SaveFlags) ov
erride; | 154 SaveLayerStrategy willSaveLayer(const SkRect*, const SkPaint*, SaveFlags) ov
erride; |
| 155 void willRestore() override; | 155 void willRestore() override; |
| 156 | 156 |
| 157 void didConcat(const SkMatrix&) override; | 157 void didConcat(const SkMatrix&) override; |
| 158 void didSetMatrix(const SkMatrix&) override; | 158 void didSetMatrix(const SkMatrix&) override; |
| 159 | 159 |
| 160 void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) override; | 160 void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) override; |
| 161 | 161 |
| 162 virtual void onDrawText(const void* text, size_t byteLength, SkScalar x, SkS
calar y, | 162 void onDrawText(const void* text, size_t, SkScalar x, SkScalar y, const SkPa
int&) override; |
| 163 const SkPaint&) override; | 163 void onDrawPosText(const void* text, size_t, const SkPoint pos[], const SkPa
int&) override; |
| 164 virtual void onDrawPosText(const void* text, size_t byteLength, const SkPoin
t pos[], | 164 void onDrawPosTextH(const void* text, size_t, const SkScalar xpos[], SkScala
r constY, |
| 165 const SkPaint&) override; | 165 const SkPaint&) override; |
| 166 virtual void onDrawPosTextH(const void* text, size_t byteLength, const SkSca
lar xpos[], | 166 void onDrawTextOnPath(const void* text, size_t byteLength, const SkPath& pat
h, |
| 167 SkScalar constY, const SkPaint&) override; | |
| 168 virtual void onDrawTextOnPath(const void* text, size_t byteLength, const SkP
ath& path, | |
| 169 const SkMatrix* matrix, const SkPaint&) overri
de; | 167 const SkMatrix* matrix, const SkPaint&) overri
de; |
| 170 virtual void onDrawTextBlob(const SkTextBlob* blob, SkScalar x, SkScalar y, | 168 void onDrawTextBlob(const SkTextBlob* blob, SkScalar x, SkScalar y, |
| 171 const SkPaint& paint) override; | 169 const SkPaint& paint) override; |
| 172 | 170 |
| 173 virtual void onDrawPatch(const SkPoint cubics[12], const SkColor colors[4], | 171 void onDrawPatch(const SkPoint cubics[12], const SkColor colors[4], |
| 174 const SkPoint texCoords[4], SkXfermode* xmode, | 172 const SkPoint texCoords[4], SkXfermode* xmode, |
| 175 const SkPaint& paint) override; | 173 const SkPaint& paint) override; |
| 176 void onDrawAtlas(const SkImage*, const SkRSXform[], const SkRect[], const Sk
Color[], int, | 174 void onDrawAtlas(const SkImage*, const SkRSXform[], const SkRect[], const Sk
Color[], int, |
| 177 SkXfermode::Mode, const SkRect*, const SkPaint*) override; | 175 SkXfermode::Mode, const SkRect*, const SkPaint*) override; |
| 178 | 176 |
| 179 void onDrawPaint(const SkPaint&) override; | 177 void onDrawPaint(const SkPaint&) override; |
| 180 void onDrawPoints(PointMode, size_t count, const SkPoint pts[], const SkPain
t&) override; | 178 void onDrawPoints(PointMode, size_t count, const SkPoint pts[], const SkPain
t&) override; |
| 181 void onDrawRect(const SkRect&, const SkPaint&) override; | 179 void onDrawRect(const SkRect&, const SkPaint&) override; |
| 182 void onDrawOval(const SkRect&, const SkPaint&) override; | 180 void onDrawOval(const SkRect&, const SkPaint&) override; |
| 183 void onDrawRRect(const SkRRect&, const SkPaint&) override; | 181 void onDrawRRect(const SkRRect&, const SkPaint&) override; |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 238 | 236 |
| 239 uint32_t fRecordFlags; | 237 uint32_t fRecordFlags; |
| 240 int fInitialSaveCount; | 238 int fInitialSaveCount; |
| 241 | 239 |
| 242 friend class SkPictureData; // for SkPictureData's SkPictureRecord-based c
onstructor | 240 friend class SkPictureData; // for SkPictureData's SkPictureRecord-based c
onstructor |
| 243 | 241 |
| 244 typedef SkCanvas INHERITED; | 242 typedef SkCanvas INHERITED; |
| 245 }; | 243 }; |
| 246 | 244 |
| 247 #endif | 245 #endif |
| OLD | NEW |