diff options
author | mnissler@chromium.org <mnissler@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-07-20 03:47:25 +0000 |
---|---|---|
committer | mnissler@chromium.org <mnissler@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-07-20 03:47:25 +0000 |
commit | ce042a115e76b8ffb4bbbb0485f0d168ba004ad0 (patch) | |
tree | 5f2e48cd4876a2ac345ffc86a65ac5c05131d25d /webkit | |
parent | 8e208d077fa161d7a5a96ccc59361cc1b01fa5a1 (diff) | |
download | chromium_src-ce042a115e76b8ffb4bbbb0485f0d168ba004ad0.zip chromium_src-ce042a115e76b8ffb4bbbb0485f0d168ba004ad0.tar.gz chromium_src-ce042a115e76b8ffb4bbbb0485f0d168ba004ad0.tar.bz2 |
Remove --disable-3d-apis check for pepper interfaces in the renderer.
The flag should only affect NaCl binaries, so this is the wrong place to check. We'll re-introduce a check inside the NaCl plugin to get the desired behavior.
BUG=chromium-os:16667
TEST=configure Disable3DAPIs and observer renderer on chromeos is not crashing upon instantiating flash plugins.
Review URL: http://codereview.chromium.org/7397015
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@93161 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit')
-rw-r--r-- | webkit/plugins/ppapi/plugin_module.cc | 41 |
1 files changed, 19 insertions, 22 deletions
diff --git a/webkit/plugins/ppapi/plugin_module.cc b/webkit/plugins/ppapi/plugin_module.cc index dd4d663..a3f7919 100644 --- a/webkit/plugins/ppapi/plugin_module.cc +++ b/webkit/plugins/ppapi/plugin_module.cc @@ -7,16 +7,16 @@ #include <set> #include "base/command_line.h" -#include "base/message_loop.h" -#include "base/message_loop_proxy.h" #include "base/logging.h" #include "base/memory/scoped_ptr.h" +#include "base/message_loop.h" +#include "base/message_loop_proxy.h" #include "base/time.h" #include "ppapi/c/dev/ppb_buffer_dev.h" #include "ppapi/c/dev/ppb_char_set_dev.h" +#include "ppapi/c/dev/ppb_console_dev.h" #include "ppapi/c/dev/ppb_context_3d_dev.h" #include "ppapi/c/dev/ppb_context_3d_trusted_dev.h" -#include "ppapi/c/dev/ppb_console_dev.h" #include "ppapi/c/dev/ppb_crypto_dev.h" #include "ppapi/c/dev/ppb_cursor_control_dev.h" #include "ppapi/c/dev/ppb_directory_reader_dev.h" @@ -105,10 +105,10 @@ #include "webkit/plugins/ppapi/var.h" #include "webkit/plugins/ppapi/webkit_forwarding_impl.h" -using ppapi::thunk::EnterResource; -using ppapi::thunk::PPB_Graphics2D_API; using ppapi::TimeTicksToPPTimeTicks; using ppapi::TimeToPPTime; +using ppapi::thunk::EnterResource; +using ppapi::thunk::PPB_Graphics2D_API; namespace webkit { namespace ppapi { @@ -336,23 +336,20 @@ const void* GetInterface(const char* name) { return ::ppapi::thunk::GetPPB_Zoom_Thunk(); #ifdef ENABLE_GPU - // This should really refer to switches::kDisable3DAPIs. - if (!CommandLine::ForCurrentProcess()->HasSwitch("disable-3d-apis")) { - if (strcmp(name, PPB_GRAPHICS_3D_DEV_INTERFACE) == 0) - return ::ppapi::thunk::GetPPB_Graphics3D_Thunk(); - if (strcmp(name, PPB_CONTEXT_3D_DEV_INTERFACE) == 0) - return ::ppapi::thunk::GetPPB_Context3D_Thunk(); - if (strcmp(name, PPB_CONTEXT_3D_TRUSTED_DEV_INTERFACE) == 0) - return ::ppapi::thunk::GetPPB_Context3DTrusted_Thunk(); - if (strcmp(name, PPB_GLES_CHROMIUM_TEXTURE_MAPPING_DEV_INTERFACE) == 0) - return ::ppapi::thunk::GetPPB_GLESChromiumTextureMapping_Thunk(); - if (strcmp(name, PPB_OPENGLES2_DEV_INTERFACE) == 0) - return PPB_OpenGLES_Impl::GetInterface(); - if (strcmp(name, PPB_SURFACE_3D_DEV_INTERFACE) == 0) - return ::ppapi::thunk::GetPPB_Surface3D_Thunk(); - if (strcmp(name, PPB_LAYER_COMPOSITOR_DEV_INTERFACE) == 0) - return ::ppapi::thunk::GetPPB_LayerCompositor_Thunk(); - } + if (strcmp(name, PPB_GRAPHICS_3D_DEV_INTERFACE) == 0) + return ::ppapi::thunk::GetPPB_Graphics3D_Thunk(); + if (strcmp(name, PPB_CONTEXT_3D_DEV_INTERFACE) == 0) + return ::ppapi::thunk::GetPPB_Context3D_Thunk(); + if (strcmp(name, PPB_CONTEXT_3D_TRUSTED_DEV_INTERFACE) == 0) + return ::ppapi::thunk::GetPPB_Context3DTrusted_Thunk(); + if (strcmp(name, PPB_GLES_CHROMIUM_TEXTURE_MAPPING_DEV_INTERFACE) == 0) + return ::ppapi::thunk::GetPPB_GLESChromiumTextureMapping_Thunk(); + if (strcmp(name, PPB_OPENGLES2_DEV_INTERFACE) == 0) + return PPB_OpenGLES_Impl::GetInterface(); + if (strcmp(name, PPB_SURFACE_3D_DEV_INTERFACE) == 0) + return ::ppapi::thunk::GetPPB_Surface3D_Thunk(); + if (strcmp(name, PPB_LAYER_COMPOSITOR_DEV_INTERFACE) == 0) + return ::ppapi::thunk::GetPPB_LayerCompositor_Thunk(); #endif // ENABLE_GPU #ifdef ENABLE_FLAPPER_HACKS |