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

Unified Diff: content/renderer/pepper_plugin_delegate_impl.h

Issue 8342024: Fixed bugs with Pepper 3D under dynamic GPU switching. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 2 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_plugin_delegate_impl.h
===================================================================
--- content/renderer/pepper_plugin_delegate_impl.h (revision 106379)
+++ content/renderer/pepper_plugin_delegate_impl.h (working copy)
@@ -15,6 +15,7 @@
#include "base/memory/ref_counted.h"
#include "base/memory/weak_ptr.h"
#include "content/common/content_export.h"
+#include "content/renderer/pepper_parent_context_provider.h"
#include "ppapi/proxy/broker_dispatcher.h"
#include "ppapi/proxy/proxy_channel.h"
#include "ui/base/ime/text_input_type.h"
@@ -119,7 +120,8 @@
class PepperPluginDelegateImpl
: public webkit::ppapi::PluginDelegate,
- public base::SupportsWeakPtr<PepperPluginDelegateImpl> {
+ public base::SupportsWeakPtr<PepperPluginDelegateImpl>,
+ public PepperParentContextProvider {
public:
explicit PepperPluginDelegateImpl(RenderViewImpl* render_view);
virtual ~PepperPluginDelegateImpl();
@@ -358,6 +360,9 @@
return mouse_locked_ || pending_lock_request_ || pending_unlock_request_;
}
+ // Implementation of PepperParentContextProvider.
+ virtual RendererGLContext* GetParentContextForPlatformContext3D();
+
// Pointer to the RenderView that owns us.
RenderViewImpl* render_view_;
« no previous file with comments | « content/renderer/pepper_platform_context_3d_impl.cc ('k') | content/renderer/pepper_plugin_delegate_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698