https://bugs.webkit.org/show_bug.cgi?id=81250
Patch by Dana Jansens <danakj@chromium.org> on 2012-03-16
Reviewed by James Robinson.
* platform/graphics/chromium/cc/CCVideoLayerImpl.cpp:
(WebCore::CCVideoLayerImpl::appendQuads):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@110964
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2012-03-16 Dana Jansens <danakj@chromium.org>
+
+ [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 <morrita@chromium.org>
Unreviewed attempt to fix Chromium windows build.
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);