OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |