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 "SkReadBuffer.h" | 10 #include "SkReadBuffer.h" |
(...skipping 22 matching lines...) Expand all Loading... |
33 SkImageFilter* inner = getInput(1); | 33 SkImageFilter* inner = getInput(1); |
34 | 34 |
35 SkIRect tmp; | 35 SkIRect tmp; |
36 return inner->filterBounds(src, ctm, &tmp) && outer->filterBounds(tmp, ctm,
dst); | 36 return inner->filterBounds(src, ctm, &tmp) && outer->filterBounds(tmp, ctm,
dst); |
37 } | 37 } |
38 | 38 |
39 SkFlattenable* SkComposeImageFilter::CreateProc(SkReadBuffer& buffer) { | 39 SkFlattenable* SkComposeImageFilter::CreateProc(SkReadBuffer& buffer) { |
40 SK_IMAGEFILTER_UNFLATTEN_COMMON(common, 2); | 40 SK_IMAGEFILTER_UNFLATTEN_COMMON(common, 2); |
41 return SkComposeImageFilter::Create(common.getInput(0), common.getInput(1)); | 41 return SkComposeImageFilter::Create(common.getInput(0), common.getInput(1)); |
42 } | 42 } |
43 | |
44 #ifdef SK_SUPPORT_LEGACY_DEEPFLATTENING | |
45 SkComposeImageFilter::SkComposeImageFilter(SkReadBuffer& buffer) | |
46 : INHERITED(2, buffer) { | |
47 } | |
48 #endif | |
OLD | NEW |