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

Side by Side Diff: src/core/SkLiteRecorder.cpp

Issue 2277053002: Add drawRegion() API to SkCanvas (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Added shader to test Created 4 years, 3 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
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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 48
49 void SkLiteRecorder::onDrawPaint(const SkPaint& paint) { 49 void SkLiteRecorder::onDrawPaint(const SkPaint& paint) {
50 fDL->drawPaint(paint); 50 fDL->drawPaint(paint);
51 } 51 }
52 void SkLiteRecorder::onDrawPath(const SkPath& path, const SkPaint& paint) { 52 void SkLiteRecorder::onDrawPath(const SkPath& path, const SkPaint& paint) {
53 fDL->drawPath(path, paint); 53 fDL->drawPath(path, paint);
54 } 54 }
55 void SkLiteRecorder::onDrawRect(const SkRect& rect, const SkPaint& paint) { 55 void SkLiteRecorder::onDrawRect(const SkRect& rect, const SkPaint& paint) {
56 fDL->drawRect(rect, paint); 56 fDL->drawRect(rect, paint);
57 } 57 }
58 void SkLiteRecorder::onDrawRegion(const SkRegion& region, const SkPaint& paint) {
59 fDL->drawRegion(region, paint);
60 }
58 void SkLiteRecorder::onDrawOval(const SkRect& oval, const SkPaint& paint) { 61 void SkLiteRecorder::onDrawOval(const SkRect& oval, const SkPaint& paint) {
59 fDL->drawOval(oval, paint); 62 fDL->drawOval(oval, paint);
60 } 63 }
61 void SkLiteRecorder::onDrawArc(const SkRect& oval, SkScalar startAngle, SkScalar sweepAngle, 64 void SkLiteRecorder::onDrawArc(const SkRect& oval, SkScalar startAngle, SkScalar sweepAngle,
62 bool useCenter, const SkPaint& paint) { 65 bool useCenter, const SkPaint& paint) {
63 fDL->drawArc(oval, startAngle, sweepAngle, useCenter, paint); 66 fDL->drawArc(oval, startAngle, sweepAngle, useCenter, paint);
64 } 67 }
65 void SkLiteRecorder::onDrawRRect(const SkRRect& rrect, const SkPaint& paint) { 68 void SkLiteRecorder::onDrawRRect(const SkRRect& rrect, const SkPaint& paint) {
66 fDL->drawRRect(rrect, paint); 69 fDL->drawRRect(rrect, paint);
67 } 70 }
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 } 188 }
186 189
187 void SkLiteRecorder::didTranslateZ(SkScalar dz) { 190 void SkLiteRecorder::didTranslateZ(SkScalar dz) {
188 fDL->translateZ(dz); 191 fDL->translateZ(dz);
189 } 192 }
190 void SkLiteRecorder::onDrawShadowedPicture(const SkPicture* picture, 193 void SkLiteRecorder::onDrawShadowedPicture(const SkPicture* picture,
191 const SkMatrix* matrix, 194 const SkMatrix* matrix,
192 const SkPaint* paint) { 195 const SkPaint* paint) {
193 fDL->drawShadowedPicture(picture, matrix, paint); 196 fDL->drawShadowedPicture(picture, matrix, paint);
194 } 197 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698