Changeset 57745 in webkit
- Timestamp:
- Apr 16, 2010 2:27:03 PM (14 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r57744 r57745 1 2010-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 1 13 2010-04-16 No'am Rosenthal <noam.rosenthal@nokia.com> 2 14 -
trunk/WebCore/platform/graphics/qt/GraphicsContext3DQt.cpp
r57267 r57745 995 995 } 996 996 997 PassRefPtr<WebGLArray> GraphicsContext3D::readPixels(long x, long y, unsigned long width, unsigned long height, unsigned long format, unsigned long type)997 void GraphicsContext3D::readPixels(long x, long y, unsigned long width, unsigned long height, unsigned long format, unsigned long type, void* data) 998 998 { 999 999 m_internal->m_glWidget->makeCurrent(); 1000 1000 1001 1001 if (type != GraphicsContext3D::UNSIGNED_BYTE || format != GraphicsContext3D::RGBA) 1002 return 0;1002 return; 1003 1003 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); 1007 1005 } 1008 1006
Note: See TracChangeset
for help on using the changeset viewer.