| 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 "CachedImage.h" | 30 #include "CachedImage.h" |
| 31 #include "CheckedInt.h" | 31 #include "CheckedInt.h" |
| 32 #include "DOMWindow.h" | 32 #include "DOMWindow.h" |
| 33 #include "DrawingBuffer.h" | |
| 34 #include "EXTDrawBuffers.h" | 33 #include "EXTDrawBuffers.h" |
| 35 #include "EXTTextureFilterAnisotropic.h" | 34 #include "EXTTextureFilterAnisotropic.h" |
| 36 #include "ExceptionCode.h" | 35 #include "ExceptionCode.h" |
| 37 #include "Frame.h" | 36 #include "Frame.h" |
| 38 #include "FrameLoader.h" | 37 #include "FrameLoader.h" |
| 39 #include "FrameLoaderClient.h" | 38 #include "FrameLoaderClient.h" |
| 40 #include "FrameView.h" | 39 #include "FrameView.h" |
| 41 #include "HTMLCanvasElement.h" | 40 #include "HTMLCanvasElement.h" |
| 42 #include "HTMLImageElement.h" | 41 #include "HTMLImageElement.h" |
| 43 #include "HTMLVideoElement.h" | 42 #include "HTMLVideoElement.h" |
| (...skipping 22 matching lines...) Expand all Loading... |
| 66 #include "WebGLLoseContext.h" | 65 #include "WebGLLoseContext.h" |
| 67 #include "WebGLProgram.h" | 66 #include "WebGLProgram.h" |
| 68 #include "WebGLRenderbuffer.h" | 67 #include "WebGLRenderbuffer.h" |
| 69 #include "WebGLShader.h" | 68 #include "WebGLShader.h" |
| 70 #include "WebGLShaderPrecisionFormat.h" | 69 #include "WebGLShaderPrecisionFormat.h" |
| 71 #include "WebGLTexture.h" | 70 #include "WebGLTexture.h" |
| 72 #include "WebGLUniformLocation.h" | 71 #include "WebGLUniformLocation.h" |
| 73 #include "core/platform/graphics/Extensions3D.h" | 72 #include "core/platform/graphics/Extensions3D.h" |
| 74 #include "core/platform/graphics/ImageBuffer.h" | 73 #include "core/platform/graphics/ImageBuffer.h" |
| 75 #include "core/platform/graphics/IntSize.h" | 74 #include "core/platform/graphics/IntSize.h" |
| 75 #include "core/platform/graphics/gpu/DrawingBuffer.h" |
| 76 | 76 |
| 77 #include <wtf/OwnArrayPtr.h> | 77 #include <wtf/OwnArrayPtr.h> |
| 78 #include <wtf/PassOwnArrayPtr.h> | 78 #include <wtf/PassOwnArrayPtr.h> |
| 79 #include <wtf/text/StringBuilder.h> | 79 #include <wtf/text/StringBuilder.h> |
| 80 #include <wtf/Uint16Array.h> | 80 #include <wtf/Uint16Array.h> |
| 81 #include <wtf/Uint32Array.h> | 81 #include <wtf/Uint32Array.h> |
| 82 | 82 |
| 83 namespace WebCore { | 83 namespace WebCore { |
| 84 | 84 |
| 85 const double secondsBetweenRestoreAttempts = 1.0; | 85 const double secondsBetweenRestoreAttempts = 1.0; |
| (...skipping 5910 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5996 bool WebGLRenderingContext::supportsDrawBuffers() | 5996 bool WebGLRenderingContext::supportsDrawBuffers() |
| 5997 { | 5997 { |
| 5998 if (!m_drawBuffersWebGLRequirementsChecked) { | 5998 if (!m_drawBuffersWebGLRequirementsChecked) { |
| 5999 m_drawBuffersWebGLRequirementsChecked = true; | 5999 m_drawBuffersWebGLRequirementsChecked = true; |
| 6000 m_drawBuffersSupported = EXTDrawBuffers::supported(this); | 6000 m_drawBuffersSupported = EXTDrawBuffers::supported(this); |
| 6001 } | 6001 } |
| 6002 return m_drawBuffersSupported; | 6002 return m_drawBuffersSupported; |
| 6003 } | 6003 } |
| 6004 | 6004 |
| 6005 } // namespace WebCore | 6005 } // namespace WebCore |
| OLD | NEW |