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

Side by Side Diff: tools/android/SkAndroidSDKCanvas.cpp

Issue 2257023003: Plumb drawArc to SkDevice (Closed) Base URL: https://chromium.googlesource.com/skia.git@distance
Patch Set: Address comments Created 4 years, 4 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 | « tools/android/SkAndroidSDKCanvas.h ('k') | tools/debugger/SkDebugCanvas.h » ('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 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
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
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(); }
OLDNEW
« no previous file with comments | « tools/android/SkAndroidSDKCanvas.h ('k') | tools/debugger/SkDebugCanvas.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698