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 13 matching lines...) Expand all Loading... |
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 | 31 |
32 #include "core/platform/graphics/filters/custom/CustomFilterProgram.h" | 32 #include "core/platform/graphics/filters/custom/CustomFilterProgram.h" |
33 | 33 |
34 #include "core/platform/graphics/filters/custom/CustomFilterCompiledProgram.h" | |
35 #include "core/platform/graphics/filters/custom/CustomFilterProgramClient.h" | 34 #include "core/platform/graphics/filters/custom/CustomFilterProgramClient.h" |
36 #include "core/platform/graphics/filters/custom/CustomFilterProgramInfo.h" | 35 #include "core/platform/graphics/filters/custom/CustomFilterProgramInfo.h" |
37 | 36 |
38 namespace WebCore { | 37 namespace WebCore { |
39 | 38 |
40 CustomFilterProgram::CustomFilterProgram(CustomFilterProgramType programType, co
nst CustomFilterProgramMixSettings& mixSettings, CustomFilterMeshType meshType) | 39 CustomFilterProgram::CustomFilterProgram(CustomFilterProgramType programType, co
nst CustomFilterProgramMixSettings& mixSettings, CustomFilterMeshType meshType) |
41 : m_programType(programType) | 40 : m_programType(programType) |
42 , m_mixSettings(mixSettings) | 41 , m_mixSettings(mixSettings) |
43 , m_meshType(meshType) | 42 , m_meshType(meshType) |
44 { | 43 { |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 iter->key->notifyCustomFilterProgramLoaded(this); | 78 iter->key->notifyCustomFilterProgramLoaded(this); |
80 } | 79 } |
81 | 80 |
82 CustomFilterProgramInfo CustomFilterProgram::programInfo() const | 81 CustomFilterProgramInfo CustomFilterProgram::programInfo() const |
83 { | 82 { |
84 ASSERT(isLoaded()); | 83 ASSERT(isLoaded()); |
85 return CustomFilterProgramInfo(vertexShaderString(), fragmentShaderString(),
m_programType, m_mixSettings, m_meshType); | 84 return CustomFilterProgramInfo(vertexShaderString(), fragmentShaderString(),
m_programType, m_mixSettings, m_meshType); |
86 } | 85 } |
87 | 86 |
88 } // namespace WebCore | 87 } // namespace WebCore |
OLD | NEW |