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/CustomFilterCompiledProgram.h" | 32 #include "core/platform/graphics/filters/custom/CustomFilterCompiledProgram.h" |
33 | 33 |
34 #include "core/platform/graphics/filters/custom/CustomFilterGlobalContext.h" | |
35 | 34 |
36 namespace WebCore { | 35 namespace WebCore { |
37 | 36 |
38 CustomFilterCompiledProgram::CustomFilterCompiledProgram(PassRefPtr<GraphicsCont
ext3D> context, const String& validatedVertexShader, const String& validatedFrag
mentShader, CustomFilterProgramType programType) | 37 CustomFilterCompiledProgram::CustomFilterCompiledProgram(PassRefPtr<GraphicsCont
ext3D> context, const String& validatedVertexShader, const String& validatedFrag
mentShader, CustomFilterProgramType programType) |
39 : m_context(context) | 38 : m_context(context) |
40 , m_program(0) | 39 , m_program(0) |
41 , m_positionAttribLocation(-1) | 40 , m_positionAttribLocation(-1) |
42 , m_texAttribLocation(-1) | 41 , m_texAttribLocation(-1) |
43 , m_meshAttribLocation(-1) | 42 , m_meshAttribLocation(-1) |
44 , m_triangleAttribLocation(-1) | 43 , m_triangleAttribLocation(-1) |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 | 142 |
144 CustomFilterCompiledProgram::~CustomFilterCompiledProgram() | 143 CustomFilterCompiledProgram::~CustomFilterCompiledProgram() |
145 { | 144 { |
146 if (m_program) { | 145 if (m_program) { |
147 m_context->makeContextCurrent(); | 146 m_context->makeContextCurrent(); |
148 m_context->deleteProgram(m_program); | 147 m_context->deleteProgram(m_program); |
149 } | 148 } |
150 } | 149 } |
151 | 150 |
152 } // namespace WebCore | 151 } // namespace WebCore |
OLD | NEW |