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

Side by Side Diff: src/core/SkLiteRecorder.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/core/SkLiteRecorder.h ('k') | src/core/SkPictureFlat.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 "SkLiteDL.h" 8 #include "SkLiteDL.h"
9 #include "SkLiteRecorder.h" 9 #include "SkLiteRecorder.h"
10 #include "SkSurface.h" 10 #include "SkSurface.h"
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 47
48 void SkLiteRecorder::onDrawPaint(const SkPaint& paint) { 48 void SkLiteRecorder::onDrawPaint(const SkPaint& paint) {
49 fDL->drawPaint(paint); 49 fDL->drawPaint(paint);
50 } 50 }
51 void SkLiteRecorder::onDrawPath(const SkPath& path, const SkPaint& paint) { 51 void SkLiteRecorder::onDrawPath(const SkPath& path, const SkPaint& paint) {
52 fDL->drawPath(path, paint); 52 fDL->drawPath(path, paint);
53 } 53 }
54 void SkLiteRecorder::onDrawRect(const SkRect& rect, const SkPaint& paint) { 54 void SkLiteRecorder::onDrawRect(const SkRect& rect, const SkPaint& paint) {
55 fDL->drawRect(rect, paint); 55 fDL->drawRect(rect, paint);
56 } 56 }
57 void SkLiteRecorder::onDrawOval(const SkRect& oval, const SkPaint& paint) { 57 void SkLiteRecorder::onDrawOval(const SkRect& oval, const SkPaint& paint) {
58 fDL->drawOval(oval, paint); 58 fDL->drawOval(oval, paint);
59 } 59 }
60 void SkLiteRecorder::onDrawArc(const SkRect& oval, SkScalar startAngle, SkScalar sweepAngle,
61 bool useCenter, const SkPaint& paint) {
62 fDL->drawArc(oval, startAngle, sweepAngle, useCenter, paint);
63 }
60 void SkLiteRecorder::onDrawRRect(const SkRRect& rrect, const SkPaint& paint) { 64 void SkLiteRecorder::onDrawRRect(const SkRRect& rrect, const SkPaint& paint) {
61 fDL->drawRRect(rrect, paint); 65 fDL->drawRRect(rrect, paint);
62 } 66 }
63 void SkLiteRecorder::onDrawDRRect(const SkRRect& out, const SkRRect& in, const S kPaint& paint) { 67 void SkLiteRecorder::onDrawDRRect(const SkRRect& out, const SkRRect& in, const S kPaint& paint) {
64 fDL->drawDRRect(out, in, paint); 68 fDL->drawDRRect(out, in, paint);
65 } 69 }
66 70
67 void SkLiteRecorder::onDrawDrawable(SkDrawable* drawable, const SkMatrix* matrix ) { 71 void SkLiteRecorder::onDrawDrawable(SkDrawable* drawable, const SkMatrix* matrix ) {
68 fDL->drawDrawable(drawable, matrix); 72 fDL->drawDrawable(drawable, matrix);
69 } 73 }
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 } 184 }
181 185
182 void SkLiteRecorder::didTranslateZ(SkScalar dz) { 186 void SkLiteRecorder::didTranslateZ(SkScalar dz) {
183 fDL->translateZ(dz); 187 fDL->translateZ(dz);
184 } 188 }
185 void SkLiteRecorder::onDrawShadowedPicture(const SkPicture* picture, 189 void SkLiteRecorder::onDrawShadowedPicture(const SkPicture* picture,
186 const SkMatrix* matrix, 190 const SkMatrix* matrix,
187 const SkPaint* paint) { 191 const SkPaint* paint) {
188 fDL->drawShadowedPicture(picture, matrix, paint); 192 fDL->drawShadowedPicture(picture, matrix, paint);
189 } 193 }
OLDNEW
« no previous file with comments | « src/core/SkLiteRecorder.h ('k') | src/core/SkPictureFlat.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698