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

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

Issue 1761793003: Revert of move annotations to canvas virtual (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 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;
208 207
209 int addPathToHeap(const SkPath& path); // does not write to ops stream 208 int addPathToHeap(const SkPath& path); // does not write to ops stream
210 209
211 // These entry points allow the writing of matrices, clips, saves & 210 // These entry points allow the writing of matrices, clips, saves &
212 // restores to be deferred (e.g., if the MC state is being collapsed and 211 // restores to be deferred (e.g., if the MC state is being collapsed and
213 // only written out as needed). 212 // only written out as needed).
214 void recordConcat(const SkMatrix& matrix); 213 void recordConcat(const SkMatrix& matrix);
215 void recordTranslate(const SkMatrix& matrix); 214 void recordTranslate(const SkMatrix& matrix);
216 void recordScale(const SkMatrix& matrix); 215 void recordScale(const SkMatrix& matrix);
217 size_t recordClipRect(const SkRect& rect, SkRegion::Op op, bool doAA); 216 size_t recordClipRect(const SkRect& rect, SkRegion::Op op, bool doAA);
(...skipping 24 matching lines...) Expand all
242 241
243 uint32_t fRecordFlags; 242 uint32_t fRecordFlags;
244 int fInitialSaveCount; 243 int fInitialSaveCount;
245 244
246 friend class SkPictureData; // for SkPictureData's SkPictureRecord-based c onstructor 245 friend class SkPictureData; // for SkPictureData's SkPictureRecord-based c onstructor
247 246
248 typedef SkCanvas INHERITED; 247 typedef SkCanvas INHERITED;
249 }; 248 };
250 249
251 #endif 250 #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