OLD | NEW |
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 #include "SkPathEffect.h" | 8 #include "SkPathEffect.h" |
9 #include "SkShadowPaintFilterCanvas.h" | 9 #include "SkShadowPaintFilterCanvas.h" |
10 | 10 |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 this->INHERITED::onDrawDRRect(outer, inner, paint); | 96 this->INHERITED::onDrawDRRect(outer, inner, paint); |
97 this->restore(); | 97 this->restore(); |
98 } | 98 } |
99 | 99 |
100 void SkShadowPaintFilterCanvas::onDrawOval(const SkRect &rect, const SkPaint &pa
int) { | 100 void SkShadowPaintFilterCanvas::onDrawOval(const SkRect &rect, const SkPaint &pa
int) { |
101 this->updateMatrix(); | 101 this->updateMatrix(); |
102 this->INHERITED::onDrawOval(rect, paint); | 102 this->INHERITED::onDrawOval(rect, paint); |
103 this->restore(); | 103 this->restore(); |
104 } | 104 } |
105 | 105 |
| 106 void SkShadowPaintFilterCanvas::onDrawArc(const SkRect &rect, SkScalar startAngl
e, |
| 107 SkScalar sweepAngle, bool useCenter, |
| 108 const SkPaint &paint) { |
| 109 this->updateMatrix(); |
| 110 this->INHERITED::onDrawArc(rect, startAngle, sweepAngle, useCenter, paint); |
| 111 this->restore(); |
| 112 } |
| 113 |
106 void SkShadowPaintFilterCanvas::onDrawPath(const SkPath &path, const SkPaint &pa
int) { | 114 void SkShadowPaintFilterCanvas::onDrawPath(const SkPath &path, const SkPaint &pa
int) { |
107 this->updateMatrix(); | 115 this->updateMatrix(); |
108 this->INHERITED::onDrawPath(path, paint); | 116 this->INHERITED::onDrawPath(path, paint); |
109 this->restore(); | 117 this->restore(); |
110 } | 118 } |
111 | 119 |
112 void SkShadowPaintFilterCanvas::onDrawBitmap(const SkBitmap &bm, SkScalar left,
SkScalar top, | 120 void SkShadowPaintFilterCanvas::onDrawBitmap(const SkBitmap &bm, SkScalar left,
SkScalar top, |
113 const SkPaint *paint) { | 121 const SkPaint *paint) { |
114 this->updateMatrix(); | 122 this->updateMatrix(); |
115 this->INHERITED::onDrawBitmap(bm, left, top, paint); | 123 this->INHERITED::onDrawBitmap(bm, left, top, paint); |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
212 } | 220 } |
213 | 221 |
214 void SkShadowPaintFilterCanvas::onDrawTextBlob(const SkTextBlob *blob, SkScalar
x, SkScalar y, | 222 void SkShadowPaintFilterCanvas::onDrawTextBlob(const SkTextBlob *blob, SkScalar
x, SkScalar y, |
215 const SkPaint &paint) { | 223 const SkPaint &paint) { |
216 this->updateMatrix(); | 224 this->updateMatrix(); |
217 this->INHERITED::onDrawTextBlob(blob, x, y, paint); | 225 this->INHERITED::onDrawTextBlob(blob, x, y, paint); |
218 this->restore(); | 226 this->restore(); |
219 } | 227 } |
220 | 228 |
221 #endif | 229 #endif |
OLD | NEW |