OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2015 Google Inc. | 2 * Copyright 2015 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 "SkAndroidSDKCanvas.h" | 8 #include "SkAndroidSDKCanvas.h" |
9 | 9 |
10 #include "SkColorFilter.h" | 10 #include "SkColorFilter.h" |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 size_t count, | 117 size_t count, |
118 const SkPoint pts[], | 118 const SkPoint pts[], |
119 const SkPaint& paint) { | 119 const SkPaint& paint) { |
120 FILTER(paint); | 120 FILTER(paint); |
121 fProxyTarget->drawPoints(pMode, count, pts, filteredPaint); | 121 fProxyTarget->drawPoints(pMode, count, pts, filteredPaint); |
122 } | 122 } |
123 void SkAndroidSDKCanvas::onDrawOval(const SkRect& r, const SkPaint& paint) { | 123 void SkAndroidSDKCanvas::onDrawOval(const SkRect& r, const SkPaint& paint) { |
124 FILTER(paint); | 124 FILTER(paint); |
125 fProxyTarget->drawOval(r, filteredPaint); | 125 fProxyTarget->drawOval(r, filteredPaint); |
126 } | 126 } |
| 127 void SkAndroidSDKCanvas::onDrawArc(const SkRect& r, SkScalar startAngle, SkScala
r sweepAngle, |
| 128 bool useCenter, const SkPaint& paint) { |
| 129 FILTER(paint); |
| 130 fProxyTarget->drawArc(r, startAngle, sweepAngle, useCenter, filteredPaint); |
| 131 } |
127 void SkAndroidSDKCanvas::onDrawRect(const SkRect& r, const SkPaint& paint) { | 132 void SkAndroidSDKCanvas::onDrawRect(const SkRect& r, const SkPaint& paint) { |
128 FILTER(paint); | 133 FILTER(paint); |
129 fProxyTarget->drawRect(r, filteredPaint); | 134 fProxyTarget->drawRect(r, filteredPaint); |
130 } | 135 } |
131 void SkAndroidSDKCanvas::onDrawRRect(const SkRRect& r, const SkPaint& paint) { | 136 void SkAndroidSDKCanvas::onDrawRRect(const SkRRect& r, const SkPaint& paint) { |
132 FILTER(paint); | 137 FILTER(paint); |
133 fProxyTarget->drawRRect(r, filteredPaint); | 138 fProxyTarget->drawRRect(r, filteredPaint); |
134 } | 139 } |
135 void SkAndroidSDKCanvas::onDrawPath(const SkPath& path, const SkPaint& paint) { | 140 void SkAndroidSDKCanvas::onDrawPath(const SkPath& path, const SkPaint& paint) { |
136 FILTER(paint); | 141 FILTER(paint); |
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
354 SkRegion::Op op, | 359 SkRegion::Op op, |
355 ClipEdgeStyle style) { | 360 ClipEdgeStyle style) { |
356 fProxyTarget->clipPath(path, op, style); | 361 fProxyTarget->clipPath(path, op, style); |
357 } | 362 } |
358 | 363 |
359 void SkAndroidSDKCanvas::onClipRegion(const SkRegion& region, SkRegion::Op op) { | 364 void SkAndroidSDKCanvas::onClipRegion(const SkRegion& region, SkRegion::Op op) { |
360 fProxyTarget->clipRegion(region, op); | 365 fProxyTarget->clipRegion(region, op); |
361 } | 366 } |
362 | 367 |
363 void SkAndroidSDKCanvas::onDiscard() { fProxyTarget->discard(); } | 368 void SkAndroidSDKCanvas::onDiscard() { fProxyTarget->discard(); } |
OLD | NEW |