From 8f6cf525ead3381029545c1d292c8586ec45ddb0 Mon Sep 17 00:00:00 2001 From: Veluppillai Arulesan Date: Tue, 11 Dec 2012 20:03:08 -0500 Subject: Add call to parent to resync for webgl Adding call to resync the parent for webgl compositing (cherry-picked from commit 6da7f679dc33e74ab2d7e6045fbecdbb5a772d3a) Change-Id: Id96c44da10a62e0dc90938868877b295a4327153 --- Source/WebCore/platform/graphics/android/GraphicsLayerAndroid.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Source/WebCore/platform/graphics/android/GraphicsLayerAndroid.cpp b/Source/WebCore/platform/graphics/android/GraphicsLayerAndroid.cpp index 3196895..7d11030 100644 --- a/Source/WebCore/platform/graphics/android/GraphicsLayerAndroid.cpp +++ b/Source/WebCore/platform/graphics/android/GraphicsLayerAndroid.cpp @@ -1100,6 +1100,11 @@ void GraphicsLayerAndroid::setContentsToCanvas(PlatformLayer* canvasLayer) m_contentLayer->unref(); m_contentLayer = canvasLayer; + // If the parent exists then notify it to re-sync it's children + if (m_parent) { + GraphicsLayerAndroid* parent = static_cast(m_parent); + parent->m_needsSyncChildren = true; + } m_needsSyncChildren = true; m_is3DCanvas = true; -- cgit v1.1