| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2009 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 12 matching lines...) Expand all Loading... |
| 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 24 */ | 24 */ |
| 25 | 25 |
| 26 #include "config.h" | 26 #include "config.h" |
| 27 | 27 |
| 28 #include "WebGLRenderingContext.h" | 28 #include "WebGLRenderingContext.h" |
| 29 | 29 |
| 30 #include "CheckedInt.h" | 30 #include "CheckedInt.h" |
| 31 #include "EXTDrawBuffers.h" | 31 #include "EXTDrawBuffers.h" |
| 32 #include "EXTTextureFilterAnisotropic.h" | 32 #include "EXTTextureFilterAnisotropic.h" |
| 33 #include "ExceptionCode.h" | |
| 34 #include "HTMLCanvasElement.h" | 33 #include "HTMLCanvasElement.h" |
| 35 #include "HTMLImageElement.h" | 34 #include "HTMLImageElement.h" |
| 36 #include "HTMLVideoElement.h" | 35 #include "HTMLVideoElement.h" |
| 37 #include "ImageData.h" | 36 #include "ImageData.h" |
| 38 #include "OESElementIndexUint.h" | 37 #include "OESElementIndexUint.h" |
| 39 #include "OESStandardDerivatives.h" | 38 #include "OESStandardDerivatives.h" |
| 40 #include "OESTextureFloat.h" | 39 #include "OESTextureFloat.h" |
| 41 #include "OESTextureHalfFloat.h" | 40 #include "OESTextureHalfFloat.h" |
| 42 #include "OESVertexArrayObject.h" | 41 #include "OESVertexArrayObject.h" |
| 43 #include "WebGLActiveInfo.h" | 42 #include "WebGLActiveInfo.h" |
| 44 #include "WebGLBuffer.h" | 43 #include "WebGLBuffer.h" |
| 45 #include "WebGLCompressedTextureATC.h" | 44 #include "WebGLCompressedTextureATC.h" |
| 46 #include "WebGLCompressedTexturePVRTC.h" | 45 #include "WebGLCompressedTexturePVRTC.h" |
| 47 #include "WebGLCompressedTextureS3TC.h" | 46 #include "WebGLCompressedTextureS3TC.h" |
| 48 #include "WebGLContextAttributes.h" | 47 #include "WebGLContextAttributes.h" |
| 49 #include "WebGLContextEvent.h" | 48 #include "WebGLContextEvent.h" |
| 50 #include "WebGLContextGroup.h" | 49 #include "WebGLContextGroup.h" |
| 51 #include "WebGLDebugRendererInfo.h" | 50 #include "WebGLDebugRendererInfo.h" |
| 52 #include "WebGLDebugShaders.h" | 51 #include "WebGLDebugShaders.h" |
| 53 #include "WebGLDepthTexture.h" | 52 #include "WebGLDepthTexture.h" |
| 54 #include "WebGLFramebuffer.h" | 53 #include "WebGLFramebuffer.h" |
| 55 #include "WebGLLoseContext.h" | 54 #include "WebGLLoseContext.h" |
| 56 #include "WebGLProgram.h" | 55 #include "WebGLProgram.h" |
| 57 #include "WebGLRenderbuffer.h" | 56 #include "WebGLRenderbuffer.h" |
| 58 #include "WebGLShader.h" | 57 #include "WebGLShader.h" |
| 59 #include "WebGLShaderPrecisionFormat.h" | 58 #include "WebGLShaderPrecisionFormat.h" |
| 60 #include "WebGLTexture.h" | 59 #include "WebGLTexture.h" |
| 61 #include "WebGLUniformLocation.h" | 60 #include "WebGLUniformLocation.h" |
| 61 #include "core/dom/ExceptionCode.h" |
| 62 #include "core/loader/FrameLoader.h" | 62 #include "core/loader/FrameLoader.h" |
| 63 #include "core/loader/FrameLoaderClient.h" | 63 #include "core/loader/FrameLoaderClient.h" |
| 64 #include "core/loader/cache/CachedImage.h" | 64 #include "core/loader/cache/CachedImage.h" |
| 65 #include "core/page/DOMWindow.h" | 65 #include "core/page/DOMWindow.h" |
| 66 #include "core/page/Frame.h" | 66 #include "core/page/Frame.h" |
| 67 #include "core/page/FrameView.h" | 67 #include "core/page/FrameView.h" |
| 68 #include "core/page/Page.h" | 68 #include "core/page/Page.h" |
| 69 #include "core/page/Settings.h" | 69 #include "core/page/Settings.h" |
| 70 #include "core/platform/NotImplemented.h" | 70 #include "core/platform/NotImplemented.h" |
| 71 #include "core/platform/graphics/Extensions3D.h" | 71 #include "core/platform/graphics/Extensions3D.h" |
| (...skipping 6020 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6092 bool WebGLRenderingContext::supportsDrawBuffers() | 6092 bool WebGLRenderingContext::supportsDrawBuffers() |
| 6093 { | 6093 { |
| 6094 if (!m_drawBuffersWebGLRequirementsChecked) { | 6094 if (!m_drawBuffersWebGLRequirementsChecked) { |
| 6095 m_drawBuffersWebGLRequirementsChecked = true; | 6095 m_drawBuffersWebGLRequirementsChecked = true; |
| 6096 m_drawBuffersSupported = EXTDrawBuffers::supported(this); | 6096 m_drawBuffersSupported = EXTDrawBuffers::supported(this); |
| 6097 } | 6097 } |
| 6098 return m_drawBuffersSupported; | 6098 return m_drawBuffersSupported; |
| 6099 } | 6099 } |
| 6100 | 6100 |
| 6101 } // namespace WebCore | 6101 } // namespace WebCore |
| OLD | NEW |