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

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

Issue 2355483002: abstract name of clipping ops, to transtion to a more restricted set (Closed)
Patch Set: no need for ifdef for globals Created 4 years, 3 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/private/SkRecords.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 * 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 SkDumpCanvas_DEFINED 8 #ifndef SkDumpCanvas_DEFINED
9 #define SkDumpCanvas_DEFINED 9 #define SkDumpCanvas_DEFINED
10 10
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 void onDrawImageRect(const SkImage*, const SkRect* src, const SkRect& dst, 110 void onDrawImageRect(const SkImage*, const SkRect* src, const SkRect& dst,
111 const SkPaint*, SrcRectConstraint) override; 111 const SkPaint*, SrcRectConstraint) override;
112 void onDrawBitmapNine(const SkBitmap&, const SkIRect& center, const SkRect& dst, 112 void onDrawBitmapNine(const SkBitmap&, const SkIRect& center, const SkRect& dst,
113 const SkPaint*) override; 113 const SkPaint*) override;
114 void onDrawVertices(VertexMode vmode, int vertexCount, 114 void onDrawVertices(VertexMode vmode, int vertexCount,
115 const SkPoint vertices[], const SkPoint texs[], 115 const SkPoint vertices[], const SkPoint texs[],
116 const SkColor colors[], SkXfermode* xmode, 116 const SkColor colors[], SkXfermode* xmode,
117 const uint16_t indices[], int indexCount, 117 const uint16_t indices[], int indexCount,
118 const SkPaint&) override; 118 const SkPaint&) override;
119 119
120 void onClipRect(const SkRect&, SkRegion::Op, ClipEdgeStyle) override; 120 void onClipRect(const SkRect&, ClipOp, ClipEdgeStyle) override;
121 void onClipRRect(const SkRRect&, SkRegion::Op, ClipEdgeStyle) override; 121 void onClipRRect(const SkRRect&, ClipOp, ClipEdgeStyle) override;
122 void onClipPath(const SkPath&, SkRegion::Op, ClipEdgeStyle) override; 122 void onClipPath(const SkPath&, ClipOp, ClipEdgeStyle) override;
123 void onClipRegion(const SkRegion&, SkRegion::Op) override; 123 void onClipRegion(const SkRegion&, ClipOp) override;
124 124
125 void onDrawPicture(const SkPicture*, const SkMatrix*, const SkPaint*) overri de; 125 void onDrawPicture(const SkPicture*, const SkMatrix*, const SkPaint*) overri de;
126 void onDrawAnnotation(const SkRect&, const char key[], SkData* value) overri de; 126 void onDrawAnnotation(const SkRect&, const char key[], SkData* value) overri de;
127 127
128 static const char* EdgeStyleToAAString(ClipEdgeStyle edgeStyle); 128 static const char* EdgeStyleToAAString(ClipEdgeStyle edgeStyle);
129 129
130 private: 130 private:
131 Dumper* fDumper; 131 Dumper* fDumper;
132 int fNestLevel; // for nesting recursive elements like pictures 132 int fNestLevel; // for nesting recursive elements like pictures
133 133
(...skipping 25 matching lines...) Expand all
159 */ 159 */
160 class SkDebugfDumper : public SkFormatDumper { 160 class SkDebugfDumper : public SkFormatDumper {
161 public: 161 public:
162 SkDebugfDumper(); 162 SkDebugfDumper();
163 163
164 private: 164 private:
165 typedef SkFormatDumper INHERITED; 165 typedef SkFormatDumper INHERITED;
166 }; 166 };
167 167
168 #endif 168 #endif
OLDNEW
« no previous file with comments | « include/private/SkRecords.h ('k') | include/utils/SkLuaCanvas.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698