Changeset 112165 in webkit
- Timestamp:
- Mar 26, 2012 3:59:53 PM (12 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r112163 r112165 1 2012-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 1 14 2012-03-26 Adam Klein <adamk@chromium.org> 2 15 -
trunk/Source/WebCore/platform/graphics/chromium/Canvas2DLayerChromium.cpp
r111112 r112165 155 155 156 156 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 160 163 textureLayer->setTextureId(m_backTextureId); 161 164 }
Note: See TracChangeset
for help on using the changeset viewer.