diff options
author | Derek Sollenberger <djsollen@google.com> | 2009-07-16 11:32:55 -0400 |
---|---|---|
committer | Derek Sollenberger <djsollen@google.com> | 2009-07-17 08:21:32 -0400 |
commit | f86737b0ce8c81f2b529503f83eb8b064769eeca (patch) | |
tree | 5760510265f8d6e0bca8e34a57e260b594c4ac34 /WebCore/plugins | |
parent | eb7090d25469ad3c01164f9155908dd21279d74e (diff) | |
download | external_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.cpp | 12 |
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 : { |