Changeset 112165 in webkit


Ignore:
Timestamp:
Mar 26, 2012 3:59:53 PM (12 years ago)
Author:
commit-queue@webkit.org
Message:

[Chromium] Crash in Canvas2DLayerChromium::pushPropertiesTo
https://bugs.webkit.org/show_bug.cgi?id=82243

Patch by Justin Novosad <junov@chromium.org> on 2012-03-26
Reviewed by James Robinson.

Adding null pointer check to prevent crash and texture object
validity check to prevent potential graphics glitch

  • platform/graphics/chromium/Canvas2DLayerChromium.cpp:

(WebCore::Canvas2DLayerChromium::pushPropertiesTo):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r112163 r112165  
     12012-03-26  Justin Novosad  <junov@chromium.org>
     2
     3        [Chromium] Crash in Canvas2DLayerChromium::pushPropertiesTo
     4        https://bugs.webkit.org/show_bug.cgi?id=82243
     5
     6        Reviewed by James Robinson.
     7
     8        Adding null pointer check to prevent crash and texture object
     9        validity check to prevent potential graphics glitch
     10
     11        * platform/graphics/chromium/Canvas2DLayerChromium.cpp:
     12        (WebCore::Canvas2DLayerChromium::pushPropertiesTo):
     13
    1142012-03-26  Adam Klein  <adamk@chromium.org>
    215
  • trunk/Source/WebCore/platform/graphics/chromium/Canvas2DLayerChromium.cpp

    r111112 r112165  
    155155
    156156    CCTextureLayerImpl* textureLayer = static_cast<CCTextureLayerImpl*>(layer);
    157     if (m_useDoubleBuffering)
    158         textureLayer->setTextureId(m_frontTexture->textureId());
    159     else
     157    if (m_useDoubleBuffering) {
     158        if (m_frontTexture && m_frontTexture->isValid(m_size, GraphicsContext3D::RGBA))
     159            textureLayer->setTextureId(m_frontTexture->textureId());
     160        else
     161            textureLayer->setTextureId(0);
     162    } else
    160163        textureLayer->setTextureId(m_backTextureId);
    161164}
Note: See TracChangeset for help on using the changeset viewer.