Changeset 100190 in webkit


Ignore:
Timestamp:
Nov 14, 2011, 2:22:02 PM (14 years ago)
Author:
commit-queue@webkit.org
Message:

Intermittent asserts in TextureMapperGL::bindSurface on MiniBrowser startup
https://bugs.webkit.org/show_bug.cgi?id=72299

Patch by Viatcheslav Ostapenko <ostapenko.viatcheslav@nokia.com> on 2011-11-14
Reviewed by Noam Rosenthal.

Added check that clipping rect is valid.
Clear GL error that might remain from QT GL operations.
Added GL error assert for scissor test operations.

  • UIProcess/API/qt/qquickwebpage.cpp:

(QQuickWebPagePrivate::paintToCurrentGLContext):

Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r100185 r100190  
     12011-11-14  Viatcheslav Ostapenko  <ostapenko.viatcheslav@nokia.com>
     2
     3        Intermittent asserts in TextureMapperGL::bindSurface on MiniBrowser startup
     4        https://bugs.webkit.org/show_bug.cgi?id=72299
     5
     6        Reviewed by Noam Rosenthal.
     7
     8        Added check that clipping rect is valid.
     9        Clear GL error that might remain from QT GL operations.
     10        Added GL error assert for scissor test operations.
     11
     12        * UIProcess/API/qt/qquickwebpage.cpp:
     13        (QQuickWebPagePrivate::paintToCurrentGLContext):
     14
    1152011-11-14  Anders Carlsson  <andersca@apple.com>
    216
  • trunk/Source/WebKit2/UIProcess/API/qt/qquickwebpage.cpp

    r99946 r100190  
    211211    QRectF clipRect = q->parentItem()->mapRectToScene(q->parentItem()->boundingRect());
    212212
     213    if (!clipRect.isValid())
     214        return;
     215
     216    // Make sure that no GL error code stays from previous QT operations.
     217    glGetError();
     218
    213219    glEnable(GL_SCISSOR_TEST);
     220    ASSERT(!glGetError());
    214221    const int left = clipRect.left();
    215222    const int width = clipRect.width();
     
    218225
    219226    glScissor(left, bottom, width, height);
     227    ASSERT(!glGetError());
    220228
    221229    pageProxy->renderToCurrentGLContext(transform, opacity);
    222230    glDisable(GL_SCISSOR_TEST);
     231    ASSERT(!glGetError());
    223232}
    224233
Note: See TracChangeset for help on using the changeset viewer.