[Webkit-unassigned] [Bug 56825] [Qt] fast/canvas/webgl/context-attributes-alpha-depth-stencil-antialias.html fails

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Mar 25 03:16:30 PDT 2011


https://bugs.webkit.org/show_bug.cgi?id=56825


Benjamin Poulain <benjamin at webkit.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #86508|review?                     |review-
               Flag|                            |




--- Comment #9 from Benjamin Poulain <benjamin at webkit.org>  2011-03-25 03:16:30 PST ---
(From update of attachment 86508)
View in context: https://bugs.webkit.org/attachment.cgi?id=86508&action=review

I made general comments to get me started reviewing this :)

> Source/WebCore/platform/graphics/qt/GraphicsContext3DQt.cpp:451
> +    if (!reshapeMainFbo(1, 1)) {

Why do we create the Fbo of size (1, 1) at this stage?

It seems reasonable to me to have an invalid painter state until GraphicsContext3D::reshape() is called with a valid size. Or some initialization of reshapeMainFbo() is needed in the constructor?

> Source/WebCore/platform/graphics/qt/GraphicsContext3DQt.cpp:454
>          LOG_ERROR("GraphicsContext3D: Wasn't able to create the main framebuffer");
>          m_contextValid = false;
>      }

Shouldn't this code be part of reshapeMainFbo()?
Logging the error and setting m_contextValid = false; seems reasonable to do in the function if the allocation failed.

> Source/WebCore/platform/graphics/qt/GraphicsContext3DQt.cpp:482
> +    m_pixels = QImage(width, height, QImage::Format_ARGB32);

I got rid of m_pixels yesterday :)

> Source/WebCore/platform/graphics/qt/GraphicsContext3DQt.cpp:494
> +    bindRenderbuffer(GraphicsContext3D::RENDERBUFFER, m_depthBuffer);

if !(m_attrs.depth) || QT_OPENGL_ES_2, genRenderbuffers() is not called. So I guess we should not bind the buffer either(?).

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the webkit-unassigned mailing list