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

Unified Diff: content/renderer/render_widget_fullscreen_pepper.cc

Issue 8352033: Merge 106394 - Fixed bugs with Pepper 3D under dynamic GPU switching. (Closed) Base URL: svn://svn.chromium.org/chrome/branches/912/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
« no previous file with comments | « content/renderer/render_widget_fullscreen_pepper.h ('k') | ui/gfx/gl/gl_context_cgl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_widget_fullscreen_pepper.cc
===================================================================
--- content/renderer/render_widget_fullscreen_pepper.cc (revision 106439)
+++ content/renderer/render_widget_fullscreen_pepper.cc (working copy)
@@ -277,13 +277,8 @@
webkit::ppapi::PluginDelegate::PlatformContext3D*
RenderWidgetFullscreenPepper::CreateContext3D() {
- if (!context_) {
- CreateContext();
- }
- if (!context_)
- return NULL;
#ifdef ENABLE_GPU
- return new PlatformContext3DImpl(context_);
+ return new PlatformContext3DImpl(this);
#else
return NULL;
#endif
@@ -513,3 +508,13 @@
void RenderWidgetFullscreenPepper::OnSwapBuffersCompleteByRendererGLContext() {
OnSwapBuffersComplete();
}
+
+RendererGLContext*
+RenderWidgetFullscreenPepper::GetParentContextForPlatformContext3D() {
+ if (!context_) {
+ CreateContext();
+ }
+ if (!context_)
+ return NULL;
+ return context_;
+}
« no previous file with comments | « content/renderer/render_widget_fullscreen_pepper.h ('k') | ui/gfx/gl/gl_context_cgl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698