diff options
author | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-01-06 21:10:23 +0000 |
---|---|---|
committer | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-01-06 21:10:23 +0000 |
commit | 0033cc6fe696a94e6fcaafe4ba5d3d1fcb4421cb (patch) | |
tree | e77ca1f18ec9e64a9e3f5a6c377f2eebb33372dc /chrome/renderer | |
parent | 1dcd5e8c3061bcd016dd99a04b939ba23e60497f (diff) | |
download | chromium_src-0033cc6fe696a94e6fcaafe4ba5d3d1fcb4421cb.zip chromium_src-0033cc6fe696a94e6fcaafe4ba5d3d1fcb4421cb.tar.gz chromium_src-0033cc6fe696a94e6fcaafe4ba5d3d1fcb4421cb.tar.bz2 |
Make Pepper plugins work on Linux.
- fix pepper_test_plugin so that it is loaded on Linux
- remove skia & base dependency in test plugin so that it can be compiled with -fPIC
- remove ifdef WIN in pepper code
Patch by neb@chromium.org
Original review: http://codereview.chromium.org/501124/show
BUG=none
TEST=none
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@35649 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer')
-rw-r--r-- | chrome/renderer/render_view.cc | 10 | ||||
-rw-r--r-- | chrome/renderer/webplugin_delegate_pepper.cc | 2 |
2 files changed, 6 insertions, 6 deletions
diff --git a/chrome/renderer/render_view.cc b/chrome/renderer/render_view.cc index 418bf4c..8d4f1d2 100644 --- a/chrome/renderer/render_view.cc +++ b/chrome/renderer/render_view.cc @@ -2674,21 +2674,21 @@ webkit_glue::WebPluginDelegate* RenderView::CreatePluginDelegate( } } if (in_process_plugin) { -#if defined(OS_WIN) // In-proc plugins aren't supported on Linux or Mac. if (use_pepper_host) { return WebPluginDelegatePepper::Create( path, *mime_type_to_use, AsWeakPtr(), - gfx::NativeViewFromId(host_window_)); + 0); } else { +#if defined(OS_WIN) // In-proc plugins aren't supported on Linux or Mac. return WebPluginDelegateImpl::Create( path, *mime_type_to_use, gfx::NativeViewFromId(host_window_)); - } #else - NOTIMPLEMENTED(); - return NULL; + NOTIMPLEMENTED(); + return NULL; #endif + } } return new WebPluginDelegateProxy(*mime_type_to_use, AsWeakPtr()); diff --git a/chrome/renderer/webplugin_delegate_pepper.cc b/chrome/renderer/webplugin_delegate_pepper.cc index 4c32b7b..77dcc1b 100644 --- a/chrome/renderer/webplugin_delegate_pepper.cc +++ b/chrome/renderer/webplugin_delegate_pepper.cc @@ -588,7 +588,7 @@ void WebPluginDelegatePepper::PluginDestroyed() { void WebPluginDelegatePepper::Paint(WebKit::WebCanvas* canvas, const gfx::Rect& rect) { -#if defined(OS_WIN) +#if defined(OS_WIN) || defined(OS_LINUX) if (nested_delegate_) { // TODO(apatrick): The GPU plugin will render to an offscreen render target. // Need to copy it to the screen here. |