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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 | 103 |
104 canvas.translate(-SkIntToScalar(bounds.fLeft), -SkIntToScalar(bounds.fTop)); | 104 canvas.translate(-SkIntToScalar(bounds.fLeft), -SkIntToScalar(bounds.fTop)); |
105 canvas.concat(ctx.ctm()); | 105 canvas.concat(ctx.ctm()); |
106 canvas.drawPicture(fPicture); | 106 canvas.drawPicture(fPicture); |
107 | 107 |
108 *result = device.get()->accessBitmap(false); | 108 *result = device.get()->accessBitmap(false); |
109 offset->fX = bounds.fLeft; | 109 offset->fX = bounds.fLeft; |
110 offset->fY = bounds.fTop; | 110 offset->fY = bounds.fTop; |
111 return true; | 111 return true; |
112 } | 112 } |
| 113 |
| 114 bool SkPictureImageFilter::onFilterBounds(const SkIRect& src, const SkMatrix& ct
m, |
| 115 SkIRect* dst) const { |
| 116 *dst = src; |
| 117 return true; |
| 118 } |
| 119 |
OLD | NEW |