| 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 "SkPictureImageFilter.h" | 8 #include "SkPictureImageFilter.h" |
| 9 #include "SkDevice.h" | 9 #include "SkDevice.h" |
| 10 #include "SkCanvas.h" | 10 #include "SkCanvas.h" |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 } | 64 } |
| 65 | 65 |
| 66 SkCanvas canvas(device.get()); | 66 SkCanvas canvas(device.get()); |
| 67 SkPaint paint; | 67 SkPaint paint; |
| 68 | 68 |
| 69 canvas.translate(-SkIntToScalar(bounds.fLeft), -SkIntToScalar(bounds.fTop)); | 69 canvas.translate(-SkIntToScalar(bounds.fLeft), -SkIntToScalar(bounds.fTop)); |
| 70 canvas.concat(matrix); | 70 canvas.concat(matrix); |
| 71 canvas.drawPicture(*fPicture); | 71 canvas.drawPicture(*fPicture); |
| 72 | 72 |
| 73 *result = device.get()->accessBitmap(false); | 73 *result = device.get()->accessBitmap(false); |
| 74 offset->fX += bounds.fLeft; | 74 offset->fX = bounds.fLeft; |
| 75 offset->fY += bounds.fTop; | 75 offset->fY = bounds.fTop; |
| 76 return true; | 76 return true; |
| 77 } | 77 } |
| OLD | NEW |