Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(761)

Unified Diff: content/renderer/pepper/ppb_video_decoder_impl.cc

Issue 20777009: A few more cleanups to the pepper code. Dispatch IPCs in the sockets implementations directly by ha… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/renderer/pepper/ppb_video_decoder_impl.cc
===================================================================
--- content/renderer/pepper/ppb_video_decoder_impl.cc (revision 214423)
+++ content/renderer/pepper/ppb_video_decoder_impl.cc (working copy)
@@ -11,12 +11,13 @@
#include "base/metrics/histogram.h"
#include "content/renderer/media/pepper_platform_video_decoder.h"
#include "content/renderer/pepper/common.h"
+#include "content/renderer/pepper/host_globals.h"
#include "content/renderer/pepper/pepper_helper_impl.h"
#include "content/renderer/pepper/pepper_platform_context_3d.h"
+#include "content/renderer/pepper/pepper_plugin_instance_impl.h"
#include "content/renderer/pepper/plugin_module.h"
#include "content/renderer/pepper/ppb_buffer_impl.h"
#include "content/renderer/pepper/ppb_graphics_3d_impl.h"
-#include "content/renderer/pepper/resource_helper.h"
#include "gpu/command_buffer/client/gles2_implementation.h"
#include "media/video/picture.h"
#include "media/video/video_decode_accelerator.h"
@@ -98,7 +99,8 @@
PPB_VideoDecoder_Impl::PPB_VideoDecoder_Impl(PP_Instance instance)
: PPB_VideoDecoder_Shared(instance),
ppp_videodecoder_(NULL) {
- PluginModule* plugin_module = ResourceHelper::GetPluginModule(this);
+ PluginModule* plugin_module =
+ HostGlobals::Get()->GetInstance(pp_instance())->module();
if (plugin_module) {
ppp_videodecoder_ = static_cast<const PPP_VideoDecoder_Dev*>(
plugin_module->GetPluginInterface(PPP_VIDEODECODER_DEV_INTERFACE));

Powered by Google App Engine
This is Rietveld 408576698