diff options
author | Derek Sollenberger <djsollen@google.com> | 2010-12-17 13:44:51 -0500 |
---|---|---|
committer | Derek Sollenberger <djsollen@google.com> | 2010-12-20 08:21:42 -0500 |
commit | 6ca0f0452f06325e4abd3acca40a0a2f13fb644c (patch) | |
tree | 26831dc6154fdcb44181b40e27790f03e02e96b9 /WebCore/platform/graphics/android/GraphicsLayerAndroid.cpp | |
parent | ab1ac7bfdac5723904e94d61f42e9c2d9f15fdb4 (diff) | |
download | external_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.cpp | 12 |
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"); |