summaryrefslogtreecommitdiffstats
path: root/WebCore/platform/graphics/android/GraphicsLayerAndroid.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/platform/graphics/android/GraphicsLayerAndroid.cpp')
-rw-r--r--WebCore/platform/graphics/android/GraphicsLayerAndroid.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/WebCore/platform/graphics/android/GraphicsLayerAndroid.cpp b/WebCore/platform/graphics/android/GraphicsLayerAndroid.cpp
index 1efbecc..2fa1215 100644
--- a/WebCore/platform/graphics/android/GraphicsLayerAndroid.cpp
+++ b/WebCore/platform/graphics/android/GraphicsLayerAndroid.cpp
@@ -751,6 +751,18 @@ void GraphicsLayerAndroid::setContentsToImage(Image* image)
}
}
+void GraphicsLayerAndroid::setContentsToMedia(PlatformLayer* mediaLayer)
+{
+ if (m_contentLayer != mediaLayer) {
+ m_contentLayer->unref();
+ m_contentLayer = mediaLayer;
+ m_contentLayer->ref();
+ setNeedsDisplay();
+ }
+
+ askForSync();
+}
+
PlatformLayer* GraphicsLayerAndroid::platformLayer() const
{
LOG("platformLayer");