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); |