Changeset 64046 in webkit


Ignore:
Timestamp:
Jul 26, 2010 8:43:55 AM (14 years ago)
Author:
senorblanco@chromium.org
Message:

2010-07-23 Stephen White <senorblanco@chromium.org>

Reviewed by Darin Fisher.

Implement OpenGLES2 helper classes.
https://bugs.webkit.org/show_bug.cgi?id=42905

GLES2Canvas and GLES2Texture are some simple OpenGLES2 helper classes
for managing state, samplers and textures.

When this is hooked up, it will be covered by many layout tests.

  • WebCore.gypi: Add new files to chromium build (contents are protected by #if's for now).
  • platform/graphics/chromium/GLES2Canvas.cpp: Added. (WebCore::affineTo3x3): (WebCore::GLES2Canvas::State::State): (WebCore::GLES2Canvas::GLES2Canvas): (WebCore::GLES2Canvas::~GLES2Canvas): (WebCore::GLES2Canvas::clearRect): (WebCore::GLES2Canvas::fillRect): (WebCore::GLES2Canvas::setFillColor): (WebCore::GLES2Canvas::setAlpha): (WebCore::GLES2Canvas::translate): (WebCore::GLES2Canvas::rotate): (WebCore::GLES2Canvas::scale): (WebCore::GLES2Canvas::concatCTM): (WebCore::GLES2Canvas::save): (WebCore::GLES2Canvas::restore): (WebCore::GLES2Canvas::drawTexturedRect): (WebCore::GLES2Canvas::setCompositeOperation): (WebCore::GLES2Canvas::applyCompositeOperator): (WebCore::GLES2Canvas::getQuadVertices): (WebCore::GLES2Canvas::getQuadIndices): (WebCore::loadShader): (WebCore::GLES2Canvas::getSimpleProgram): (WebCore::GLES2Canvas::getTexProgram): (WebCore::GLES2Canvas::createTexture): (WebCore::GLES2Canvas::getTexture): (WebCore::GLES2Canvas::checkGLError):
  • platform/graphics/chromium/GLES2Canvas.h: Added. (WebCore::GLES2Canvas::gles2Context):
  • platform/graphics/chromium/GLES2Texture.cpp: Added. (WebCore::GLES2Texture::GLES2Texture): (WebCore::GLES2Texture::~GLES2Texture): (WebCore::GLES2Texture::create): (WebCore::convertFormat): (WebCore::GLES2Texture::load): (WebCore::GLES2Texture::bind):
  • platform/graphics/chromium/GLES2Texture.h: Added. (WebCore::GLES2Texture::): (WebCore::GLES2Texture::format): (WebCore::GLES2Texture::width): (WebCore::GLES2Texture::height):
Location:
trunk/WebCore
Files:
4 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r64045 r64046  
     12010-07-23  Stephen White  <senorblanco@chromium.org>
     2
     3        Reviewed by Darin Fisher.
     4
     5        Implement OpenGLES2 helper classes.
     6        https://bugs.webkit.org/show_bug.cgi?id=42905
     7
     8        GLES2Canvas and GLES2Texture are some simple OpenGLES2 helper classes
     9        for managing state, samplers and textures.
     10
     11        When this is hooked up, it will be covered by many layout tests.
     12
     13        * WebCore.gypi:
     14        Add new files to chromium build (contents are protected by #if's for now).
     15        * platform/graphics/chromium/GLES2Canvas.cpp: Added.
     16        (WebCore::affineTo3x3):
     17        (WebCore::GLES2Canvas::State::State):
     18        (WebCore::GLES2Canvas::GLES2Canvas):
     19        (WebCore::GLES2Canvas::~GLES2Canvas):
     20        (WebCore::GLES2Canvas::clearRect):
     21        (WebCore::GLES2Canvas::fillRect):
     22        (WebCore::GLES2Canvas::setFillColor):
     23        (WebCore::GLES2Canvas::setAlpha):
     24        (WebCore::GLES2Canvas::translate):
     25        (WebCore::GLES2Canvas::rotate):
     26        (WebCore::GLES2Canvas::scale):
     27        (WebCore::GLES2Canvas::concatCTM):
     28        (WebCore::GLES2Canvas::save):
     29        (WebCore::GLES2Canvas::restore):
     30        (WebCore::GLES2Canvas::drawTexturedRect):
     31        (WebCore::GLES2Canvas::setCompositeOperation):
     32        (WebCore::GLES2Canvas::applyCompositeOperator):
     33        (WebCore::GLES2Canvas::getQuadVertices):
     34        (WebCore::GLES2Canvas::getQuadIndices):
     35        (WebCore::loadShader):
     36        (WebCore::GLES2Canvas::getSimpleProgram):
     37        (WebCore::GLES2Canvas::getTexProgram):
     38        (WebCore::GLES2Canvas::createTexture):
     39        (WebCore::GLES2Canvas::getTexture):
     40        (WebCore::GLES2Canvas::checkGLError):
     41        * platform/graphics/chromium/GLES2Canvas.h: Added.
     42        (WebCore::GLES2Canvas::gles2Context):
     43        * platform/graphics/chromium/GLES2Texture.cpp: Added.
     44        (WebCore::GLES2Texture::GLES2Texture):
     45        (WebCore::GLES2Texture::~GLES2Texture):
     46        (WebCore::GLES2Texture::create):
     47        (WebCore::convertFormat):
     48        (WebCore::GLES2Texture::load):
     49        (WebCore::GLES2Texture::bind):
     50        * platform/graphics/chromium/GLES2Texture.h: Added.
     51        (WebCore::GLES2Texture::):
     52        (WebCore::GLES2Texture::format):
     53        (WebCore::GLES2Texture::width):
     54        (WebCore::GLES2Texture::height):
     55
     56
    1572010-07-26  Jeremy Orlow  <jorlow@chromium.org>
    258
  • trunk/WebCore/WebCore.gypi

    r63952 r64046  
    21832183            'platform/graphics/chromium/FontUtilsChromiumWin.cpp',
    21842184            'platform/graphics/chromium/FontUtilsChromiumWin.h',
     2185            'platform/graphics/chromium/GLES2Canvas.cpp',
     2186            'platform/graphics/chromium/GLES2Canvas.h',
     2187            'platform/graphics/chromium/GLES2Texture.cpp',
     2188            'platform/graphics/chromium/GLES2Texture.h',
    21852189            'platform/graphics/chromium/GlyphPageTreeNodeChromiumWin.cpp',
    21862190            'platform/graphics/chromium/GlyphPageTreeNodeLinux.cpp',
Note: See TracChangeset for help on using the changeset viewer.