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

Unified Diff: content/public/browser/android/compositor.h

Issue 11090075: Expose the WebGraphicsContext3D for Android (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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/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;

Powered by Google App Engine
This is Rietveld 408576698