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

Unified Diff: content/renderer/ggl.h

Issue 6711013: Fix crash with pepper 3D on multiple windows in same renderer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 9 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 | « chrome/renderer/pepper_platform_context_3d_impl.cc ('k') | content/renderer/ggl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/ggl.h
diff --git a/content/renderer/ggl.h b/content/renderer/ggl.h
index fb96d2e54a2a5eb4cecb6d5028720cb1207453c0..e9d44c35a572059ec75d5738c1bf9fe642e7975a 100644
--- a/content/renderer/ggl.h
+++ b/content/renderer/ggl.h
@@ -12,6 +12,7 @@
#pragma once
#include "base/callback.h"
+#include "base/weak_ptr.h"
#include "ui/gfx/native_widget_types.h"
#include "ui/gfx/size.h"
@@ -142,6 +143,9 @@ bool SwapBuffers(Context* context);
// Destroy the given GGL context.
bool DestroyContext(Context* context);
+// Gets a weak reference to the context.
+base::WeakPtr<Context> GetWeakContextReference(Context* context);
apatrick_chromium 2011/03/17 20:15:38 I regret making ggl c-style now :(
+
// Create a hardware video decode engine corresponding to the context.
media::VideoDecodeEngine* CreateVideoDecodeEngine(Context* context);
« no previous file with comments | « chrome/renderer/pepper_platform_context_3d_impl.cc ('k') | content/renderer/ggl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698