| Index: Source/platform/graphics/Extensions3D.cpp
|
| diff --git a/Source/platform/graphics/Extensions3D.cpp b/Source/platform/graphics/Extensions3D.cpp
|
| deleted file mode 100644
|
| index 0916efc3e89cb12020ec2a9bbabf75b5646fca71..0000000000000000000000000000000000000000
|
| --- a/Source/platform/graphics/Extensions3D.cpp
|
| +++ /dev/null
|
| @@ -1,247 +0,0 @@
|
| -/*
|
| - * Copyright (C) 2010 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.
|
| - */
|
| -
|
| -#include "config.h"
|
| -
|
| -#include "platform/graphics/Extensions3D.h"
|
| -
|
| -#include "platform/graphics/GraphicsContext3D.h"
|
| -#include "public/platform/WebGraphicsContext3D.h"
|
| -#include "wtf/text/CString.h"
|
| -
|
| -namespace WebCore {
|
| -
|
| -Extensions3D::Extensions3D(GraphicsContext3D* context)
|
| - : m_context(context)
|
| -{
|
| -}
|
| -
|
| -Extensions3D::~Extensions3D()
|
| -{
|
| -}
|
| -
|
| -bool Extensions3D::supports(const String& name)
|
| -{
|
| - return m_context->supportsExtension(name);
|
| -}
|
| -
|
| -void Extensions3D::ensureEnabled(const String& name)
|
| -{
|
| - bool result = m_context->ensureExtensionEnabled(name);
|
| - ASSERT_UNUSED(result, result);
|
| -}
|
| -
|
| -bool Extensions3D::isEnabled(const String& name)
|
| -{
|
| - return m_context->isExtensionEnabled(name);
|
| -}
|
| -
|
| -int Extensions3D::getGraphicsResetStatusARB()
|
| -{
|
| - return static_cast<int>(m_context->webContext()->getGraphicsResetStatusARB());
|
| -}
|
| -
|
| -void Extensions3D::blitFramebuffer(long srcX0, long srcY0, long srcX1, long srcY1, long dstX0, long dstY0, long dstX1, long dstY1, unsigned long mask, unsigned long filter)
|
| -{
|
| - m_context->webContext()->blitFramebufferCHROMIUM(srcX0, srcY0, srcX1, srcY1, dstX0, dstY0, dstX1, dstY1, mask, filter);
|
| -}
|
| -
|
| -void Extensions3D::renderbufferStorageMultisample(unsigned long target, unsigned long samples, unsigned long internalformat, unsigned long width, unsigned long height)
|
| -{
|
| - m_context->webContext()->renderbufferStorageMultisampleCHROMIUM(target, samples, internalformat, width, height);
|
| -}
|
| -
|
| -void* Extensions3D::mapBufferSubDataCHROMIUM(unsigned target, int offset, int size, unsigned access)
|
| -{
|
| - return m_context->webContext()->mapBufferSubDataCHROMIUM(target, offset, size, access);
|
| -}
|
| -
|
| -void Extensions3D::unmapBufferSubDataCHROMIUM(const void* data)
|
| -{
|
| - m_context->webContext()->unmapBufferSubDataCHROMIUM(data);
|
| -}
|
| -
|
| -void* Extensions3D::mapTexSubImage2DCHROMIUM(unsigned target, int level, int xoffset, int yoffset, int width, int height, unsigned format, unsigned type, unsigned access)
|
| -{
|
| - return m_context->webContext()->mapTexSubImage2DCHROMIUM(target, level, xoffset, yoffset, width, height, format, type, access);
|
| -}
|
| -
|
| -void Extensions3D::unmapTexSubImage2DCHROMIUM(const void* data)
|
| -{
|
| - m_context->webContext()->unmapTexSubImage2DCHROMIUM(data);
|
| -}
|
| -
|
| -Platform3DObject Extensions3D::createVertexArrayOES()
|
| -{
|
| - return m_context->webContext()->createVertexArrayOES();
|
| -}
|
| -
|
| -void Extensions3D::deleteVertexArrayOES(Platform3DObject array)
|
| -{
|
| - m_context->webContext()->deleteVertexArrayOES(array);
|
| -}
|
| -
|
| -GLboolean Extensions3D::isVertexArrayOES(Platform3DObject array)
|
| -{
|
| - return m_context->webContext()->isVertexArrayOES(array);
|
| -}
|
| -
|
| -void Extensions3D::bindVertexArrayOES(Platform3DObject array)
|
| -{
|
| - m_context->webContext()->bindVertexArrayOES(array);
|
| -}
|
| -
|
| -String Extensions3D::getTranslatedShaderSourceANGLE(Platform3DObject shader)
|
| -{
|
| - return m_context->webContext()->getTranslatedShaderSourceANGLE(shader);
|
| -}
|
| -
|
| -void Extensions3D::rateLimitOffscreenContextCHROMIUM()
|
| -{
|
| - m_context->webContext()->rateLimitOffscreenContextCHROMIUM();
|
| -}
|
| -
|
| -void Extensions3D::paintFramebufferToCanvas(int framebuffer, int width, int height, bool premultiplyAlpha, ImageBuffer* imageBuffer)
|
| -{
|
| - m_context->paintFramebufferToCanvas(framebuffer, width, height, premultiplyAlpha, imageBuffer);
|
| -}
|
| -
|
| -void Extensions3D::texImageIOSurface2DCHROMIUM(unsigned target, int width, int height, uint32_t ioSurfaceId, unsigned plane)
|
| -{
|
| - m_context->webContext()->texImageIOSurface2DCHROMIUM(target, width, height, ioSurfaceId, plane);
|
| -}
|
| -
|
| -void Extensions3D::texStorage2DEXT(unsigned int target, int levels, unsigned int internalFormat, int width, int height)
|
| -{
|
| - m_context->webContext()->texStorage2DEXT(target, levels, internalFormat, width, height);
|
| -}
|
| -
|
| -Platform3DObject Extensions3D::createQueryEXT()
|
| -{
|
| - return m_context->webContext()->createQueryEXT();
|
| -}
|
| -
|
| -void Extensions3D::deleteQueryEXT(Platform3DObject query)
|
| -{
|
| - m_context->webContext()->deleteQueryEXT(query);
|
| -}
|
| -
|
| -GLboolean Extensions3D::isQueryEXT(Platform3DObject query)
|
| -{
|
| - return m_context->webContext()->isQueryEXT(query);
|
| -}
|
| -
|
| -void Extensions3D::beginQueryEXT(GLenum target, Platform3DObject query)
|
| -{
|
| - m_context->webContext()->beginQueryEXT(target, query);
|
| -}
|
| -
|
| -void Extensions3D::endQueryEXT(GLenum target)
|
| -{
|
| - m_context->webContext()->endQueryEXT(target);
|
| -}
|
| -
|
| -void Extensions3D::getQueryivEXT(GLenum target, GLenum pname, GLint* params)
|
| -{
|
| - m_context->webContext()->getQueryivEXT(target, pname, params);
|
| -}
|
| -
|
| -void Extensions3D::getQueryObjectuivEXT(Platform3DObject query, GLenum pname, GLuint* params)
|
| -{
|
| - m_context->webContext()->getQueryObjectuivEXT(query, pname, params);
|
| -}
|
| -
|
| -bool Extensions3D::canUseCopyTextureCHROMIUM(GLenum destFormat, GLenum destType, GLint level)
|
| -{
|
| - // FIXME: restriction of (RGB || RGBA)/UNSIGNED_BYTE/(Level 0) should be lifted when
|
| - // WebGraphicsContext3D::copyTextureCHROMIUM(...) are fully functional.
|
| - if ((destFormat == GL_RGB || destFormat == GL_RGBA)
|
| - && destType == GL_UNSIGNED_BYTE
|
| - && !level)
|
| - return true;
|
| - return false;
|
| -}
|
| -
|
| -void Extensions3D::copyTextureCHROMIUM(GLenum target, Platform3DObject sourceId, Platform3DObject destId, GLint level, GLenum internalFormat, GLenum destType)
|
| -{
|
| - m_context->webContext()->copyTextureCHROMIUM(target, sourceId, destId, level, internalFormat, destType);
|
| -}
|
| -
|
| -void Extensions3D::shallowFlushCHROMIUM()
|
| -{
|
| - return m_context->webContext()->shallowFlushCHROMIUM();
|
| -}
|
| -
|
| -void Extensions3D::insertEventMarkerEXT(const String& marker)
|
| -{
|
| - m_context->webContext()->insertEventMarkerEXT(marker.utf8().data());
|
| -}
|
| -
|
| -void Extensions3D::pushGroupMarkerEXT(const String& marker)
|
| -{
|
| - m_context->webContext()->pushGroupMarkerEXT(marker.utf8().data());
|
| -}
|
| -
|
| -void Extensions3D::popGroupMarkerEXT(void)
|
| -{
|
| - m_context->webContext()->popGroupMarkerEXT();
|
| -}
|
| -
|
| -void Extensions3D::drawBuffersEXT(GLsizei n, const GLenum* bufs)
|
| -{
|
| - m_context->webContext()->drawBuffersEXT(n, bufs);
|
| -}
|
| -
|
| -void Extensions3D::drawArraysInstancedANGLE(GLenum mode, GLint first, GLsizei count, GLsizei primcount)
|
| -{
|
| - m_context->webContext()->drawArraysInstancedANGLE(mode, first, count, primcount);
|
| -}
|
| -
|
| -void Extensions3D::drawElementsInstancedANGLE(GLenum mode, GLsizei count, GLenum type, GLintptr offset, GLsizei primcount)
|
| -{
|
| - m_context->webContext()->drawElementsInstancedANGLE(mode, count, type, offset, primcount);
|
| -}
|
| -
|
| -void Extensions3D::vertexAttribDivisorANGLE(GLuint index, GLuint divisor)
|
| -{
|
| - m_context->webContext()->vertexAttribDivisorANGLE(index, divisor);
|
| -}
|
| -
|
| -void Extensions3D::loseContextCHROMIUM(GLenum current, GLenum other)
|
| -{
|
| - m_context->webContext()->loseContextCHROMIUM(current, other);
|
| -}
|
| -
|
| -void Extensions3D::renderbufferStorageMultisampleEXT(unsigned long target, unsigned long samples, unsigned long internalformat, unsigned long width, unsigned long height)
|
| -{
|
| - m_context->webContext()->renderbufferStorageMultisampleEXT(target, samples, internalformat, width, height);
|
| -}
|
| -
|
| -void Extensions3D::framebufferTexture2DMultisampleEXT(GLenum target, GLenum attachment, GLenum textarget, Platform3DObject texture, GLint level, GLsizei samples)
|
| -{
|
| - m_context->webContext()->framebufferTexture2DMultisampleEXT(target, attachment, textarget, texture, level, samples);
|
| -}
|
| -
|
| -} // namespace WebCore
|
|
|