| Index: gpu/ipc/common/gpu_surface_tracker.cc
|
| diff --git a/gpu/ipc/common/gpu_surface_tracker.cc b/gpu/ipc/common/gpu_surface_tracker.cc
|
| index b2b8dacdaf75ba8c1bd11f1706ce416fd826cf2c..055cf618395a46d5ec98353bcca980eeb0e8f430 100644
|
| --- a/gpu/ipc/common/gpu_surface_tracker.cc
|
| +++ b/gpu/ipc/common/gpu_surface_tracker.cc
|
| @@ -73,6 +73,18 @@ void GpuSurfaceTracker::RegisterViewSurface(
|
| CHECK(surface_view_map_[surface_id].IsValid());
|
| }
|
|
|
| +int GpuSurfaceTracker::RegisterViewSurface(jobject j_surface) {
|
| + int surface_id = 0;
|
| + {
|
| + base::AutoLock lock(surface_view_map_lock_);
|
| + surface_id = next_surface_handle_++;
|
| + }
|
| +
|
| + RegisterViewSurface(surface_id, j_surface);
|
| +
|
| + return surface_id;
|
| +}
|
| +
|
| void GpuSurfaceTracker::UnregisterViewSurface(int surface_id)
|
| {
|
| base::AutoLock lock(surface_view_map_lock_);
|
|
|