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

Side by Side Diff: src/pipe/SkPipeCanvas.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/pdf/SkPDFDevice.cpp ('k') | src/pipe/SkPipeCanvas.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 2016 Google Inc. 2 * Copyright 2016 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 SkPipeCanvas_DEFINED 8 #ifndef SkPipeCanvas_DEFINED
9 #define SkPipeCanvas_DEFINED 9 #define SkPipeCanvas_DEFINED
10 10
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 void onDrawImageNine(const SkImage*, const SkIRect& center, const SkRect& ds t, 133 void onDrawImageNine(const SkImage*, const SkIRect& center, const SkRect& ds t,
134 const SkPaint*) override; 134 const SkPaint*) override;
135 void onDrawImageLattice(const SkImage*, const Lattice& lattice, const SkRect & dst, 135 void onDrawImageLattice(const SkImage*, const Lattice& lattice, const SkRect & dst,
136 const SkPaint*) override; 136 const SkPaint*) override;
137 void onDrawVertices(VertexMode vmode, int vertexCount, 137 void onDrawVertices(VertexMode vmode, int vertexCount,
138 const SkPoint vertices[], const SkPoint texs[], 138 const SkPoint vertices[], const SkPoint texs[],
139 const SkColor colors[], SkXfermode* xmode, 139 const SkColor colors[], SkXfermode* xmode,
140 const uint16_t indices[], int indexCount, 140 const uint16_t indices[], int indexCount,
141 const SkPaint&) override; 141 const SkPaint&) override;
142 142
143 void onClipRect(const SkRect&, SkRegion::Op, ClipEdgeStyle) override; 143 void onClipRect(const SkRect&, ClipOp, ClipEdgeStyle) override;
144 void onClipRRect(const SkRRect&, SkRegion::Op, ClipEdgeStyle) override; 144 void onClipRRect(const SkRRect&, ClipOp, ClipEdgeStyle) override;
145 void onClipPath(const SkPath&, SkRegion::Op, ClipEdgeStyle) override; 145 void onClipPath(const SkPath&, ClipOp, ClipEdgeStyle) override;
146 void onClipRegion(const SkRegion&, SkRegion::Op) override; 146 void onClipRegion(const SkRegion&, ClipOp) override;
147 147
148 void onDrawPicture(const SkPicture*, const SkMatrix*, const SkPaint*) overri de; 148 void onDrawPicture(const SkPicture*, const SkMatrix*, const SkPaint*) overri de;
149 void onDrawAnnotation(const SkRect&, const char[], SkData*) override; 149 void onDrawAnnotation(const SkRect&, const char[], SkData*) override;
150 150
151 // These we turn into images 151 // These we turn into images
152 void onDrawBitmap(const SkBitmap&, SkScalar left, SkScalar top, const SkPain t*) override; 152 void onDrawBitmap(const SkBitmap&, SkScalar left, SkScalar top, const SkPain t*) override;
153 void onDrawBitmapRect(const SkBitmap&, const SkRect* src, const SkRect& dst, const SkPaint*, 153 void onDrawBitmapRect(const SkBitmap&, const SkRect* src, const SkRect& dst, const SkPaint*,
154 SrcRectConstraint) override; 154 SrcRectConstraint) override;
155 void onDrawBitmapNine(const SkBitmap&, const SkIRect& center, const SkRect& dst, 155 void onDrawBitmapNine(const SkBitmap&, const SkIRect& center, const SkRect& dst,
156 const SkPaint*) override; 156 const SkPaint*) override;
157 void onDrawBitmapLattice(const SkBitmap&, const Lattice& lattice, const SkRe ct& dst, 157 void onDrawBitmapLattice(const SkBitmap&, const Lattice& lattice, const SkRe ct& dst,
158 const SkPaint*) override; 158 const SkPaint*) override;
159 159
160 private: 160 private:
161 SkPipeDeduper* fDeduper; 161 SkPipeDeduper* fDeduper;
162 SkWStream* fStream; 162 SkWStream* fStream;
163 163
164 friend class SkPipeWriter; 164 friend class SkPipeWriter;
165 165
166 typedef SkCanvas INHERITED; 166 typedef SkCanvas INHERITED;
167 }; 167 };
168 168
169 169
170 #endif 170 #endif
OLDNEW
« no previous file with comments | « src/pdf/SkPDFDevice.cpp ('k') | src/pipe/SkPipeCanvas.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698