summaryrefslogtreecommitdiffstats
path: root/WebCore/plugins
diff options
context:
space:
mode:
authorDerek Sollenberger <djsollen@google.com>2009-07-16 11:32:55 -0400
committerDerek Sollenberger <djsollen@google.com>2009-07-17 08:21:32 -0400
commitf86737b0ce8c81f2b529503f83eb8b064769eeca (patch)
tree5760510265f8d6e0bca8e34a57e260b594c4ac34 /WebCore/plugins
parenteb7090d25469ad3c01164f9155908dd21279d74e (diff)
downloadexternal_webkit-f86737b0ce8c81f2b529503f83eb8b064769eeca.zip
external_webkit-f86737b0ce8c81f2b529503f83eb8b064769eeca.tar.gz
external_webkit-f86737b0ce8c81f2b529503f83eb8b064769eeca.tar.bz2
Adding plugin support for an RGBA surface view.
Diffstat (limited to 'WebCore/plugins')
-rw-r--r--WebCore/plugins/android/PluginViewAndroid.cpp12
1 files changed, 4 insertions, 8 deletions
diff --git a/WebCore/plugins/android/PluginViewAndroid.cpp b/WebCore/plugins/android/PluginViewAndroid.cpp
index 5070792..230a389 100644
--- a/WebCore/plugins/android/PluginViewAndroid.cpp
+++ b/WebCore/plugins/android/PluginViewAndroid.cpp
@@ -86,6 +86,7 @@ extern void ANPMatrixInterfaceV0_Init(ANPInterface* value);
extern void ANPOffscreenInterfaceV0_Init(ANPInterface* value);
extern void ANPPaintInterfaceV0_Init(ANPInterface* value);
extern void ANPPathInterfaceV0_Init(ANPInterface* value);
+extern void ANPSurfaceInterfaceV0_Init(ANPInterface* value);
extern void ANPTypefaceInterfaceV0_Init(ANPInterface* value);
extern void ANPWindowInterfaceV0_Init(ANPInterface* value);
@@ -106,6 +107,7 @@ static const VarProcPair gVarProcs[] = {
{ VARPROCLINE(MatrixInterfaceV0) },
{ VARPROCLINE(PaintInterfaceV0) },
{ VARPROCLINE(PathInterfaceV0) },
+ { VARPROCLINE(SurfaceInterfaceV0) },
{ VARPROCLINE(TypefaceInterfaceV0) },
{ VARPROCLINE(WindowInterfaceV0) },
};
@@ -533,14 +535,8 @@ NPError PluginView::platformSetValue(NPPVariable variable, void* value)
switch (variable) {
case kRequestDrawingModel_ANPSetValue: {
ANPDrawingModel model = reinterpret_cast<ANPDrawingModel>(value);
- switch (model) {
- case kBitmap_ANPDrawingModel:
- m_window->setDrawingModel(model);
- error = NPERR_NO_ERROR;
- break;
- default:
- break;
- }
+ if (m_window->setDrawingModel(model))
+ error = NPERR_NO_ERROR;
break;
}
case kAcceptEvents_ANPSetValue : {