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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 fDL->drawPosTextH(text, bytes, xs, y, paint); | 96 fDL->drawPosTextH(text, bytes, xs, y, paint); |
97 } | 97 } |
98 void SkLiteRecorder::onDrawTextOnPath(const void* text, size_t bytes, | 98 void SkLiteRecorder::onDrawTextOnPath(const void* text, size_t bytes, |
99 const SkPath& path, const SkMatrix* matrix
, | 99 const SkPath& path, const SkMatrix* matrix
, |
100 const SkPaint& paint) { | 100 const SkPaint& paint) { |
101 fDL->drawTextOnPath(text, bytes, path, matrix, paint); | 101 fDL->drawTextOnPath(text, bytes, path, matrix, paint); |
102 } | 102 } |
103 void SkLiteRecorder::onDrawTextRSXform(const void* text, size_t bytes, | 103 void SkLiteRecorder::onDrawTextRSXform(const void* text, size_t bytes, |
104 const SkRSXform xform[], const SkRect* cu
ll, | 104 const SkRSXform xform[], const SkRect* cu
ll, |
105 const SkPaint& paint) { | 105 const SkPaint& paint) { |
106 fDL->drawTextRSXForm(text, bytes, xform, cull, paint); | 106 fDL->drawTextRSXform(text, bytes, xform, cull, paint); |
107 } | 107 } |
108 void SkLiteRecorder::onDrawTextBlob(const SkTextBlob* blob, | 108 void SkLiteRecorder::onDrawTextBlob(const SkTextBlob* blob, |
109 SkScalar x, SkScalar y, | 109 SkScalar x, SkScalar y, |
110 const SkPaint& paint) { | 110 const SkPaint& paint) { |
111 fDL->drawTextBlob(blob, x,y, paint); | 111 fDL->drawTextBlob(blob, x,y, paint); |
112 } | 112 } |
113 | 113 |
114 void SkLiteRecorder::onDrawBitmap(const SkBitmap& bm, | 114 void SkLiteRecorder::onDrawBitmap(const SkBitmap& bm, |
115 SkScalar x, SkScalar y, | 115 SkScalar x, SkScalar y, |
116 const SkPaint* paint) { | 116 const SkPaint* paint) { |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 } | 179 } |
180 | 180 |
181 void SkLiteRecorder::didTranslateZ(SkScalar dz) { | 181 void SkLiteRecorder::didTranslateZ(SkScalar dz) { |
182 fDL->translateZ(dz); | 182 fDL->translateZ(dz); |
183 } | 183 } |
184 void SkLiteRecorder::onDrawShadowedPicture(const SkPicture* picture, | 184 void SkLiteRecorder::onDrawShadowedPicture(const SkPicture* picture, |
185 const SkMatrix* matrix, | 185 const SkMatrix* matrix, |
186 const SkPaint* paint) { | 186 const SkPaint* paint) { |
187 fDL->drawShadowedPicture(picture, matrix, paint); | 187 fDL->drawShadowedPicture(picture, matrix, paint); |
188 } | 188 } |
OLD | NEW |