Title: [110964] trunk/Source/WebCore
- Revision
- 110964
- Author
- [email protected]
- Date
- 2012-03-16 01:20:04 -0700 (Fri, 16 Mar 2012)
Log Message
[chromium] Don't create a quad for video layers without a frame (avoid use of uninitialized m_format)
https://bugs.webkit.org/show_bug.cgi?id=81250
Patch by Dana Jansens <[email protected]> on 2012-03-16
Reviewed by James Robinson.
* platform/graphics/chromium/cc/CCVideoLayerImpl.cpp:
(WebCore::CCVideoLayerImpl::appendQuads):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (110963 => 110964)
--- trunk/Source/WebCore/ChangeLog 2012-03-16 08:19:28 UTC (rev 110963)
+++ trunk/Source/WebCore/ChangeLog 2012-03-16 08:20:04 UTC (rev 110964)
@@ -1,3 +1,13 @@
+2012-03-16 Dana Jansens <[email protected]>
+
+ [chromium] Don't create a quad for video layers without a frame (avoid use of uninitialized m_format)
+ https://bugs.webkit.org/show_bug.cgi?id=81250
+
+ Reviewed by James Robinson.
+
+ * platform/graphics/chromium/cc/CCVideoLayerImpl.cpp:
+ (WebCore::CCVideoLayerImpl::appendQuads):
+
2012-03-16 Hajime Morrita <[email protected]>
Unreviewed attempt to fix Chromium windows build.
Modified: trunk/Source/WebCore/platform/graphics/chromium/cc/CCVideoLayerImpl.cpp (110963 => 110964)
--- trunk/Source/WebCore/platform/graphics/chromium/cc/CCVideoLayerImpl.cpp 2012-03-16 08:19:28 UTC (rev 110963)
+++ trunk/Source/WebCore/platform/graphics/chromium/cc/CCVideoLayerImpl.cpp 2012-03-16 08:20:04 UTC (rev 110964)
@@ -156,6 +156,9 @@
void CCVideoLayerImpl::appendQuads(CCQuadCuller& quadList, const CCSharedQuadState* sharedQuadState)
{
+ if (!m_frame)
+ return;
+
IntRect quadRect(IntPoint(), bounds());
OwnPtr<CCVideoDrawQuad> videoQuad = CCVideoDrawQuad::create(sharedQuadState, quadRect, m_textures, m_frame, m_format);
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes