OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2013 Google Inc. | 2 * Copyright 2013 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 "SkBitmap.h" | 8 #include "SkBitmap.h" |
9 #include "SkComposeImageFilter.h" | 9 #include "SkComposeImageFilter.h" |
10 #include "SkFlattenableBuffers.h" | 10 #include "SkFlattenableBuffers.h" |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 | 45 |
46 if (!outer || !inner) { | 46 if (!outer || !inner) { |
47 return (outer ? outer : inner)->filterBounds(src, ctm, dst); | 47 return (outer ? outer : inner)->filterBounds(src, ctm, dst); |
48 } | 48 } |
49 | 49 |
50 SkIRect tmp; | 50 SkIRect tmp; |
51 return inner->filterBounds(src, ctm, &tmp) && | 51 return inner->filterBounds(src, ctm, &tmp) && |
52 outer->filterBounds(tmp, ctm, dst); | 52 outer->filterBounds(tmp, ctm, dst); |
53 } | 53 } |
54 | 54 |
55 SkComposeImageFilter::SkComposeImageFilter(SkFlattenableReadBuffer& buffer) : IN
HERITED(buffer) { | 55 SkComposeImageFilter::SkComposeImageFilter(SkFlattenableReadBuffer& buffer) |
| 56 : INHERITED(2, buffer) { |
56 } | 57 } |
OLD | NEW |