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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 fDL->drawBitmap(bm, x,y, paint); | 117 fDL->drawBitmap(bm, x,y, paint); |
118 } | 118 } |
119 void SkLiteRecorder::onDrawBitmapNine(const SkBitmap& bm, | 119 void SkLiteRecorder::onDrawBitmapNine(const SkBitmap& bm, |
120 const SkIRect& center, const SkRect& dst, | 120 const SkIRect& center, const SkRect& dst, |
121 const SkPaint* paint) { | 121 const SkPaint* paint) { |
122 fDL->drawBitmapNine(bm, center, dst, paint); | 122 fDL->drawBitmapNine(bm, center, dst, paint); |
123 } | 123 } |
124 void SkLiteRecorder::onDrawBitmapRect(const SkBitmap& bm, | 124 void SkLiteRecorder::onDrawBitmapRect(const SkBitmap& bm, |
125 const SkRect* src, const SkRect& dst, | 125 const SkRect* src, const SkRect& dst, |
126 const SkPaint* paint, SrcRectConstraint co
nstraint) { | 126 const SkPaint* paint, SrcRectConstraint co
nstraint) { |
127 fDL->drawBitmapRect(bm, src, dst, paint, constraint == kStrict_SrcRectConstr
aint); | 127 fDL->drawBitmapRect(bm, src, dst, paint, constraint); |
128 } | 128 } |
129 | 129 |
130 void SkLiteRecorder::onDrawImage(const SkImage* img, | 130 void SkLiteRecorder::onDrawImage(const SkImage* img, |
131 SkScalar x, SkScalar y, | 131 SkScalar x, SkScalar y, |
132 const SkPaint* paint) { | 132 const SkPaint* paint) { |
133 fDL->drawImage(img, x,y, paint); | 133 fDL->drawImage(img, x,y, paint); |
134 } | 134 } |
135 void SkLiteRecorder::onDrawImageNine(const SkImage* img, | 135 void SkLiteRecorder::onDrawImageNine(const SkImage* img, |
136 const SkIRect& center, const SkRect& dst, | 136 const SkIRect& center, const SkRect& dst, |
137 const SkPaint* paint) { | 137 const SkPaint* paint) { |
138 fDL->drawImageNine(img, center, dst, paint); | 138 fDL->drawImageNine(img, center, dst, paint); |
139 } | 139 } |
140 void SkLiteRecorder::onDrawImageRect(const SkImage* img, | 140 void SkLiteRecorder::onDrawImageRect(const SkImage* img, |
141 const SkRect* src, const SkRect& dst, | 141 const SkRect* src, const SkRect& dst, |
142 const SkPaint* paint, SrcRectConstraint co
nstraint) { | 142 const SkPaint* paint, SrcRectConstraint co
nstraint) { |
143 fDL->drawImageRect(img, src, dst, paint, constraint == kStrict_SrcRectConstr
aint); | 143 fDL->drawImageRect(img, src, dst, paint, constraint); |
144 } | 144 } |
145 void SkLiteRecorder::onDrawImageLattice(const SkImage* img, | 145 void SkLiteRecorder::onDrawImageLattice(const SkImage* img, |
146 const SkCanvas::Lattice& lattice, const
SkRect& dst, | 146 const SkCanvas::Lattice& lattice, const
SkRect& dst, |
147 const SkPaint* paint) { | 147 const SkPaint* paint) { |
148 fDL->drawImageLattice(img, lattice, dst, paint); | 148 fDL->drawImageLattice(img, lattice, dst, paint); |
149 } | 149 } |
150 | 150 |
151 | 151 |
152 void SkLiteRecorder::onDrawPatch(const SkPoint cubics[12], | 152 void SkLiteRecorder::onDrawPatch(const SkPoint cubics[12], |
153 const SkColor colors[4], const SkPoint texCoord
s[4], | 153 const SkColor colors[4], const SkPoint texCoord
s[4], |
(...skipping 25 matching lines...) Expand all 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 |