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

Side by Side Diff: src/core/SkRecorder.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 | « src/core/SkPictureRecord.cpp ('k') | src/core/SkRecorder.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 * Copyright 2014 Google Inc. 2 * Copyright 2014 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 SkRecorder_DEFINED 8 #ifndef SkRecorder_DEFINED
9 #define SkRecorder_DEFINED 9 #define SkRecorder_DEFINED
10 10
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 void onDrawBitmapLattice(const SkBitmap&, const Lattice& lattice, const SkRe ct& dst, 125 void onDrawBitmapLattice(const SkBitmap&, const Lattice& lattice, const SkRe ct& dst,
126 const SkPaint*) override; 126 const SkPaint*) override;
127 void onDrawVertices(VertexMode vmode, int vertexCount, 127 void onDrawVertices(VertexMode vmode, int vertexCount,
128 const SkPoint vertices[], const SkPoint texs[], 128 const SkPoint vertices[], const SkPoint texs[],
129 const SkColor colors[], SkXfermode* xmode, 129 const SkColor colors[], SkXfermode* xmode,
130 const uint16_t indices[], int indexCount, 130 const uint16_t indices[], int indexCount,
131 const SkPaint&) override; 131 const SkPaint&) override;
132 void onDrawAtlas(const SkImage*, const SkRSXform[], const SkRect[], const Sk Color[], 132 void onDrawAtlas(const SkImage*, const SkRSXform[], const SkRect[], const Sk Color[],
133 int count, SkXfermode::Mode, const SkRect* cull, const SkPa int*) override; 133 int count, SkXfermode::Mode, const SkRect* cull, const SkPa int*) override;
134 134
135 void onClipRect(const SkRect& rect, SkRegion::Op op, ClipEdgeStyle edgeStyle ) override; 135 void onClipRect(const SkRect& rect, ClipOp, ClipEdgeStyle) override;
136 void onClipRRect(const SkRRect& rrect, SkRegion::Op op, ClipEdgeStyle edgeSt yle) override; 136 void onClipRRect(const SkRRect& rrect, ClipOp, ClipEdgeStyle) override;
137 void onClipPath(const SkPath& path, SkRegion::Op op, ClipEdgeStyle edgeStyle ) override; 137 void onClipPath(const SkPath& path, ClipOp, ClipEdgeStyle) override;
138 void onClipRegion(const SkRegion& deviceRgn, SkRegion::Op op) override; 138 void onClipRegion(const SkRegion& deviceRgn, ClipOp) override;
139 139
140 void onDrawPicture(const SkPicture*, const SkMatrix*, const SkPaint*) overri de; 140 void onDrawPicture(const SkPicture*, const SkMatrix*, const SkPaint*) overri de;
141 141
142 #ifdef SK_EXPERIMENTAL_SHADOWING 142 #ifdef SK_EXPERIMENTAL_SHADOWING
143 void onDrawShadowedPicture(const SkPicture*, 143 void onDrawShadowedPicture(const SkPicture*,
144 const SkMatrix*, 144 const SkMatrix*,
145 const SkPaint*, 145 const SkPaint*,
146 const SkShadowParams& params) override; 146 const SkShadowParams& params) override;
147 #else 147 #else
148 void onDrawShadowedPicture(const SkPicture*, 148 void onDrawShadowedPicture(const SkPicture*,
(...skipping 23 matching lines...) Expand all
172 172
173 DrawPictureMode fDrawPictureMode; 173 DrawPictureMode fDrawPictureMode;
174 size_t fApproxBytesUsedBySubPictures; 174 size_t fApproxBytesUsedBySubPictures;
175 SkRecord* fRecord; 175 SkRecord* fRecord;
176 SkAutoTDelete<SkDrawableList> fDrawableList; 176 SkAutoTDelete<SkDrawableList> fDrawableList;
177 177
178 SkMiniRecorder* fMiniRecorder; 178 SkMiniRecorder* fMiniRecorder;
179 }; 179 };
180 180
181 #endif//SkRecorder_DEFINED 181 #endif//SkRecorder_DEFINED
OLDNEW
« no previous file with comments | « src/core/SkPictureRecord.cpp ('k') | src/core/SkRecorder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698