Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7)

Side by Side Diff: Source/core/platform/graphics/filters/custom/CustomFilterGlobalContext.cpp

Issue 99103006: Moving GraphicsContext and dependencies from core to platform. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Final patch - fixes Android Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698