Index: gpu/ipc/common/gpu_surface_tracker.h |
diff --git a/gpu/ipc/common/gpu_surface_tracker.h b/gpu/ipc/common/gpu_surface_tracker.h |
index 6d372712521397e6e77bd9d9160d1e7888dbfdcd..4aa926bf11209bd644165516ce44c5cae624c060 100644 |
--- a/gpu/ipc/common/gpu_surface_tracker.h |
+++ b/gpu/ipc/common/gpu_surface_tracker.h |
@@ -39,7 +39,12 @@ class GPU_EXPORT GpuSurfaceTracker : public gpu::GpuSurfaceLookup { |
gpu::SurfaceHandle surface_handle) override; |
#if defined(OS_ANDROID) |
+ // Register |j_surface| with ID |surface_id|, which must be not in use. |
void RegisterViewSurface(int surface_id, jobject j_surface); |
+ |
+ // Register |j_surface| with a new surface ID and return the ID. |
+ int RegisterViewSurface(jobject j_surface); |
+ |
void UnregisterViewSurface(int surface_id); |
gl::ScopedJavaSurface AcquireJavaSurface(int surface_id) override; |
#endif |