summaryrefslogtreecommitdiffstats
path: root/WebCore/platform/graphics/android/GraphicsLayerAndroid.cpp
diff options
context:
space:
mode:
authorDerek Sollenberger <djsollen@google.com>2010-12-17 13:44:51 -0500
committerDerek Sollenberger <djsollen@google.com>2010-12-20 08:21:42 -0500
commit6ca0f0452f06325e4abd3acca40a0a2f13fb644c (patch)
tree26831dc6154fdcb44181b40e27790f03e02e96b9 /WebCore/platform/graphics/android/GraphicsLayerAndroid.cpp
parentab1ac7bfdac5723904e94d61f42e9c2d9f15fdb4 (diff)
downloadexternal_webkit-6ca0f0452f06325e4abd3acca40a0a2f13fb644c.zip
external_webkit-6ca0f0452f06325e4abd3acca40a0a2f13fb644c.tar.gz
external_webkit-6ca0f0452f06325e4abd3acca40a0a2f13fb644c.tar.bz2
Add initial support for OpenGL plugins.
bug: 2907737 Change-Id: I6f4f21146c834554db5ecb67fed8994f1cdc2cfe
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");