OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Adobe Systems Incorporated. All rights reserved. | 2 * Copyright (C) 2012 Adobe Systems Incorporated. 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 | 8 * 1. Redistributions of source code must retain the above |
9 * copyright notice, this list of conditions and the following | 9 * copyright notice, this list of conditions and the following |
10 * disclaimer. | 10 * disclaimer. |
(...skipping 12 matching lines...) Expand all Loading... |
23 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 23 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR | 24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR |
25 * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF | 25 * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF |
26 * THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | 26 * THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
27 * SUCH DAMAGE. | 27 * SUCH DAMAGE. |
28 */ | 28 */ |
29 | 29 |
30 #include "config.h" | 30 #include "config.h" |
31 #include "core/platform/graphics/filters/custom/CustomFilterOperation.h" | 31 #include "core/platform/graphics/filters/custom/CustomFilterOperation.h" |
32 | 32 |
33 #include "core/platform/graphics/filters/FilterOperation.h" | |
34 #include "core/platform/graphics/filters/custom/CustomFilterProgram.h" | |
35 #include "platform/graphics/filters/custom/CustomFilterParameter.h" | 33 #include "platform/graphics/filters/custom/CustomFilterParameter.h" |
36 | 34 |
37 namespace WebCore { | 35 namespace WebCore { |
38 | 36 |
39 CustomFilterOperation::CustomFilterOperation(PassRefPtr<CustomFilterProgram> pro
gram, const CustomFilterParameterList& sortedParameters, unsigned meshRows, unsi
gned meshColumns, CustomFilterMeshType meshType) | 37 CustomFilterOperation::CustomFilterOperation(PassRefPtr<CustomFilterProgram> pro
gram, const CustomFilterParameterList& sortedParameters, unsigned meshRows, unsi
gned meshColumns, CustomFilterMeshType meshType) |
40 : FilterOperation(CUSTOM) | 38 : FilterOperation(CUSTOM) |
41 , m_program(program) | 39 , m_program(program) |
42 , m_parameters(sortedParameters) | 40 , m_parameters(sortedParameters) |
43 , m_meshRows(meshRows) | 41 , m_meshRows(meshRows) |
44 , m_meshColumns(meshColumns) | 42 , m_meshColumns(meshColumns) |
(...skipping 22 matching lines...) Expand all Loading... |
67 || m_meshType != fromOp->m_meshType) | 65 || m_meshType != fromOp->m_meshType) |
68 return const_cast<CustomFilterOperation*>(this); | 66 return const_cast<CustomFilterOperation*>(this); |
69 | 67 |
70 CustomFilterParameterList animatedParameters; | 68 CustomFilterParameterList animatedParameters; |
71 m_parameters.blend(fromOp->m_parameters, progress, animatedParameters); | 69 m_parameters.blend(fromOp->m_parameters, progress, animatedParameters); |
72 return CustomFilterOperation::create(m_program, animatedParameters, m_meshRo
ws, m_meshColumns, m_meshType); | 70 return CustomFilterOperation::create(m_program, animatedParameters, m_meshRo
ws, m_meshColumns, m_meshType); |
73 } | 71 } |
74 | 72 |
75 } // namespace WebCore | 73 } // namespace WebCore |
76 | 74 |
OLD | NEW |