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

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

Issue 13957009: First pass at Comment API (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: moved to beginCommentGroup/endCommentGroup Created 7 years, 8 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 | Annotate | Revision Log
OLDNEW
1 1
2 /* 2 /*
3 * Copyright 2011 Google Inc. 3 * Copyright 2011 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 #ifndef SkPictureRecord_DEFINED 8 #ifndef SkPictureRecord_DEFINED
9 #define SkPictureRecord_DEFINED 9 #define SkPictureRecord_DEFINED
10 10
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 virtual void drawTextOnPath(const void* text, size_t byteLength, 75 virtual void drawTextOnPath(const void* text, size_t byteLength,
76 const SkPath& path, const SkMatrix* matrix, 76 const SkPath& path, const SkMatrix* matrix,
77 const SkPaint&) SK_OVERRIDE; 77 const SkPaint&) SK_OVERRIDE;
78 virtual void drawPicture(SkPicture& picture) SK_OVERRIDE; 78 virtual void drawPicture(SkPicture& picture) SK_OVERRIDE;
79 virtual void drawVertices(VertexMode, int vertexCount, 79 virtual void drawVertices(VertexMode, int vertexCount,
80 const SkPoint vertices[], const SkPoint texs[], 80 const SkPoint vertices[], const SkPoint texs[],
81 const SkColor colors[], SkXfermode*, 81 const SkColor colors[], SkXfermode*,
82 const uint16_t indices[], int indexCount, 82 const uint16_t indices[], int indexCount,
83 const SkPaint&) SK_OVERRIDE; 83 const SkPaint&) SK_OVERRIDE;
84 virtual void drawData(const void*, size_t) SK_OVERRIDE; 84 virtual void drawData(const void*, size_t) SK_OVERRIDE;
85 virtual void beginCommentGroup(const char* description) SK_OVERRIDE;
86 virtual void addComment(const char* kywd, const char* value) SK_OVERRIDE;
87 virtual void endCommentGroup() SK_OVERRIDE;
85 virtual bool isDrawingToLayer() const SK_OVERRIDE; 88 virtual bool isDrawingToLayer() const SK_OVERRIDE;
86 89
87 void addFontMetricsTopBottom(const SkPaint& paint, const SkFlatData&, 90 void addFontMetricsTopBottom(const SkPaint& paint, const SkFlatData&,
88 SkScalar minY, SkScalar maxY); 91 SkScalar minY, SkScalar maxY);
89 92
90 const SkTDArray<SkPicture* >& getPictureRefs() const { 93 const SkTDArray<SkPicture* >& getPictureRefs() const {
91 return fPictureRefs; 94 return fPictureRefs;
92 } 95 }
93 96
94 void setFlags(uint32_t recordFlags) { 97 void setFlags(uint32_t recordFlags) {
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 uint32_t fRecordFlags; 240 uint32_t fRecordFlags;
238 int fInitialSaveCount; 241 int fInitialSaveCount;
239 242
240 friend class SkPicturePlayback; 243 friend class SkPicturePlayback;
241 friend class SkPictureTester; // for unit testing 244 friend class SkPictureTester; // for unit testing
242 245
243 typedef SkCanvas INHERITED; 246 typedef SkCanvas INHERITED;
244 }; 247 };
245 248
246 #endif 249 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698