Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4)

Side by Side Diff: src/core/SkPictureRecord.h

Issue 1758023003: Move annotations to canvas virtual (patchset #8 id:140001 of https://codereview.chromium.org/174410… (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: manual rebase Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/core/SkPicturePlayback.cpp ('k') | src/core/SkPictureRecord.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/core/SkPicturePlayback.cpp ('k') | src/core/SkPictureRecord.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698