From 6ca0f0452f06325e4abd3acca40a0a2f13fb644c Mon Sep 17 00:00:00 2001 From: Derek Sollenberger Date: Fri, 17 Dec 2010 13:44:51 -0500 Subject: Add initial support for OpenGL plugins. bug: 2907737 Change-Id: I6f4f21146c834554db5ecb67fed8994f1cdc2cfe --- WebCore/platform/graphics/android/GraphicsLayerAndroid.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'WebCore/platform/graphics/android/GraphicsLayerAndroid.cpp') 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"); -- cgit v1.1