Changeset 117664 in webkit


Ignore:
Timestamp:
May 18, 2012 6:13:55 PM (12 years ago)
Author:
enne@google.com
Message:

[chromium] Add diagnostic CRASH calls for tiler crashes
https://bugs.webkit.org/show_bug.cgi?id=86930

Reviewed by James Robinson.

These lines would normally crash on their own due to null pointers,
but having an explicit CRASH call will help us differentiate what the
real problem might be in the crash report.

  • platform/graphics/chromium/TiledLayerChromium.cpp:

(WebCore::TiledLayerChromium::createTile):
(WebCore::TiledLayerChromium::updateTiles):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r117662 r117664  
     12012-05-18  Adrienne Walker  <enne@google.com>
     2
     3        [chromium] Add diagnostic CRASH calls for tiler crashes
     4        https://bugs.webkit.org/show_bug.cgi?id=86930
     5
     6        Reviewed by James Robinson.
     7
     8        These lines would normally crash on their own due to null pointers,
     9        but having an explicit CRASH call will help us differentiate what the
     10        real problem might be in the crash report.
     11
     12        * platform/graphics/chromium/TiledLayerChromium.cpp:
     13        (WebCore::TiledLayerChromium::createTile):
     14        (WebCore::TiledLayerChromium::updateTiles):
     15
    1162012-05-18  Aaron Colwell  <acolwell@chromium.org>
    217
  • trunk/Source/WebCore/platform/graphics/chromium/TiledLayerChromium.cpp

    r117521 r117664  
    262262
    263263    addedTile->dirtyRect = m_tiler->tileRect(addedTile);
     264
     265    // Temporary diagnostic crash.
     266    if (!addedTile)
     267        CRASH();
     268    if (!tileAt(i, j))
     269        CRASH();
     270
    264271    return addedTile;
    265272}
     
    363370            if (!tile)
    364371                tile = createTile(i, j);
     372
     373            // Temporary diagnostic crash
     374            if (!m_tiler)
     375                CRASH();
    365376
    366377            if (!tile->managedTexture()->isValid(m_tiler->tileSize(), m_textureFormat)) {
     
    413424        for (int i = left; i <= right; ++i) {
    414425            UpdatableTile* tile = tileAt(i, j);
     426            if (!tile)
     427                CRASH();
    415428            if (tile->updated)
    416429                tile->copyAndClearDirty();
Note: See TracChangeset for help on using the changeset viewer.