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

Side by Side Diff: src/utils/SkShadowPaintFilterCanvas.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 | « src/utils/SkShadowPaintFilterCanvas.h ('k') | tools/android/SkAndroidSDKCanvas.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 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
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
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
OLDNEW
« no previous file with comments | « src/utils/SkShadowPaintFilterCanvas.h ('k') | tools/android/SkAndroidSDKCanvas.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698