| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2011 Apple Inc. 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 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 #include "config.h" | 26 #include "config.h" |
| 27 | 27 |
| 28 #if ENABLE(WEBGL) | 28 #if ENABLE(WEBGL) |
| 29 | 29 |
| 30 #include "WebGLContextGroup.h" | 30 #include "WebGLContextGroup.h" |
| 31 | 31 |
| 32 #include "GraphicsContext3D.h" | 32 #include "GraphicsContext3D.h" |
| 33 #include "WebGLRenderingContext.h" | 33 #include "WebGLRenderingContext.h" |
| 34 #include "WebGLSharedObject.h" | 34 #include "WebGLSharedObject.h" |
| 35 | 35 |
| 36 #if PLATFORM(QT) | |
| 37 #undef emit | |
| 38 #endif | |
| 39 | |
| 40 namespace WebCore { | 36 namespace WebCore { |
| 41 | 37 |
| 42 PassRefPtr<WebGLContextGroup> WebGLContextGroup::create() | 38 PassRefPtr<WebGLContextGroup> WebGLContextGroup::create() |
| 43 { | 39 { |
| 44 RefPtr<WebGLContextGroup> contextGroup = adoptRef(new WebGLContextGroup()); | 40 RefPtr<WebGLContextGroup> contextGroup = adoptRef(new WebGLContextGroup()); |
| 45 return contextGroup.release(); | 41 return contextGroup.release(); |
| 46 } | 42 } |
| 47 | 43 |
| 48 WebGLContextGroup::WebGLContextGroup() | 44 WebGLContextGroup::WebGLContextGroup() |
| 49 { | 45 { |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 { | 93 { |
| 98 for (HashSet<WebGLRenderingContext*>::iterator it = m_contexts.begin(); it !
= m_contexts.end(); ++it) | 94 for (HashSet<WebGLRenderingContext*>::iterator it = m_contexts.begin(); it !
= m_contexts.end(); ++it) |
| 99 (*it)->loseContextImpl(mode); | 95 (*it)->loseContextImpl(mode); |
| 100 | 96 |
| 101 detachAndRemoveAllObjects(); | 97 detachAndRemoveAllObjects(); |
| 102 } | 98 } |
| 103 | 99 |
| 104 } // namespace WebCore | 100 } // namespace WebCore |
| 105 | 101 |
| 106 #endif // ENABLE(WEBGL) | 102 #endif // ENABLE(WEBGL) |
| OLD | NEW |