| OLD | NEW | 
|---|
| 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  Loading... | 
| 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  Loading... | 
| 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 } | 
| OLD | NEW | 
|---|