OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2013 The Android Open Source Project | 2 * Copyright 2013 The Android Open Source Project |
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 "SkXfermodeImageFilter.h" | 8 #include "SkXfermodeImageFilter.h" |
9 #include "SkCanvas.h" | 9 #include "SkCanvas.h" |
10 #include "SkDevice.h" | 10 #include "SkDevice.h" |
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
205 if (!drawContext) { | 205 if (!drawContext) { |
206 return false; | 206 return false; |
207 } | 207 } |
208 | 208 |
209 SkMatrix matrix; | 209 SkMatrix matrix; |
210 matrix.setTranslate(SkIntToScalar(-bounds.left()), SkIntToScalar(-bounds.top
())); | 210 matrix.setTranslate(SkIntToScalar(-bounds.left()), SkIntToScalar(-bounds.top
())); |
211 drawContext->drawRect(GrClip::WideOpen(), paint, matrix, SkRect::Make(bounds
)); | 211 drawContext->drawRect(GrClip::WideOpen(), paint, matrix, SkRect::Make(bounds
)); |
212 | 212 |
213 offset->fX = bounds.left(); | 213 offset->fX = bounds.left(); |
214 offset->fY = bounds.top(); | 214 offset->fY = bounds.top(); |
215 WrapTexture(dst, bounds.width(), bounds.height(), result); | 215 GrWrapTextureInBitmap(dst, bounds.width(), bounds.height(), false, result); |
216 return true; | 216 return true; |
217 } | 217 } |
218 | 218 |
219 #endif | 219 #endif |
220 | 220 |
OLD | NEW |