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

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

Issue 448793004: add drawPicture variant that takes a matrix and paint (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: more dummies so we can land Created 6 years, 4 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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 virtual void onDrawTextOnPath(const void* text, size_t byteLength, const SkP ath& path, 120 virtual void onDrawTextOnPath(const void* text, size_t byteLength, const SkP ath& path,
121 const SkMatrix* matrix, const SkPaint&) SK_OVE RRIDE; 121 const SkMatrix* matrix, const SkPaint&) SK_OVE RRIDE;
122 virtual void onPushCull(const SkRect& cullRect) SK_OVERRIDE; 122 virtual void onPushCull(const SkRect& cullRect) SK_OVERRIDE;
123 virtual void onPopCull() SK_OVERRIDE; 123 virtual void onPopCull() SK_OVERRIDE;
124 124
125 virtual void onClipRect(const SkRect&, SkRegion::Op, ClipEdgeStyle) SK_OVERR IDE; 125 virtual void onClipRect(const SkRect&, SkRegion::Op, ClipEdgeStyle) SK_OVERR IDE;
126 virtual void onClipRRect(const SkRRect&, SkRegion::Op, ClipEdgeStyle) SK_OVE RRIDE; 126 virtual void onClipRRect(const SkRRect&, SkRegion::Op, ClipEdgeStyle) SK_OVE RRIDE;
127 virtual void onClipPath(const SkPath&, SkRegion::Op, ClipEdgeStyle) SK_OVERR IDE; 127 virtual void onClipPath(const SkPath&, SkRegion::Op, ClipEdgeStyle) SK_OVERR IDE;
128 virtual void onClipRegion(const SkRegion&, SkRegion::Op) SK_OVERRIDE; 128 virtual void onClipRegion(const SkRegion&, SkRegion::Op) SK_OVERRIDE;
129 129
130 virtual void onDrawPicture(const SkPicture*) SK_OVERRIDE; 130 virtual void onDrawPicture(const SkPicture*, const SkMatrix*, const SkPaint* ) SK_OVERRIDE;
131 131
132 static const char* EdgeStyleToAAString(ClipEdgeStyle edgeStyle); 132 static const char* EdgeStyleToAAString(ClipEdgeStyle edgeStyle);
133 133
134 private: 134 private:
135 Dumper* fDumper; 135 Dumper* fDumper;
136 int fNestLevel; // for nesting recursive elements like pictures 136 int fNestLevel; // for nesting recursive elements like pictures
137 137
138 void dump(Verb, const SkPaint*, const char format[], ...); 138 void dump(Verb, const SkPaint*, const char format[], ...);
139 139
140 typedef SkCanvas INHERITED; 140 typedef SkCanvas INHERITED;
(...skipping 24 matching lines...) Expand all
165 public: 165 public:
166 SkDebugfDumper(); 166 SkDebugfDumper();
167 167
168 private: 168 private:
169 typedef SkFormatDumper INHERITED; 169 typedef SkFormatDumper INHERITED;
170 }; 170 };
171 171
172 #endif 172 #endif
173 173
174 #endif 174 #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