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

Unified Diff: content/browser/gpu/gpu_surface_tracker.h

Issue 10795058: Add GL surface creation for Android. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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/browser/gpu/gpu_surface_tracker.h
diff --git a/content/browser/gpu/gpu_surface_tracker.h b/content/browser/gpu/gpu_surface_tracker.h
index 88f575ae50d82b6b9f8fcf5b0491c094b5cb1f51..23b00f26bb8d2d2493ac13ef42dd506f173f5c34 100644
--- a/content/browser/gpu/gpu_surface_tracker.h
+++ b/content/browser/gpu/gpu_surface_tracker.h
@@ -13,6 +13,10 @@
#include "ui/gfx/native_widget_types.h"
#include "ui/gfx/size.h"
+#if defined(OS_ANDROID)
+gfx::AcceleratedWidget GetNativeWidgetAndroid(int surface_id);
+#endif
+
// This class is responsible for managing rendering surfaces exposed to the
// GPU process. Every surface gets registered to this class, and gets an ID.
// All calls to and from the GPU process, with the exception of
@@ -40,6 +44,9 @@ class GpuSurfaceTracker {
// Adds a surface for a native widget. Returns the surface ID.
int AddSurfaceForNativeWidget(gfx::AcceleratedWidget widget);
+ // Returns the native widget associated with a given surface_id.
+ gfx::AcceleratedWidget GetNativeWidget(int surface_id);
+
// Removes a given existing surface.
void RemoveSurface(int surface_id);
« no previous file with comments | « no previous file | content/browser/gpu/gpu_surface_tracker.cc » ('j') | content/browser/gpu/gpu_surface_tracker.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698