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 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
197 const SkColor colors[], SkXfermode* xmode, | 197 const SkColor colors[], SkXfermode* xmode, |
198 const uint16_t indices[], int indexCount, | 198 const uint16_t indices[], int indexCount, |
199 const SkPaint&) override; | 199 const SkPaint&) override; |
200 | 200 |
201 void onClipRect(const SkRect&, SkRegion::Op, ClipEdgeStyle) override; | 201 void onClipRect(const SkRect&, SkRegion::Op, ClipEdgeStyle) override; |
202 void onClipRRect(const SkRRect&, SkRegion::Op, ClipEdgeStyle) override; | 202 void onClipRRect(const SkRRect&, SkRegion::Op, ClipEdgeStyle) override; |
203 void onClipPath(const SkPath&, SkRegion::Op, ClipEdgeStyle) override; | 203 void onClipPath(const SkPath&, SkRegion::Op, ClipEdgeStyle) override; |
204 void onClipRegion(const SkRegion&, SkRegion::Op) override; | 204 void onClipRegion(const SkRegion&, SkRegion::Op) override; |
205 | 205 |
206 void onDrawPicture(const SkPicture*, const SkMatrix*, const SkPaint*) overri
de; | 206 void onDrawPicture(const SkPicture*, const SkMatrix*, const SkPaint*) overri
de; |
| 207 void onDrawAnnotation(const SkRect&, const char[], SkData*) override; |
207 | 208 |
208 int addPathToHeap(const SkPath& path); // does not write to ops stream | 209 int addPathToHeap(const SkPath& path); // does not write to ops stream |
209 | 210 |
210 // These entry points allow the writing of matrices, clips, saves & | 211 // These entry points allow the writing of matrices, clips, saves & |
211 // restores to be deferred (e.g., if the MC state is being collapsed and | 212 // restores to be deferred (e.g., if the MC state is being collapsed and |
212 // only written out as needed). | 213 // only written out as needed). |
213 void recordConcat(const SkMatrix& matrix); | 214 void recordConcat(const SkMatrix& matrix); |
214 void recordTranslate(const SkMatrix& matrix); | 215 void recordTranslate(const SkMatrix& matrix); |
215 void recordScale(const SkMatrix& matrix); | 216 void recordScale(const SkMatrix& matrix); |
216 size_t recordClipRect(const SkRect& rect, SkRegion::Op op, bool doAA); | 217 size_t recordClipRect(const SkRect& rect, SkRegion::Op op, bool doAA); |
(...skipping 24 matching lines...) Expand all Loading... |
241 | 242 |
242 uint32_t fRecordFlags; | 243 uint32_t fRecordFlags; |
243 int fInitialSaveCount; | 244 int fInitialSaveCount; |
244 | 245 |
245 friend class SkPictureData; // for SkPictureData's SkPictureRecord-based c
onstructor | 246 friend class SkPictureData; // for SkPictureData's SkPictureRecord-based c
onstructor |
246 | 247 |
247 typedef SkCanvas INHERITED; | 248 typedef SkCanvas INHERITED; |
248 }; | 249 }; |
249 | 250 |
250 #endif | 251 #endif |
OLD | NEW |