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

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: Addressed code review issues Created 7 years, 6 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
« 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 /* 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 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 uint32_t fRecordFlags; 242 uint32_t fRecordFlags;
240 int fInitialSaveCount; 243 int fInitialSaveCount;
241 244
242 friend class SkPicturePlayback; 245 friend class SkPicturePlayback;
243 friend class SkPictureTester; // for unit testing 246 friend class SkPictureTester; // for unit testing
244 247
245 typedef SkCanvas INHERITED; 248 typedef SkCanvas INHERITED;
246 }; 249 };
247 250
248 #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