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

Side by Side Diff: src/utils/SkDeferredCanvas.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/utils/SkCanvasStateUtils.cpp ('k') | src/utils/SkDeferredCanvas.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 /* 2 /*
3 * Copyright 2016 Google Inc. 3 * Copyright 2016 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 8
9 #ifndef SkDeferredCanvas_DEFINED 9 #ifndef SkDeferredCanvas_DEFINED
10 #define SkDeferredCanvas_DEFINED 10 #define SkDeferredCanvas_DEFINED
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 void onDrawVertices(VertexMode vmode, int vertexCount, 79 void onDrawVertices(VertexMode vmode, int vertexCount,
80 const SkPoint vertices[], const SkPoint texs[], 80 const SkPoint vertices[], const SkPoint texs[],
81 const SkColor colors[], SkXfermode* xmode, 81 const SkColor colors[], SkXfermode* xmode,
82 const uint16_t indices[], int indexCount, 82 const uint16_t indices[], int indexCount,
83 const SkPaint&) override; 83 const SkPaint&) override;
84 void onDrawAtlas(const SkImage* image, const SkRSXform xform[], 84 void onDrawAtlas(const SkImage* image, const SkRSXform xform[],
85 const SkRect rects[], const SkColor colors[], 85 const SkRect rects[], const SkColor colors[],
86 int count, SkXfermode::Mode mode, 86 int count, SkXfermode::Mode mode,
87 const SkRect* cull, const SkPaint* paint) override; 87 const SkRect* cull, const SkPaint* paint) override;
88 88
89 void onClipRect(const SkRect&, SkRegion::Op, ClipEdgeStyle) override; 89 void onClipRect(const SkRect&, ClipOp, ClipEdgeStyle) override;
90 void onClipRRect(const SkRRect&, SkRegion::Op, ClipEdgeStyle) override; 90 void onClipRRect(const SkRRect&, ClipOp, ClipEdgeStyle) override;
91 void onClipPath(const SkPath&, SkRegion::Op, ClipEdgeStyle) override; 91 void onClipPath(const SkPath&, ClipOp, ClipEdgeStyle) override;
92 void onClipRegion(const SkRegion&, SkRegion::Op) override; 92 void onClipRegion(const SkRegion&, ClipOp) override;
93 93
94 void onDrawDrawable(SkDrawable*, const SkMatrix*) override; 94 void onDrawDrawable(SkDrawable*, const SkMatrix*) override;
95 void onDrawPicture(const SkPicture*, const SkMatrix*, const SkPaint*) overri de; 95 void onDrawPicture(const SkPicture*, const SkMatrix*, const SkPaint*) overri de;
96 void onDrawAnnotation(const SkRect&, const char[], SkData*) override; 96 void onDrawAnnotation(const SkRect&, const char[], SkData*) override;
97 97
98 class Iter; 98 class Iter;
99 99
100 private: 100 private:
101 SkCanvas* fCanvas; 101 SkCanvas* fCanvas;
102 102
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 void flush_translate(SkScalar* x, SkScalar* y, const SkRect& bounds, const S kPaint* = nullptr); 139 void flush_translate(SkScalar* x, SkScalar* y, const SkRect& bounds, const S kPaint* = nullptr);
140 void flush_check(SkRect* bounds, const SkPaint*, unsigned flags = 0); 140 void flush_check(SkRect* bounds, const SkPaint*, unsigned flags = 0);
141 141
142 void internal_flush_translate(SkScalar* x, SkScalar* y, const SkRect* bounds OrNull); 142 void internal_flush_translate(SkScalar* x, SkScalar* y, const SkRect* bounds OrNull);
143 143
144 typedef SkCanvas INHERITED; 144 typedef SkCanvas INHERITED;
145 }; 145 };
146 146
147 147
148 #endif 148 #endif
OLDNEW
« no previous file with comments | « src/utils/SkCanvasStateUtils.cpp ('k') | src/utils/SkDeferredCanvas.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698