OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2012 The Android Open Source Project | 2 * Copyright 2012 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 "SkBitmapSource.h" | 8 #include "SkBitmapSource.h" |
9 #include "SkDevice.h" | 9 #include "SkDevice.h" |
10 #include "SkCanvas.h" | 10 #include "SkCanvas.h" |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 | 76 |
77 *result = device.get()->accessBitmap(false); | 77 *result = device.get()->accessBitmap(false); |
78 offset->fX = dstIRect.fLeft; | 78 offset->fX = dstIRect.fLeft; |
79 offset->fY = dstIRect.fTop; | 79 offset->fY = dstIRect.fTop; |
80 return true; | 80 return true; |
81 } | 81 } |
82 | 82 |
83 void SkBitmapSource::computeFastBounds(const SkRect&, SkRect* dst) const { | 83 void SkBitmapSource::computeFastBounds(const SkRect&, SkRect* dst) const { |
84 *dst = fDstRect; | 84 *dst = fDstRect; |
85 } | 85 } |
| 86 |
| 87 bool SkBitmapSource::onFilterBounds(const SkIRect& src, const SkMatrix& ctm, |
| 88 SkIRect* dst) const { |
| 89 *dst = src; |
| 90 return true; |
| 91 } |
OLD | NEW |