summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVeluppillai Arulesan <varulesa@codeaurora.org>2012-12-11 20:03:08 -0500
committerSteve Kondik <shade@chemlab.org>2013-01-20 18:38:32 -0800
commit8f6cf525ead3381029545c1d292c8586ec45ddb0 (patch)
tree3252024220c10f5b46c91b32602961e32dc4065d
parentf7256e9a2a3bc90454bb86054c91b94ba47d87ea (diff)
downloadexternal_webkit-8f6cf525ead3381029545c1d292c8586ec45ddb0.zip
external_webkit-8f6cf525ead3381029545c1d292c8586ec45ddb0.tar.gz
external_webkit-8f6cf525ead3381029545c1d292c8586ec45ddb0.tar.bz2
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
-rw-r--r--Source/WebCore/platform/graphics/android/GraphicsLayerAndroid.cpp5
1 files changed, 5 insertions, 0 deletions
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<GraphicsLayerAndroid*>(m_parent);
+ parent->m_needsSyncChildren = true;
+ }
m_needsSyncChildren = true;
m_is3DCanvas = true;