Index: content/public/browser/android/compositor.h |
diff --git a/content/public/browser/android/compositor.h b/content/public/browser/android/compositor.h |
index 9019e4776ba3d7ba56a878e41ea89d858398962a..b064495c45330fd18fc6c209b768452f25e944f6 100644 |
--- a/content/public/browser/android/compositor.h |
+++ b/content/public/browser/android/compositor.h |
@@ -11,6 +11,7 @@ |
#include "ui/gfx/size.h" |
namespace WebKit { |
+class WebGraphicsContext3D; |
class WebLayer; |
} |
@@ -42,6 +43,10 @@ class Compositor { |
// The buffer is not modified if false is returned. |
virtual bool CompositeAndReadback(void *pixels, const gfx::Rect& rect) = 0; |
+ // Gives a pointer to the current WebGraphicsContext3D. Should not be stored |
+ // by the caller. |
+ virtual WebKit::WebGraphicsContext3D* GetContext3D() = 0; |
+ |
// Callback to be run after the frame has been drawn. It passes back |
// a synchronization point identifier. |
typedef base::Callback<void(uint32)> SurfacePresentedCallback; |