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

Side by Side Diff: include/utils/SkDumpCanvas.h

Issue 174593003: override new virtual onDrawDRRect in util canvas subclasses (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 10 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 | « include/utils/SkDeferredCanvas.h ('k') | include/utils/SkLuaCanvas.h » ('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 SkDumpCanvas_DEFINED 8 #ifndef SkDumpCanvas_DEFINED
9 #define SkDumpCanvas_DEFINED 9 #define SkDumpCanvas_DEFINED
10 10
(...skipping 22 matching lines...) Expand all
33 33
34 kMatrix_Verb, 34 kMatrix_Verb,
35 35
36 kClip_Verb, 36 kClip_Verb,
37 37
38 kDrawPaint_Verb, 38 kDrawPaint_Verb,
39 kDrawPoints_Verb, 39 kDrawPoints_Verb,
40 kDrawOval_Verb, 40 kDrawOval_Verb,
41 kDrawRect_Verb, 41 kDrawRect_Verb,
42 kDrawRRect_Verb, 42 kDrawRRect_Verb,
43 kDrawDRRect_Verb,
43 kDrawPath_Verb, 44 kDrawPath_Verb,
44 kDrawBitmap_Verb, 45 kDrawBitmap_Verb,
45 kDrawText_Verb, 46 kDrawText_Verb,
46 kDrawPicture_Verb, 47 kDrawPicture_Verb,
47 kDrawVertices_Verb, 48 kDrawVertices_Verb,
48 kDrawData_Verb, 49 kDrawData_Verb,
49 50
50 kBeginCommentGroup_Verb, 51 kBeginCommentGroup_Verb,
51 kAddComment_Verb, 52 kAddComment_Verb,
52 kEndCommentGroup_Verb 53 kEndCommentGroup_Verb
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 virtual void drawVertices(VertexMode vmode, int vertexCount, 120 virtual void drawVertices(VertexMode vmode, int vertexCount,
120 const SkPoint vertices[], const SkPoint texs[], 121 const SkPoint vertices[], const SkPoint texs[],
121 const SkColor colors[], SkXfermode* xmode, 122 const SkColor colors[], SkXfermode* xmode,
122 const uint16_t indices[], int indexCount, 123 const uint16_t indices[], int indexCount,
123 const SkPaint& paint) SK_OVERRIDE; 124 const SkPaint& paint) SK_OVERRIDE;
124 virtual void drawData(const void*, size_t) SK_OVERRIDE; 125 virtual void drawData(const void*, size_t) SK_OVERRIDE;
125 virtual void beginCommentGroup(const char* description) SK_OVERRIDE; 126 virtual void beginCommentGroup(const char* description) SK_OVERRIDE;
126 virtual void addComment(const char* kywd, const char* value) SK_OVERRIDE; 127 virtual void addComment(const char* kywd, const char* value) SK_OVERRIDE;
127 virtual void endCommentGroup() SK_OVERRIDE; 128 virtual void endCommentGroup() SK_OVERRIDE;
128 129
130 protected:
131 virtual void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) SK _OVERRIDE;
132
129 private: 133 private:
130 Dumper* fDumper; 134 Dumper* fDumper;
131 int fNestLevel; // for nesting recursive elements like pictures 135 int fNestLevel; // for nesting recursive elements like pictures
132 136
133 void dump(Verb, const SkPaint*, const char format[], ...); 137 void dump(Verb, const SkPaint*, const char format[], ...);
134 138
135 typedef SkCanvas INHERITED; 139 typedef SkCanvas INHERITED;
136 }; 140 };
137 141
138 /** Formats the draw commands, and send them to a function-pointer provided 142 /** Formats the draw commands, and send them to a function-pointer provided
(...skipping 21 matching lines...) Expand all
160 public: 164 public:
161 SkDebugfDumper(); 165 SkDebugfDumper();
162 166
163 private: 167 private:
164 typedef SkFormatDumper INHERITED; 168 typedef SkFormatDumper INHERITED;
165 }; 169 };
166 170
167 #endif 171 #endif
168 172
169 #endif 173 #endif
OLDNEW
« no previous file with comments | « include/utils/SkDeferredCanvas.h ('k') | include/utils/SkLuaCanvas.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698