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