Changeset 57745 in webkit


Ignore:
Timestamp:
Apr 16, 2010 2:27:03 PM (14 years ago)
Author:
eric@webkit.org
Message:

2010-04-16 Jarkko Sakkinen <jarkko.j.sakkinen@gmail.com>

Reviewed by Simon Hausmann.

[Qt] WebKit compilation fails with --3d-canvas
https://bugs.webkit.org/show_bug.cgi?id=37699

API for readPixels() has been changed.

  • platform/graphics/qt/GraphicsContext3DQt.cpp: (WebCore::GraphicsContext3D::readPixels):
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r57744 r57745  
     12010-04-16  Jarkko Sakkinen  <jarkko.j.sakkinen@gmail.com>
     2
     3        Reviewed by Simon Hausmann.
     4
     5        [Qt] WebKit compilation fails with --3d-canvas
     6        https://bugs.webkit.org/show_bug.cgi?id=37699
     7       
     8        API for readPixels() has been changed.
     9
     10        * platform/graphics/qt/GraphicsContext3DQt.cpp:
     11        (WebCore::GraphicsContext3D::readPixels):
     12
    1132010-04-16  No'am Rosenthal  <noam.rosenthal@nokia.com>
    214
  • trunk/WebCore/platform/graphics/qt/GraphicsContext3DQt.cpp

    r57267 r57745  
    995995}
    996996
    997 PassRefPtr<WebGLArray> GraphicsContext3D::readPixels(long x, long y, unsigned long width, unsigned long height, unsigned long format, unsigned long type)
     997void GraphicsContext3D::readPixels(long x, long y, unsigned long width, unsigned long height, unsigned long format, unsigned long type, void* data)
    998998{
    999999    m_internal->m_glWidget->makeCurrent();
    10001000   
    10011001    if (type != GraphicsContext3D::UNSIGNED_BYTE || format != GraphicsContext3D::RGBA)
    1002         return 0;
     1002        return;
    10031003       
    1004     RefPtr<WebGLUnsignedByteArray> array = WebGLUnsignedByteArray::create(width * height * 4);
    1005     glReadPixels(x, y, width, height, format, type, (GLvoid*) array->data());
    1006     return array;   
     1004    glReadPixels(x, y, width, height, format, type, (GLvoid*) data);
    10071005}
    10081006
Note: See TracChangeset for help on using the changeset viewer.