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/CustomFilterGlobalContext.h" | 32 #include "core/platform/graphics/filters/custom/CustomFilterGlobalContext.h" |
33 | 33 |
34 #include "core/platform/graphics/GraphicsContext3D.h" | |
35 #include "core/platform/graphics/filters/custom/CustomFilterValidatedProgram.h" | 34 #include "core/platform/graphics/filters/custom/CustomFilterValidatedProgram.h" |
| 35 #include "platform/graphics/GraphicsContext3D.h" |
36 | 36 |
37 namespace WebCore { | 37 namespace WebCore { |
38 | 38 |
39 CustomFilterGlobalContext::CustomFilterGlobalContext() | 39 CustomFilterGlobalContext::CustomFilterGlobalContext() |
40 { | 40 { |
41 } | 41 } |
42 | 42 |
43 CustomFilterGlobalContext::~CustomFilterGlobalContext() | 43 CustomFilterGlobalContext::~CustomFilterGlobalContext() |
44 { | 44 { |
45 for (CustomFilterValidatedProgramsMap::iterator iter = m_programs.begin(); i
ter != m_programs.end(); ++iter) | 45 for (CustomFilterValidatedProgramsMap::iterator iter = m_programs.begin(); i
ter != m_programs.end(); ++iter) |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 m_programs.remove(iter); | 104 m_programs.remove(iter); |
105 | 105 |
106 #ifndef NDEBUG | 106 #ifndef NDEBUG |
107 // Check that there's no way we could have the same program under a differen
t key. | 107 // Check that there's no way we could have the same program under a differen
t key. |
108 for (iter = m_programs.begin(); iter != m_programs.end(); ++iter) | 108 for (iter = m_programs.begin(); iter != m_programs.end(); ++iter) |
109 ASSERT(iter->value != program); | 109 ASSERT(iter->value != program); |
110 #endif | 110 #endif |
111 } | 111 } |
112 | 112 |
113 } // namespace WebCore | 113 } // namespace WebCore |
OLD | NEW |