Chromium Code Reviews| 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); |
|
boliu
2017/03/30 22:42:02
err, I asked this to be refactored when this code
liberato (no reviews please)
2017/04/04 17:49:28
sorry about that. will refactor per our offline d
boliu
2017/04/04 23:53:21
Oh I originally asked someone else, not you
Thank
|
| + |
| void UnregisterViewSurface(int surface_id); |
| gl::ScopedJavaSurface AcquireJavaSurface(int surface_id) override; |
| #endif |