OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 19 matching lines...) Expand all Loading... |
30 #include "platform/graphics/InterpolationSpace.h" | 30 #include "platform/graphics/InterpolationSpace.h" |
31 #include "platform/graphics/paint/PaintRecord.h" | 31 #include "platform/graphics/paint/PaintRecord.h" |
32 #include "third_party/skia/include/core/SkRefCnt.h" | 32 #include "third_party/skia/include/core/SkRefCnt.h" |
33 | 33 |
34 class SkImageFilter; | 34 class SkImageFilter; |
35 | 35 |
36 namespace blink { | 36 namespace blink { |
37 | 37 |
38 class BoxReflection; | 38 class BoxReflection; |
39 class FilterEffect; | 39 class FilterEffect; |
| 40 class FloatRect; |
40 | 41 |
41 namespace SkiaImageFilterBuilder { | 42 namespace SkiaImageFilterBuilder { |
42 | 43 |
43 PLATFORM_EXPORT sk_sp<SkImageFilter> Build( | 44 PLATFORM_EXPORT sk_sp<SkImageFilter> Build( |
44 FilterEffect*, | 45 FilterEffect*, |
45 InterpolationSpace, | 46 InterpolationSpace, |
46 bool requires_pm_color_validation = true); | 47 bool requires_pm_color_validation = true); |
47 | 48 |
48 PLATFORM_EXPORT sk_sp<SkImageFilter> TransformInterpolationSpace( | 49 PLATFORM_EXPORT sk_sp<SkImageFilter> TransformInterpolationSpace( |
49 sk_sp<SkImageFilter> input, | 50 sk_sp<SkImageFilter> input, |
50 InterpolationSpace src_interpolation_space, | 51 InterpolationSpace src_interpolation_space, |
51 InterpolationSpace dst_interpolation_space); | 52 InterpolationSpace dst_interpolation_space); |
52 | 53 |
53 PLATFORM_EXPORT void PopulateSourceGraphicImageFilters( | 54 PLATFORM_EXPORT void PopulateSourceGraphicImageFilters( |
54 FilterEffect* source_graphic, | 55 FilterEffect* source_graphic, |
55 sk_sp<SkImageFilter> input, | 56 sk_sp<SkImageFilter> input, |
56 InterpolationSpace input_interpolation_space); | 57 InterpolationSpace input_interpolation_space); |
57 PLATFORM_EXPORT void BuildSourceGraphic(FilterEffect*, sk_sp<PaintRecord>); | 58 PLATFORM_EXPORT void BuildSourceGraphic(FilterEffect*, |
| 59 sk_sp<PaintRecord>, |
| 60 const FloatRect& record_bounds); |
58 | 61 |
59 PLATFORM_EXPORT sk_sp<SkImageFilter> BuildBoxReflectFilter( | 62 PLATFORM_EXPORT sk_sp<SkImageFilter> BuildBoxReflectFilter( |
60 const BoxReflection&, | 63 const BoxReflection&, |
61 sk_sp<SkImageFilter> input); | 64 sk_sp<SkImageFilter> input); |
62 | 65 |
63 } // namespace SkiaImageFilterBuilder | 66 } // namespace SkiaImageFilterBuilder |
64 } // namespace blink | 67 } // namespace blink |
65 | 68 |
66 #endif | 69 #endif |
OLD | NEW |