haikuwebkit/Source/WebCore/html/canvas/OESElementIndexUint.h

42 lines
1.7 KiB
C
Raw Permalink Normal View History

Implement OES_element_index_uint / WEBKIT_OES_element_index_uint https://bugs.webkit.org/show_bug.cgi?id=97400 Patch by Brandon Jones <bajones@google.com> on 2012-10-18 Reviewed by Kenneth Russell. Source/WebCore: Implemented OES_element_index_uint WebGL extension Test: fast/canvas/webgl/oes-element-index-uint.html * CMakeLists.txt: * DerivedSources.make: * DerivedSources.pri: * GNUmakefile.list.am: * Target.pri: * WebCore.gypi: * WebCore.xcodeproj/project.pbxproj: * bindings/js/JSWebGLRenderingContextCustom.cpp: (WebCore::toJS): * bindings/v8/custom/V8WebGLRenderingContextCustom.cpp: (WebCore::toV8Object): * html/canvas/OESElementIndexUint.cpp: Copied from Source/WebCore/html/canvas/WebGLExtension.h. (WebCore): (WebCore::OESElementIndexUint::OESElementIndexUint): (WebCore::OESElementIndexUint::~OESElementIndexUint): (WebCore::OESElementIndexUint::getName): (WebCore::OESElementIndexUint::create): * html/canvas/OESElementIndexUint.h: Copied from Source/WebCore/html/canvas/WebGLExtension.h. (WebCore): (OESElementIndexUint): * html/canvas/OESElementIndexUint.idl: Copied from Source/WebCore/html/canvas/WebGLExtension.h. * html/canvas/WebGLExtension.h: * html/canvas/WebGLRenderingContext.cpp: (WebCore): (WebCore::WebGLRenderingContext::validateElementArraySize): (WebCore::WebGLRenderingContext::validateIndexArrayConservative): (WebCore::WebGLRenderingContext::validateIndexArrayPrecise): (WebCore::WebGLRenderingContext::validateRenderingState): (WebCore::WebGLRenderingContext::drawElements): (WebCore::WebGLRenderingContext::getExtension): (WebCore::WebGLRenderingContext::getSupportedExtensions): * html/canvas/WebGLRenderingContext.h: (WebCore): (WebGLRenderingContext): * platform/graphics/Extensions3D.h: (Extensions3D): * platform/graphics/opengl/Extensions3DOpenGL.cpp: (WebCore::Extensions3DOpenGL::supportsExtension): LayoutTests: Added OES_element_index_uint extension conformance test from KHRONOS * fast/canvas/webgl/oes-element-index-uint-expected.txt: Added. * fast/canvas/webgl/oes-element-index-uint.html: Added. * platform/chromium/TestExpectations: * platform/efl/TestExpectations: * platform/mac/TestExpectations: * platform/wk2/TestExpectations: Canonical link: https://commits.webkit.org/117724@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@131780 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2012-10-18 18:18:35 +00:00
/*
* Copyright (C) 2012 Google Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#pragma once
Implement OES_element_index_uint / WEBKIT_OES_element_index_uint https://bugs.webkit.org/show_bug.cgi?id=97400 Patch by Brandon Jones <bajones@google.com> on 2012-10-18 Reviewed by Kenneth Russell. Source/WebCore: Implemented OES_element_index_uint WebGL extension Test: fast/canvas/webgl/oes-element-index-uint.html * CMakeLists.txt: * DerivedSources.make: * DerivedSources.pri: * GNUmakefile.list.am: * Target.pri: * WebCore.gypi: * WebCore.xcodeproj/project.pbxproj: * bindings/js/JSWebGLRenderingContextCustom.cpp: (WebCore::toJS): * bindings/v8/custom/V8WebGLRenderingContextCustom.cpp: (WebCore::toV8Object): * html/canvas/OESElementIndexUint.cpp: Copied from Source/WebCore/html/canvas/WebGLExtension.h. (WebCore): (WebCore::OESElementIndexUint::OESElementIndexUint): (WebCore::OESElementIndexUint::~OESElementIndexUint): (WebCore::OESElementIndexUint::getName): (WebCore::OESElementIndexUint::create): * html/canvas/OESElementIndexUint.h: Copied from Source/WebCore/html/canvas/WebGLExtension.h. (WebCore): (OESElementIndexUint): * html/canvas/OESElementIndexUint.idl: Copied from Source/WebCore/html/canvas/WebGLExtension.h. * html/canvas/WebGLExtension.h: * html/canvas/WebGLRenderingContext.cpp: (WebCore): (WebCore::WebGLRenderingContext::validateElementArraySize): (WebCore::WebGLRenderingContext::validateIndexArrayConservative): (WebCore::WebGLRenderingContext::validateIndexArrayPrecise): (WebCore::WebGLRenderingContext::validateRenderingState): (WebCore::WebGLRenderingContext::drawElements): (WebCore::WebGLRenderingContext::getExtension): (WebCore::WebGLRenderingContext::getSupportedExtensions): * html/canvas/WebGLRenderingContext.h: (WebCore): (WebGLRenderingContext): * platform/graphics/Extensions3D.h: (Extensions3D): * platform/graphics/opengl/Extensions3DOpenGL.cpp: (WebCore::Extensions3DOpenGL::supportsExtension): LayoutTests: Added OES_element_index_uint extension conformance test from KHRONOS * fast/canvas/webgl/oes-element-index-uint-expected.txt: Added. * fast/canvas/webgl/oes-element-index-uint.html: Added. * platform/chromium/TestExpectations: * platform/efl/TestExpectations: * platform/mac/TestExpectations: * platform/wk2/TestExpectations: Canonical link: https://commits.webkit.org/117724@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@131780 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2012-10-18 18:18:35 +00:00
#include "WebGLExtension.h"
namespace WebCore {
Clean up virtual functions in html/ https://bugs.webkit.org/show_bug.cgi?id=138166 Reviewed by Andreas Kling. Clean up virtual functions in html/ by: - Making virtual functions final when possible - Making classes final when possible - Using 'override' when appropriate - Explicitly marking functions / destructors as virtual when they are inherently virtual - Dropping virtual destructors when the class does not have subclasses and mark the class as final, to get rid of unnecessary vtables - Making isXXX() virtual functions private on XXX classes to avoid unnecessary type checks - De-virtualizing some functions that do not need to be virtual - Dropping final for virtual functions in classes already marked as final No new tests, no behavior change. * html/ButtonInputType.h: * html/CheckboxInputType.h: * html/ColorInputType.h: * html/DOMSettableTokenList.h: * html/DateInputType.h: * html/DateTimeInputType.h: * html/DateTimeLocalInputType.h: * html/EmailInputType.h: * html/FTPDirectoryDocument.h: * html/HTMLAnchorElement.h: * html/HTMLDetailsElement.cpp: * html/HTMLFormControlElement.h: * html/HTMLFormControlsCollection.h: * html/HTMLFrameElement.h: * html/HTMLFrameElementBase.h: * html/HTMLFrameOwnerElement.h: * html/HTMLInputElement.h: * html/HTMLMarqueeElement.h: * html/HTMLMediaElement.h: * html/HTMLMediaSession.h: (WebCore::HTMLMediaSession::requiresPlaybackTargetRouteMonitoring): Deleted. * html/HTMLMeterElement.h: * html/HTMLNameCollection.h: * html/HTMLObjectElement.h: * html/HTMLOptGroupElement.h: * html/HTMLOptionElement.h: * html/HTMLSpanElement.h: * html/HTMLStyleElement.h: * html/HTMLSummaryElement.cpp: * html/HTMLSummaryElement.h: * html/HTMLUnknownElement.h: * html/HTMLVideoElement.h: * html/HiddenInputType.h: * html/ImageInputType.h: * html/MediaKeyEvent.h: * html/MonthInputType.h: * html/NumberInputType.h: * html/PasswordInputType.h: * html/PublicURLManager.h: * html/RadioInputType.h: * html/ResetInputType.h: * html/SubmitInputType.h: * html/TelephoneInputType.h: * html/TextInputType.h: * html/TimeInputType.h: * html/URLInputType.h: * html/WeekInputType.h: * html/canvas/ANGLEInstancedArrays.h: * html/canvas/CanvasRenderingContext2D.h: * html/canvas/DOMPath.h: * html/canvas/EXTShaderTextureLOD.h: * html/canvas/EXTTextureFilterAnisotropic.h: * html/canvas/OESElementIndexUint.h: * html/canvas/OESStandardDerivatives.h: * html/canvas/OESTextureFloat.h: * html/canvas/OESTextureFloatLinear.h: * html/canvas/OESTextureHalfFloat.h: * html/canvas/OESTextureHalfFloatLinear.h: * html/canvas/OESVertexArrayObject.h: * html/canvas/WebGLBuffer.h: * html/canvas/WebGLCompressedTextureATC.h: * html/canvas/WebGLCompressedTexturePVRTC.h: * html/canvas/WebGLCompressedTextureS3TC.h: * html/canvas/WebGLContextAttributes.h: * html/canvas/WebGLContextEvent.h: * html/canvas/WebGLDebugRendererInfo.h: * html/canvas/WebGLDebugShaders.h: * html/canvas/WebGLDepthTexture.h: * html/canvas/WebGLDrawBuffers.h: * html/canvas/WebGLFramebuffer.h: (WebCore::WebGLFramebuffer::isFramebuffer): Deleted. * html/canvas/WebGLLoseContext.h: * html/canvas/WebGLProgram.h: * html/canvas/WebGLRenderbuffer.h: * html/canvas/WebGLRenderingContext.h: * html/canvas/WebGLShader.h: * html/canvas/WebGLSharedObject.h: (WebCore::WebGLSharedObject::isFramebuffer): Deleted. * html/canvas/WebGLTexture.h: * html/canvas/WebGLVertexArrayObjectOES.h: (WebCore::WebGLVertexArrayObjectOES::isVertexArray): Deleted. * html/shadow/ImageControlsRootElement.h: * html/shadow/InsertionPoint.h: * html/shadow/MediaControlElementTypes.h: * html/shadow/MediaControlElements.h: * html/shadow/MediaControls.h: * html/shadow/MediaControlsApple.h: * html/shadow/SpinButtonElement.h: * html/track/AudioTrack.h: * html/track/AudioTrackList.h: * html/track/DataCue.h: (WebCore::DataCue::cueType): Deleted. * html/track/InbandDataTextTrack.h: * html/track/InbandGenericTextTrack.h: * html/track/InbandTextTrack.h: * html/track/InbandWebVTTTextTrack.h: * html/track/LoadableTextTrack.h: * html/track/TextTrackList.h: * html/track/TrackEvent.h: * html/track/VTTCue.h: (WebCore::VTTCueBox::setFontSizeFromCaptionUserPrefs): * html/track/VTTRegion.h: * html/track/VideoTrack.h: * html/track/VideoTrackList.h: * html/track/WebVTTParser.h: (WebCore::WebVTTCueData::~WebVTTCueData): Deleted. Canonical link: https://commits.webkit.org/156014@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@175328 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2014-10-29 15:09:57 +00:00
class OESElementIndexUint final : public WebGLExtension {
CrashTracer: com.apple.WebKit.WebContent at WebCore: WebCore::WebGLRenderingContext::getExtension https://bugs.webkit.org/show_bug.cgi?id=216337 <rdar://problem/68421590> Reviewed by Sam Weinig. Bug 215599 added IsoHeap storage to WebGLExtension, but didn't add it to any of the subclasses. This causes a crash in ::getExtension because allocation of the new instance fails. Add WTF_MAKE_ISO_ALLOCATED_IMPL to the .cpp files, and WTF_MAKE_ISO_ALLOCATED to the .h files. This should have been detected by on-device testing, since a debug build would have asserted because the size passed into the constructor was different from the actual size of the class. * html/canvas/ANGLEInstancedArrays.cpp: * html/canvas/ANGLEInstancedArrays.h: * html/canvas/EXTBlendMinMax.cpp: * html/canvas/EXTBlendMinMax.h: * html/canvas/EXTColorBufferFloat.cpp: * html/canvas/EXTColorBufferFloat.h: * html/canvas/EXTColorBufferHalfFloat.cpp: * html/canvas/EXTColorBufferHalfFloat.h: * html/canvas/EXTFragDepth.cpp: * html/canvas/EXTFragDepth.h: * html/canvas/EXTShaderTextureLOD.cpp: * html/canvas/EXTShaderTextureLOD.h: * html/canvas/EXTTextureFilterAnisotropic.cpp: * html/canvas/EXTTextureFilterAnisotropic.h: * html/canvas/EXTsRGB.cpp: * html/canvas/EXTsRGB.h: * html/canvas/OESElementIndexUint.cpp: * html/canvas/OESElementIndexUint.h: * html/canvas/OESStandardDerivatives.cpp: * html/canvas/OESStandardDerivatives.h: * html/canvas/OESTextureFloat.cpp: * html/canvas/OESTextureFloat.h: * html/canvas/OESTextureFloatLinear.cpp: * html/canvas/OESTextureFloatLinear.h: * html/canvas/OESTextureHalfFloat.cpp: * html/canvas/OESTextureHalfFloat.h: * html/canvas/OESTextureHalfFloatLinear.cpp: * html/canvas/OESTextureHalfFloatLinear.h: * html/canvas/OESVertexArrayObject.cpp: * html/canvas/OESVertexArrayObject.h: * html/canvas/WebGLColorBufferFloat.cpp: * html/canvas/WebGLColorBufferFloat.h: * html/canvas/WebGLCompressedTextureASTC.cpp: * html/canvas/WebGLCompressedTextureASTC.h: * html/canvas/WebGLCompressedTextureATC.cpp: * html/canvas/WebGLCompressedTextureATC.h: * html/canvas/WebGLCompressedTextureETC.cpp: * html/canvas/WebGLCompressedTextureETC.h: * html/canvas/WebGLCompressedTextureETC1.cpp: * html/canvas/WebGLCompressedTextureETC1.h: * html/canvas/WebGLCompressedTexturePVRTC.cpp: * html/canvas/WebGLCompressedTexturePVRTC.h: * html/canvas/WebGLCompressedTextureS3TC.cpp: * html/canvas/WebGLCompressedTextureS3TC.h: * html/canvas/WebGLCompressedTextureS3TCsRGB.cpp: * html/canvas/WebGLCompressedTextureS3TCsRGB.h: * html/canvas/WebGLDebugRendererInfo.cpp: * html/canvas/WebGLDebugRendererInfo.h: * html/canvas/WebGLDebugShaders.cpp: * html/canvas/WebGLDebugShaders.h: * html/canvas/WebGLDepthTexture.cpp: * html/canvas/WebGLDepthTexture.h: * html/canvas/WebGLDrawBuffers.cpp: * html/canvas/WebGLDrawBuffers.h: * html/canvas/WebGLLoseContext.cpp: * html/canvas/WebGLLoseContext.h: Canonical link: https://commits.webkit.org/229169@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@266809 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2020-09-10 02:47:05 +00:00
WTF_MAKE_ISO_ALLOCATED(OESElementIndexUint);
Implement OES_element_index_uint / WEBKIT_OES_element_index_uint https://bugs.webkit.org/show_bug.cgi?id=97400 Patch by Brandon Jones <bajones@google.com> on 2012-10-18 Reviewed by Kenneth Russell. Source/WebCore: Implemented OES_element_index_uint WebGL extension Test: fast/canvas/webgl/oes-element-index-uint.html * CMakeLists.txt: * DerivedSources.make: * DerivedSources.pri: * GNUmakefile.list.am: * Target.pri: * WebCore.gypi: * WebCore.xcodeproj/project.pbxproj: * bindings/js/JSWebGLRenderingContextCustom.cpp: (WebCore::toJS): * bindings/v8/custom/V8WebGLRenderingContextCustom.cpp: (WebCore::toV8Object): * html/canvas/OESElementIndexUint.cpp: Copied from Source/WebCore/html/canvas/WebGLExtension.h. (WebCore): (WebCore::OESElementIndexUint::OESElementIndexUint): (WebCore::OESElementIndexUint::~OESElementIndexUint): (WebCore::OESElementIndexUint::getName): (WebCore::OESElementIndexUint::create): * html/canvas/OESElementIndexUint.h: Copied from Source/WebCore/html/canvas/WebGLExtension.h. (WebCore): (OESElementIndexUint): * html/canvas/OESElementIndexUint.idl: Copied from Source/WebCore/html/canvas/WebGLExtension.h. * html/canvas/WebGLExtension.h: * html/canvas/WebGLRenderingContext.cpp: (WebCore): (WebCore::WebGLRenderingContext::validateElementArraySize): (WebCore::WebGLRenderingContext::validateIndexArrayConservative): (WebCore::WebGLRenderingContext::validateIndexArrayPrecise): (WebCore::WebGLRenderingContext::validateRenderingState): (WebCore::WebGLRenderingContext::drawElements): (WebCore::WebGLRenderingContext::getExtension): (WebCore::WebGLRenderingContext::getSupportedExtensions): * html/canvas/WebGLRenderingContext.h: (WebCore): (WebGLRenderingContext): * platform/graphics/Extensions3D.h: (Extensions3D): * platform/graphics/opengl/Extensions3DOpenGL.cpp: (WebCore::Extensions3DOpenGL::supportsExtension): LayoutTests: Added OES_element_index_uint extension conformance test from KHRONOS * fast/canvas/webgl/oes-element-index-uint-expected.txt: Added. * fast/canvas/webgl/oes-element-index-uint.html: Added. * platform/chromium/TestExpectations: * platform/efl/TestExpectations: * platform/mac/TestExpectations: * platform/wk2/TestExpectations: Canonical link: https://commits.webkit.org/117724@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@131780 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2012-10-18 18:18:35 +00:00
public:
[WebGL] Migrate construction functions from pointers to references https://bugs.webkit.org/show_bug.cgi?id=164749 Reviewed by Zalan Bujtas. Mechanical find/replace. No new tests because there is no behavior change. * html/canvas/ANGLEInstancedArrays.cpp: (WebCore::ANGLEInstancedArrays::ANGLEInstancedArrays): (WebCore::ANGLEInstancedArrays::supported): (WebCore::ANGLEInstancedArrays::drawArraysInstancedANGLE): (WebCore::ANGLEInstancedArrays::drawElementsInstancedANGLE): (WebCore::ANGLEInstancedArrays::vertexAttribDivisorANGLE): * html/canvas/ANGLEInstancedArrays.h: * html/canvas/EXTBlendMinMax.cpp: (WebCore::EXTBlendMinMax::EXTBlendMinMax): * html/canvas/EXTBlendMinMax.h: * html/canvas/EXTFragDepth.cpp: (WebCore::EXTFragDepth::EXTFragDepth): * html/canvas/EXTFragDepth.h: * html/canvas/EXTShaderTextureLOD.cpp: (WebCore::EXTShaderTextureLOD::EXTShaderTextureLOD): * html/canvas/EXTShaderTextureLOD.h: * html/canvas/EXTTextureFilterAnisotropic.cpp: (WebCore::EXTTextureFilterAnisotropic::EXTTextureFilterAnisotropic): * html/canvas/EXTTextureFilterAnisotropic.h: * html/canvas/EXTsRGB.cpp: (WebCore::EXTsRGB::EXTsRGB): * html/canvas/EXTsRGB.h: * html/canvas/OESElementIndexUint.cpp: (WebCore::OESElementIndexUint::OESElementIndexUint): * html/canvas/OESElementIndexUint.h: * html/canvas/OESStandardDerivatives.cpp: (WebCore::OESStandardDerivatives::OESStandardDerivatives): * html/canvas/OESStandardDerivatives.h: * html/canvas/OESTextureFloat.cpp: (WebCore::OESTextureFloat::OESTextureFloat): * html/canvas/OESTextureFloat.h: * html/canvas/OESTextureFloatLinear.cpp: (WebCore::OESTextureFloatLinear::OESTextureFloatLinear): * html/canvas/OESTextureFloatLinear.h: * html/canvas/OESTextureHalfFloat.cpp: (WebCore::OESTextureHalfFloat::OESTextureHalfFloat): * html/canvas/OESTextureHalfFloat.h: * html/canvas/OESTextureHalfFloatLinear.cpp: (WebCore::OESTextureHalfFloatLinear::OESTextureHalfFloatLinear): * html/canvas/OESTextureHalfFloatLinear.h: * html/canvas/OESVertexArrayObject.cpp: (WebCore::OESVertexArrayObject::OESVertexArrayObject): (WebCore::OESVertexArrayObject::createVertexArrayOES): (WebCore::OESVertexArrayObject::deleteVertexArrayOES): (WebCore::OESVertexArrayObject::isVertexArrayOES): (WebCore::OESVertexArrayObject::bindVertexArrayOES): * html/canvas/WebGL2RenderingContext.cpp: (WebCore::WebGL2RenderingContext::initializeVertexArrayObjects): (WebCore::WebGL2RenderingContext::initializeShaderExtensions): (WebCore::WebGL2RenderingContext::drawBuffers): (WebCore::WebGL2RenderingContext::createVertexArray): (WebCore::WebGL2RenderingContext::isVertexArray): (WebCore::WebGL2RenderingContext::bindVertexArray): (WebCore::WebGL2RenderingContext::getExtension): (WebCore::WebGL2RenderingContext::getSupportedExtensions): * html/canvas/WebGLBuffer.cpp: (WebCore::WebGLBuffer::create): (WebCore::WebGLBuffer::WebGLBuffer): * html/canvas/WebGLBuffer.h: * html/canvas/WebGLCompressedTextureATC.cpp: (WebCore::WebGLCompressedTextureATC::WebGLCompressedTextureATC): (WebCore::WebGLCompressedTextureATC::supported): * html/canvas/WebGLCompressedTextureATC.h: * html/canvas/WebGLCompressedTexturePVRTC.cpp: (WebCore::WebGLCompressedTexturePVRTC::WebGLCompressedTexturePVRTC): (WebCore::WebGLCompressedTexturePVRTC::supported): * html/canvas/WebGLCompressedTexturePVRTC.h: * html/canvas/WebGLCompressedTextureS3TC.cpp: (WebCore::WebGLCompressedTextureS3TC::WebGLCompressedTextureS3TC): (WebCore::WebGLCompressedTextureS3TC::supported): * html/canvas/WebGLCompressedTextureS3TC.h: * html/canvas/WebGLContextObject.cpp: (WebCore::WebGLContextObject::WebGLContextObject): * html/canvas/WebGLContextObject.h: * html/canvas/WebGLDebugRendererInfo.cpp: (WebCore::WebGLDebugRendererInfo::WebGLDebugRendererInfo): * html/canvas/WebGLDebugRendererInfo.h: * html/canvas/WebGLDebugShaders.cpp: (WebCore::WebGLDebugShaders::WebGLDebugShaders): (WebCore::WebGLDebugShaders::getTranslatedShaderSource): * html/canvas/WebGLDebugShaders.h: * html/canvas/WebGLDepthTexture.cpp: (WebCore::WebGLDepthTexture::WebGLDepthTexture): (WebCore::WebGLDepthTexture::supported): * html/canvas/WebGLDepthTexture.h: * html/canvas/WebGLDrawBuffers.cpp: (WebCore::WebGLDrawBuffers::WebGLDrawBuffers): (WebCore::WebGLDrawBuffers::supported): (WebCore::WebGLDrawBuffers::drawBuffersWEBGL): (WebCore::WebGLDrawBuffers::satisfiesWebGLRequirements): * html/canvas/WebGLDrawBuffers.h: * html/canvas/WebGLExtension.cpp: (WebCore::WebGLExtension::WebGLExtension): * html/canvas/WebGLExtension.h: (WebCore::WebGLExtension::ref): (WebCore::WebGLExtension::deref): (WebCore::WebGLExtension::context): * html/canvas/WebGLFramebuffer.cpp: (WebCore::WebGLFramebuffer::create): (WebCore::WebGLFramebuffer::WebGLFramebuffer): (WebCore::WebGLFramebuffer::drawBuffersIfNecessary): * html/canvas/WebGLFramebuffer.h: * html/canvas/WebGLLoseContext.cpp: (WebCore::WebGLLoseContext::WebGLLoseContext): (WebCore::WebGLLoseContext::loseContext): (WebCore::WebGLLoseContext::restoreContext): * html/canvas/WebGLLoseContext.h: * html/canvas/WebGLObject.cpp: (WebCore::WebGLObject::WebGLObject): * html/canvas/WebGLObject.h: * html/canvas/WebGLProgram.cpp: (WebCore::WebGLProgram::create): (WebCore::WebGLProgram::WebGLProgram): * html/canvas/WebGLProgram.h: * html/canvas/WebGLQuery.cpp: (WebCore::WebGLQuery::create): (WebCore::WebGLQuery::WebGLQuery): * html/canvas/WebGLQuery.h: * html/canvas/WebGLRenderbuffer.cpp: (WebCore::WebGLRenderbuffer::create): (WebCore::WebGLRenderbuffer::WebGLRenderbuffer): * html/canvas/WebGLRenderbuffer.h: * html/canvas/WebGLRenderingContext.cpp: (WebCore::WebGLRenderingContext::initializeVertexArrayObjects): (WebCore::WebGLRenderingContext::getExtension): (WebCore::WebGLRenderingContext::getSupportedExtensions): * html/canvas/WebGLRenderingContextBase.cpp: (WebCore::WebGLRenderingContextBase::create): (WebCore::WebGLRenderingContextBase::setupFlags): (WebCore::WebGLRenderingContextBase::checkObjectToBeBound): (WebCore::WebGLRenderingContextBase::createBuffer): (WebCore::WebGLRenderingContextBase::createFramebuffer): (WebCore::WebGLRenderingContextBase::createTexture): (WebCore::WebGLRenderingContextBase::createProgram): (WebCore::WebGLRenderingContextBase::createRenderbuffer): (WebCore::WebGLRenderingContextBase::createShader): (WebCore::WebGLRenderingContextBase::deleteObject): (WebCore::WebGLRenderingContextBase::validateWebGLObject): (WebCore::WebGLRenderingContextBase::framebufferRenderbuffer): (WebCore::WebGLRenderingContextBase::framebufferTexture2D): (WebCore::WebGLRenderingContextBase::getUniform): (WebCore::WebGLRenderingContextBase::readPixels): (WebCore::WebGLRenderingContextBase::loseContextImpl): (WebCore::WebGLRenderingContextBase::maybeRestoreContext): (WebCore::WebGLRenderingContextBase::supportsDrawBuffers): * html/canvas/WebGLSampler.cpp: (WebCore::WebGLSampler::create): (WebCore::WebGLSampler::WebGLSampler): * html/canvas/WebGLSampler.h: * html/canvas/WebGLShader.cpp: (WebCore::WebGLShader::create): (WebCore::WebGLShader::WebGLShader): * html/canvas/WebGLShader.h: * html/canvas/WebGLSharedObject.cpp: (WebCore::WebGLSharedObject::WebGLSharedObject): * html/canvas/WebGLSharedObject.h: * html/canvas/WebGLSync.cpp: (WebCore::WebGLSync::create): (WebCore::WebGLSync::WebGLSync): * html/canvas/WebGLSync.h: * html/canvas/WebGLTexture.cpp: (WebCore::WebGLTexture::create): (WebCore::WebGLTexture::WebGLTexture): * html/canvas/WebGLTexture.h: * html/canvas/WebGLTransformFeedback.cpp: (WebCore::WebGLTransformFeedback::create): (WebCore::WebGLTransformFeedback::WebGLTransformFeedback): * html/canvas/WebGLTransformFeedback.h: * html/canvas/WebGLVertexArrayObject.cpp: (WebCore::WebGLVertexArrayObject::create): (WebCore::WebGLVertexArrayObject::WebGLVertexArrayObject): * html/canvas/WebGLVertexArrayObject.h: * html/canvas/WebGLVertexArrayObjectBase.cpp: (WebCore::WebGLVertexArrayObjectBase::WebGLVertexArrayObjectBase): * html/canvas/WebGLVertexArrayObjectBase.h: * html/canvas/WebGLVertexArrayObjectOES.cpp: (WebCore::WebGLVertexArrayObjectOES::create): (WebCore::WebGLVertexArrayObjectOES::WebGLVertexArrayObjectOES): (WebCore::WebGLVertexArrayObjectOES::deleteObjectImpl): * html/canvas/WebGLVertexArrayObjectOES.h: * platform/graphics/GraphicsContext3D.h: * platform/graphics/gpu/Texture.cpp: (WebCore::convertFormat): * platform/graphics/opengl/GraphicsContext3DOpenGL.cpp: (WebCore::GraphicsContext3D::readPixelsAndConvertToBGRAIfNecessary): (WebCore::GraphicsContext3D::reshapeFBOs): (WebCore::GraphicsContext3D::getIntegerv): (WebCore::GraphicsContext3D::getExtensions): * platform/graphics/opengl/GraphicsContext3DOpenGLCommon.cpp: (WebCore::GraphicsContext3D::validateDepthStencil): (WebCore::GraphicsContext3D::drawArraysInstanced): (WebCore::GraphicsContext3D::drawElementsInstanced): (WebCore::GraphicsContext3D::vertexAttribDivisor): Canonical link: https://commits.webkit.org/182454@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@208740 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2016-11-15 19:42:04 +00:00
explicit OESElementIndexUint(WebGLRenderingContextBase&);
Implement OES_element_index_uint / WEBKIT_OES_element_index_uint https://bugs.webkit.org/show_bug.cgi?id=97400 Patch by Brandon Jones <bajones@google.com> on 2012-10-18 Reviewed by Kenneth Russell. Source/WebCore: Implemented OES_element_index_uint WebGL extension Test: fast/canvas/webgl/oes-element-index-uint.html * CMakeLists.txt: * DerivedSources.make: * DerivedSources.pri: * GNUmakefile.list.am: * Target.pri: * WebCore.gypi: * WebCore.xcodeproj/project.pbxproj: * bindings/js/JSWebGLRenderingContextCustom.cpp: (WebCore::toJS): * bindings/v8/custom/V8WebGLRenderingContextCustom.cpp: (WebCore::toV8Object): * html/canvas/OESElementIndexUint.cpp: Copied from Source/WebCore/html/canvas/WebGLExtension.h. (WebCore): (WebCore::OESElementIndexUint::OESElementIndexUint): (WebCore::OESElementIndexUint::~OESElementIndexUint): (WebCore::OESElementIndexUint::getName): (WebCore::OESElementIndexUint::create): * html/canvas/OESElementIndexUint.h: Copied from Source/WebCore/html/canvas/WebGLExtension.h. (WebCore): (OESElementIndexUint): * html/canvas/OESElementIndexUint.idl: Copied from Source/WebCore/html/canvas/WebGLExtension.h. * html/canvas/WebGLExtension.h: * html/canvas/WebGLRenderingContext.cpp: (WebCore): (WebCore::WebGLRenderingContext::validateElementArraySize): (WebCore::WebGLRenderingContext::validateIndexArrayConservative): (WebCore::WebGLRenderingContext::validateIndexArrayPrecise): (WebCore::WebGLRenderingContext::validateRenderingState): (WebCore::WebGLRenderingContext::drawElements): (WebCore::WebGLRenderingContext::getExtension): (WebCore::WebGLRenderingContext::getSupportedExtensions): * html/canvas/WebGLRenderingContext.h: (WebCore): (WebGLRenderingContext): * platform/graphics/Extensions3D.h: (Extensions3D): * platform/graphics/opengl/Extensions3DOpenGL.cpp: (WebCore::Extensions3DOpenGL::supportsExtension): LayoutTests: Added OES_element_index_uint extension conformance test from KHRONOS * fast/canvas/webgl/oes-element-index-uint-expected.txt: Added. * fast/canvas/webgl/oes-element-index-uint.html: Added. * platform/chromium/TestExpectations: * platform/efl/TestExpectations: * platform/mac/TestExpectations: * platform/wk2/TestExpectations: Canonical link: https://commits.webkit.org/117724@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@131780 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2012-10-18 18:18:35 +00:00
virtual ~OESElementIndexUint();
ExtensionName getName() const override;
Implement OES_element_index_uint / WEBKIT_OES_element_index_uint https://bugs.webkit.org/show_bug.cgi?id=97400 Patch by Brandon Jones <bajones@google.com> on 2012-10-18 Reviewed by Kenneth Russell. Source/WebCore: Implemented OES_element_index_uint WebGL extension Test: fast/canvas/webgl/oes-element-index-uint.html * CMakeLists.txt: * DerivedSources.make: * DerivedSources.pri: * GNUmakefile.list.am: * Target.pri: * WebCore.gypi: * WebCore.xcodeproj/project.pbxproj: * bindings/js/JSWebGLRenderingContextCustom.cpp: (WebCore::toJS): * bindings/v8/custom/V8WebGLRenderingContextCustom.cpp: (WebCore::toV8Object): * html/canvas/OESElementIndexUint.cpp: Copied from Source/WebCore/html/canvas/WebGLExtension.h. (WebCore): (WebCore::OESElementIndexUint::OESElementIndexUint): (WebCore::OESElementIndexUint::~OESElementIndexUint): (WebCore::OESElementIndexUint::getName): (WebCore::OESElementIndexUint::create): * html/canvas/OESElementIndexUint.h: Copied from Source/WebCore/html/canvas/WebGLExtension.h. (WebCore): (OESElementIndexUint): * html/canvas/OESElementIndexUint.idl: Copied from Source/WebCore/html/canvas/WebGLExtension.h. * html/canvas/WebGLExtension.h: * html/canvas/WebGLRenderingContext.cpp: (WebCore): (WebCore::WebGLRenderingContext::validateElementArraySize): (WebCore::WebGLRenderingContext::validateIndexArrayConservative): (WebCore::WebGLRenderingContext::validateIndexArrayPrecise): (WebCore::WebGLRenderingContext::validateRenderingState): (WebCore::WebGLRenderingContext::drawElements): (WebCore::WebGLRenderingContext::getExtension): (WebCore::WebGLRenderingContext::getSupportedExtensions): * html/canvas/WebGLRenderingContext.h: (WebCore): (WebGLRenderingContext): * platform/graphics/Extensions3D.h: (Extensions3D): * platform/graphics/opengl/Extensions3DOpenGL.cpp: (WebCore::Extensions3DOpenGL::supportsExtension): LayoutTests: Added OES_element_index_uint extension conformance test from KHRONOS * fast/canvas/webgl/oes-element-index-uint-expected.txt: Added. * fast/canvas/webgl/oes-element-index-uint.html: Added. * platform/chromium/TestExpectations: * platform/efl/TestExpectations: * platform/mac/TestExpectations: * platform/wk2/TestExpectations: Canonical link: https://commits.webkit.org/117724@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@131780 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2012-10-18 18:18:35 +00:00
};
} // namespace WebCore