Changeset 109061 in webkit


Ignore:
Timestamp:
Feb 27, 2012 7:01:11 PM (12 years ago)
Author:
commit-queue@webkit.org
Message:

[EFL] Initial implementation of GraphicsContext3DPrivate
https://bugs.webkit.org/show_bug.cgi?id=62961

Patch by Hyowon Kim <hw1008.kim@samsung.com> on 2012-02-27
Reviewed by Noam Rosenthal.

This patch adds the GraphicsContext3DPrivate class using Evas_GL.
GraphicsContext3DPrivate delegates all GL function calls to Evas_GL_API.

  • platform/graphics/efl/GraphicsContext3DPrivate.cpp: Added.

(WebCore):
(WebCore::GraphicsContext3DPrivate::create):
(WebCore::GraphicsContext3DPrivate::GraphicsContext3DPrivate):
(WebCore::GraphicsContext3DPrivate::~GraphicsContext3DPrivate):
(WebCore::GraphicsContext3DPrivate::initialize):
(WebCore::GraphicsContext3DPrivate::createSurface):
(WebCore::GraphicsContext3DPrivate::platformGraphicsContext3D):
(WebCore::GraphicsContext3DPrivate::makeContextCurrent):
(WebCore::GraphicsContext3DPrivate::isGLES2Compliant):
(WebCore::GraphicsContext3DPrivate::activeTexture):
(WebCore::GraphicsContext3DPrivate::attachShader):
(WebCore::GraphicsContext3DPrivate::bindAttribLocation):
(WebCore::GraphicsContext3DPrivate::bindBuffer):
(WebCore::GraphicsContext3DPrivate::bindFramebuffer):
(WebCore::GraphicsContext3DPrivate::bindRenderbuffer):
(WebCore::GraphicsContext3DPrivate::bindTexture):
(WebCore::GraphicsContext3DPrivate::blendColor):
(WebCore::GraphicsContext3DPrivate::blendEquation):
(WebCore::GraphicsContext3DPrivate::blendEquationSeparate):
(WebCore::GraphicsContext3DPrivate::blendFunc):
(WebCore::GraphicsContext3DPrivate::blendFuncSeparate):
(WebCore::GraphicsContext3DPrivate::bufferData):
(WebCore::GraphicsContext3DPrivate::bufferSubData):
(WebCore::GraphicsContext3DPrivate::checkFramebufferStatus):
(WebCore::GraphicsContext3DPrivate::clear):
(WebCore::GraphicsContext3DPrivate::clearColor):
(WebCore::GraphicsContext3DPrivate::clearDepth):
(WebCore::GraphicsContext3DPrivate::clearStencil):
(WebCore::GraphicsContext3DPrivate::colorMask):
(WebCore::GraphicsContext3DPrivate::compileShader):
(WebCore::GraphicsContext3DPrivate::copyTexImage2D):
(WebCore::GraphicsContext3DPrivate::copyTexSubImage2D):
(WebCore::GraphicsContext3DPrivate::cullFace):
(WebCore::GraphicsContext3DPrivate::depthFunc):
(WebCore::GraphicsContext3DPrivate::depthMask):
(WebCore::GraphicsContext3DPrivate::depthRange):
(WebCore::GraphicsContext3DPrivate::detachShader):
(WebCore::GraphicsContext3DPrivate::disable):
(WebCore::GraphicsContext3DPrivate::disableVertexAttribArray):
(WebCore::GraphicsContext3DPrivate::drawArrays):
(WebCore::GraphicsContext3DPrivate::drawElements):
(WebCore::GraphicsContext3DPrivate::enable):
(WebCore::GraphicsContext3DPrivate::enableVertexAttribArray):
(WebCore::GraphicsContext3DPrivate::finish):
(WebCore::GraphicsContext3DPrivate::flush):
(WebCore::GraphicsContext3DPrivate::framebufferRenderbuffer):
(WebCore::GraphicsContext3DPrivate::framebufferTexture2D):
(WebCore::GraphicsContext3DPrivate::frontFace):
(WebCore::GraphicsContext3DPrivate::generateMipmap):
(WebCore::GraphicsContext3DPrivate::getActiveAttrib):
(WebCore::GraphicsContext3DPrivate::getActiveUniform):
(WebCore::GraphicsContext3DPrivate::getAttachedShaders):
(WebCore::GraphicsContext3DPrivate::getAttribLocation):
(WebCore::GraphicsContext3DPrivate::getBooleanv):
(WebCore::GraphicsContext3DPrivate::getBufferParameteriv):
(WebCore::GraphicsContext3DPrivate::getContextAttributes):
(WebCore::GraphicsContext3DPrivate::getError):
(WebCore::GraphicsContext3DPrivate::getFloatv):
(WebCore::GraphicsContext3DPrivate::getFramebufferAttachmentParameteriv):
(WebCore::GraphicsContext3DPrivate::getIntegerv):
(WebCore::GraphicsContext3DPrivate::getProgramiv):
(WebCore::GraphicsContext3DPrivate::getProgramInfoLog):
(WebCore::GraphicsContext3DPrivate::getRenderbufferParameteriv):
(WebCore::GraphicsContext3DPrivate::getShaderiv):
(WebCore::GraphicsContext3DPrivate::getShaderInfoLog):
(WebCore::GraphicsContext3DPrivate::getShaderSource):
(WebCore::GraphicsContext3DPrivate::getString):
(WebCore::GraphicsContext3DPrivate::getTexParameterfv):
(WebCore::GraphicsContext3DPrivate::getTexParameteriv):
(WebCore::GraphicsContext3DPrivate::getUniformfv):
(WebCore::GraphicsContext3DPrivate::getUniformiv):
(WebCore::GraphicsContext3DPrivate::getUniformLocation):
(WebCore::GraphicsContext3DPrivate::getVertexAttribfv):
(WebCore::GraphicsContext3DPrivate::getVertexAttribiv):
(WebCore::GraphicsContext3DPrivate::getVertexAttribOffset):
(WebCore::GraphicsContext3DPrivate::hint):
(WebCore::GraphicsContext3DPrivate::isBuffer):
(WebCore::GraphicsContext3DPrivate::isEnabled):
(WebCore::GraphicsContext3DPrivate::isFramebuffer):
(WebCore::GraphicsContext3DPrivate::isProgram):
(WebCore::GraphicsContext3DPrivate::isRenderbuffer):
(WebCore::GraphicsContext3DPrivate::isShader):
(WebCore::GraphicsContext3DPrivate::isTexture):
(WebCore::GraphicsContext3DPrivate::lineWidth):
(WebCore::GraphicsContext3DPrivate::linkProgram):
(WebCore::GraphicsContext3DPrivate::pixelStorei):
(WebCore::GraphicsContext3DPrivate::polygonOffset):
(WebCore::GraphicsContext3DPrivate::readPixels):
(WebCore::GraphicsContext3DPrivate::renderbufferStorage):
(WebCore::GraphicsContext3DPrivate::sampleCoverage):
(WebCore::GraphicsContext3DPrivate::scissor):
(WebCore::GraphicsContext3DPrivate::shaderSource):
(WebCore::GraphicsContext3DPrivate::stencilFunc):
(WebCore::GraphicsContext3DPrivate::stencilFuncSeparate):
(WebCore::GraphicsContext3DPrivate::stencilMask):
(WebCore::GraphicsContext3DPrivate::stencilMaskSeparate):
(WebCore::GraphicsContext3DPrivate::stencilOp):
(WebCore::GraphicsContext3DPrivate::stencilOpSeparate):
(WebCore::GraphicsContext3DPrivate::texImage2D):
(WebCore::GraphicsContext3DPrivate::texParameterf):
(WebCore::GraphicsContext3DPrivate::texParameteri):
(WebCore::GraphicsContext3DPrivate::texSubImage2D):
(WebCore::GraphicsContext3DPrivate::uniform1f):
(WebCore::GraphicsContext3DPrivate::uniform1fv):
(WebCore::GraphicsContext3DPrivate::uniform1i):
(WebCore::GraphicsContext3DPrivate::uniform1iv):
(WebCore::GraphicsContext3DPrivate::uniform2f):
(WebCore::GraphicsContext3DPrivate::uniform2fv):
(WebCore::GraphicsContext3DPrivate::uniform2i):
(WebCore::GraphicsContext3DPrivate::uniform2iv):
(WebCore::GraphicsContext3DPrivate::uniform3f):
(WebCore::GraphicsContext3DPrivate::uniform3fv):
(WebCore::GraphicsContext3DPrivate::uniform3i):
(WebCore::GraphicsContext3DPrivate::uniform3iv):
(WebCore::GraphicsContext3DPrivate::uniform4f):
(WebCore::GraphicsContext3DPrivate::uniform4fv):
(WebCore::GraphicsContext3DPrivate::uniform4i):
(WebCore::GraphicsContext3DPrivate::uniform4iv):
(WebCore::GraphicsContext3DPrivate::uniformMatrix2fv):
(WebCore::GraphicsContext3DPrivate::uniformMatrix3fv):
(WebCore::GraphicsContext3DPrivate::uniformMatrix4fv):
(WebCore::GraphicsContext3DPrivate::useProgram):
(WebCore::GraphicsContext3DPrivate::validateProgram):
(WebCore::GraphicsContext3DPrivate::vertexAttrib1f):
(WebCore::GraphicsContext3DPrivate::vertexAttrib1fv):
(WebCore::GraphicsContext3DPrivate::vertexAttrib2f):
(WebCore::GraphicsContext3DPrivate::vertexAttrib2fv):
(WebCore::GraphicsContext3DPrivate::vertexAttrib3f):
(WebCore::GraphicsContext3DPrivate::vertexAttrib3fv):
(WebCore::GraphicsContext3DPrivate::vertexAttrib4f):
(WebCore::GraphicsContext3DPrivate::vertexAttrib4fv):
(WebCore::GraphicsContext3DPrivate::vertexAttribPointer):
(WebCore::GraphicsContext3DPrivate::viewport):
(WebCore::GraphicsContext3DPrivate::createBuffer):
(WebCore::GraphicsContext3DPrivate::createFramebuffer):
(WebCore::GraphicsContext3DPrivate::createProgram):
(WebCore::GraphicsContext3DPrivate::createRenderbuffer):
(WebCore::GraphicsContext3DPrivate::createShader):
(WebCore::GraphicsContext3DPrivate::createTexture):
(WebCore::GraphicsContext3DPrivate::deleteBuffer):
(WebCore::GraphicsContext3DPrivate::deleteFramebuffer):
(WebCore::GraphicsContext3DPrivate::deleteProgram):
(WebCore::GraphicsContext3DPrivate::deleteRenderbuffer):
(WebCore::GraphicsContext3DPrivate::deleteShader):
(WebCore::GraphicsContext3DPrivate::deleteTexture):
(WebCore::GraphicsContext3DPrivate::synthesizeGLError):
(WebCore::GraphicsContext3DPrivate::getExtensions):

  • platform/graphics/efl/GraphicsContext3DPrivate.h: Added.

(WebCore):
(GraphicsContext3DPrivate):

Location:
trunk/Source/WebCore
Files:
2 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r109060 r109061  
     12012-02-27  Hyowon Kim  <hw1008.kim@samsung.com>
     2
     3        [EFL] Initial implementation of GraphicsContext3DPrivate
     4        https://bugs.webkit.org/show_bug.cgi?id=62961
     5
     6        Reviewed by Noam Rosenthal.
     7
     8        This patch adds the GraphicsContext3DPrivate class using Evas_GL.
     9        GraphicsContext3DPrivate delegates all GL function calls to Evas_GL_API.
     10
     11        * platform/graphics/efl/GraphicsContext3DPrivate.cpp: Added.
     12        (WebCore):
     13        (WebCore::GraphicsContext3DPrivate::create):
     14        (WebCore::GraphicsContext3DPrivate::GraphicsContext3DPrivate):
     15        (WebCore::GraphicsContext3DPrivate::~GraphicsContext3DPrivate):
     16        (WebCore::GraphicsContext3DPrivate::initialize):
     17        (WebCore::GraphicsContext3DPrivate::createSurface):
     18        (WebCore::GraphicsContext3DPrivate::platformGraphicsContext3D):
     19        (WebCore::GraphicsContext3DPrivate::makeContextCurrent):
     20        (WebCore::GraphicsContext3DPrivate::isGLES2Compliant):
     21        (WebCore::GraphicsContext3DPrivate::activeTexture):
     22        (WebCore::GraphicsContext3DPrivate::attachShader):
     23        (WebCore::GraphicsContext3DPrivate::bindAttribLocation):
     24        (WebCore::GraphicsContext3DPrivate::bindBuffer):
     25        (WebCore::GraphicsContext3DPrivate::bindFramebuffer):
     26        (WebCore::GraphicsContext3DPrivate::bindRenderbuffer):
     27        (WebCore::GraphicsContext3DPrivate::bindTexture):
     28        (WebCore::GraphicsContext3DPrivate::blendColor):
     29        (WebCore::GraphicsContext3DPrivate::blendEquation):
     30        (WebCore::GraphicsContext3DPrivate::blendEquationSeparate):
     31        (WebCore::GraphicsContext3DPrivate::blendFunc):
     32        (WebCore::GraphicsContext3DPrivate::blendFuncSeparate):
     33        (WebCore::GraphicsContext3DPrivate::bufferData):
     34        (WebCore::GraphicsContext3DPrivate::bufferSubData):
     35        (WebCore::GraphicsContext3DPrivate::checkFramebufferStatus):
     36        (WebCore::GraphicsContext3DPrivate::clear):
     37        (WebCore::GraphicsContext3DPrivate::clearColor):
     38        (WebCore::GraphicsContext3DPrivate::clearDepth):
     39        (WebCore::GraphicsContext3DPrivate::clearStencil):
     40        (WebCore::GraphicsContext3DPrivate::colorMask):
     41        (WebCore::GraphicsContext3DPrivate::compileShader):
     42        (WebCore::GraphicsContext3DPrivate::copyTexImage2D):
     43        (WebCore::GraphicsContext3DPrivate::copyTexSubImage2D):
     44        (WebCore::GraphicsContext3DPrivate::cullFace):
     45        (WebCore::GraphicsContext3DPrivate::depthFunc):
     46        (WebCore::GraphicsContext3DPrivate::depthMask):
     47        (WebCore::GraphicsContext3DPrivate::depthRange):
     48        (WebCore::GraphicsContext3DPrivate::detachShader):
     49        (WebCore::GraphicsContext3DPrivate::disable):
     50        (WebCore::GraphicsContext3DPrivate::disableVertexAttribArray):
     51        (WebCore::GraphicsContext3DPrivate::drawArrays):
     52        (WebCore::GraphicsContext3DPrivate::drawElements):
     53        (WebCore::GraphicsContext3DPrivate::enable):
     54        (WebCore::GraphicsContext3DPrivate::enableVertexAttribArray):
     55        (WebCore::GraphicsContext3DPrivate::finish):
     56        (WebCore::GraphicsContext3DPrivate::flush):
     57        (WebCore::GraphicsContext3DPrivate::framebufferRenderbuffer):
     58        (WebCore::GraphicsContext3DPrivate::framebufferTexture2D):
     59        (WebCore::GraphicsContext3DPrivate::frontFace):
     60        (WebCore::GraphicsContext3DPrivate::generateMipmap):
     61        (WebCore::GraphicsContext3DPrivate::getActiveAttrib):
     62        (WebCore::GraphicsContext3DPrivate::getActiveUniform):
     63        (WebCore::GraphicsContext3DPrivate::getAttachedShaders):
     64        (WebCore::GraphicsContext3DPrivate::getAttribLocation):
     65        (WebCore::GraphicsContext3DPrivate::getBooleanv):
     66        (WebCore::GraphicsContext3DPrivate::getBufferParameteriv):
     67        (WebCore::GraphicsContext3DPrivate::getContextAttributes):
     68        (WebCore::GraphicsContext3DPrivate::getError):
     69        (WebCore::GraphicsContext3DPrivate::getFloatv):
     70        (WebCore::GraphicsContext3DPrivate::getFramebufferAttachmentParameteriv):
     71        (WebCore::GraphicsContext3DPrivate::getIntegerv):
     72        (WebCore::GraphicsContext3DPrivate::getProgramiv):
     73        (WebCore::GraphicsContext3DPrivate::getProgramInfoLog):
     74        (WebCore::GraphicsContext3DPrivate::getRenderbufferParameteriv):
     75        (WebCore::GraphicsContext3DPrivate::getShaderiv):
     76        (WebCore::GraphicsContext3DPrivate::getShaderInfoLog):
     77        (WebCore::GraphicsContext3DPrivate::getShaderSource):
     78        (WebCore::GraphicsContext3DPrivate::getString):
     79        (WebCore::GraphicsContext3DPrivate::getTexParameterfv):
     80        (WebCore::GraphicsContext3DPrivate::getTexParameteriv):
     81        (WebCore::GraphicsContext3DPrivate::getUniformfv):
     82        (WebCore::GraphicsContext3DPrivate::getUniformiv):
     83        (WebCore::GraphicsContext3DPrivate::getUniformLocation):
     84        (WebCore::GraphicsContext3DPrivate::getVertexAttribfv):
     85        (WebCore::GraphicsContext3DPrivate::getVertexAttribiv):
     86        (WebCore::GraphicsContext3DPrivate::getVertexAttribOffset):
     87        (WebCore::GraphicsContext3DPrivate::hint):
     88        (WebCore::GraphicsContext3DPrivate::isBuffer):
     89        (WebCore::GraphicsContext3DPrivate::isEnabled):
     90        (WebCore::GraphicsContext3DPrivate::isFramebuffer):
     91        (WebCore::GraphicsContext3DPrivate::isProgram):
     92        (WebCore::GraphicsContext3DPrivate::isRenderbuffer):
     93        (WebCore::GraphicsContext3DPrivate::isShader):
     94        (WebCore::GraphicsContext3DPrivate::isTexture):
     95        (WebCore::GraphicsContext3DPrivate::lineWidth):
     96        (WebCore::GraphicsContext3DPrivate::linkProgram):
     97        (WebCore::GraphicsContext3DPrivate::pixelStorei):
     98        (WebCore::GraphicsContext3DPrivate::polygonOffset):
     99        (WebCore::GraphicsContext3DPrivate::readPixels):
     100        (WebCore::GraphicsContext3DPrivate::renderbufferStorage):
     101        (WebCore::GraphicsContext3DPrivate::sampleCoverage):
     102        (WebCore::GraphicsContext3DPrivate::scissor):
     103        (WebCore::GraphicsContext3DPrivate::shaderSource):
     104        (WebCore::GraphicsContext3DPrivate::stencilFunc):
     105        (WebCore::GraphicsContext3DPrivate::stencilFuncSeparate):
     106        (WebCore::GraphicsContext3DPrivate::stencilMask):
     107        (WebCore::GraphicsContext3DPrivate::stencilMaskSeparate):
     108        (WebCore::GraphicsContext3DPrivate::stencilOp):
     109        (WebCore::GraphicsContext3DPrivate::stencilOpSeparate):
     110        (WebCore::GraphicsContext3DPrivate::texImage2D):
     111        (WebCore::GraphicsContext3DPrivate::texParameterf):
     112        (WebCore::GraphicsContext3DPrivate::texParameteri):
     113        (WebCore::GraphicsContext3DPrivate::texSubImage2D):
     114        (WebCore::GraphicsContext3DPrivate::uniform1f):
     115        (WebCore::GraphicsContext3DPrivate::uniform1fv):
     116        (WebCore::GraphicsContext3DPrivate::uniform1i):
     117        (WebCore::GraphicsContext3DPrivate::uniform1iv):
     118        (WebCore::GraphicsContext3DPrivate::uniform2f):
     119        (WebCore::GraphicsContext3DPrivate::uniform2fv):
     120        (WebCore::GraphicsContext3DPrivate::uniform2i):
     121        (WebCore::GraphicsContext3DPrivate::uniform2iv):
     122        (WebCore::GraphicsContext3DPrivate::uniform3f):
     123        (WebCore::GraphicsContext3DPrivate::uniform3fv):
     124        (WebCore::GraphicsContext3DPrivate::uniform3i):
     125        (WebCore::GraphicsContext3DPrivate::uniform3iv):
     126        (WebCore::GraphicsContext3DPrivate::uniform4f):
     127        (WebCore::GraphicsContext3DPrivate::uniform4fv):
     128        (WebCore::GraphicsContext3DPrivate::uniform4i):
     129        (WebCore::GraphicsContext3DPrivate::uniform4iv):
     130        (WebCore::GraphicsContext3DPrivate::uniformMatrix2fv):
     131        (WebCore::GraphicsContext3DPrivate::uniformMatrix3fv):
     132        (WebCore::GraphicsContext3DPrivate::uniformMatrix4fv):
     133        (WebCore::GraphicsContext3DPrivate::useProgram):
     134        (WebCore::GraphicsContext3DPrivate::validateProgram):
     135        (WebCore::GraphicsContext3DPrivate::vertexAttrib1f):
     136        (WebCore::GraphicsContext3DPrivate::vertexAttrib1fv):
     137        (WebCore::GraphicsContext3DPrivate::vertexAttrib2f):
     138        (WebCore::GraphicsContext3DPrivate::vertexAttrib2fv):
     139        (WebCore::GraphicsContext3DPrivate::vertexAttrib3f):
     140        (WebCore::GraphicsContext3DPrivate::vertexAttrib3fv):
     141        (WebCore::GraphicsContext3DPrivate::vertexAttrib4f):
     142        (WebCore::GraphicsContext3DPrivate::vertexAttrib4fv):
     143        (WebCore::GraphicsContext3DPrivate::vertexAttribPointer):
     144        (WebCore::GraphicsContext3DPrivate::viewport):
     145        (WebCore::GraphicsContext3DPrivate::createBuffer):
     146        (WebCore::GraphicsContext3DPrivate::createFramebuffer):
     147        (WebCore::GraphicsContext3DPrivate::createProgram):
     148        (WebCore::GraphicsContext3DPrivate::createRenderbuffer):
     149        (WebCore::GraphicsContext3DPrivate::createShader):
     150        (WebCore::GraphicsContext3DPrivate::createTexture):
     151        (WebCore::GraphicsContext3DPrivate::deleteBuffer):
     152        (WebCore::GraphicsContext3DPrivate::deleteFramebuffer):
     153        (WebCore::GraphicsContext3DPrivate::deleteProgram):
     154        (WebCore::GraphicsContext3DPrivate::deleteRenderbuffer):
     155        (WebCore::GraphicsContext3DPrivate::deleteShader):
     156        (WebCore::GraphicsContext3DPrivate::deleteTexture):
     157        (WebCore::GraphicsContext3DPrivate::synthesizeGLError):
     158        (WebCore::GraphicsContext3DPrivate::getExtensions):
     159        * platform/graphics/efl/GraphicsContext3DPrivate.h: Added.
     160        (WebCore):
     161        (GraphicsContext3DPrivate):
     162
    11632012-02-27  Shawn Singh  <shawnsingh@chromium.org>
    2164
Note: See TracChangeset for help on using the changeset viewer.