Use JavaRef for Android surface objects.
When referring to Android surface objects, use a JavaRef instead of a bare jobject, to make sure we manage reference lifetimes correctly. This changes the following interfaces: - ScopedJavaSurface::AcquireExternalSurface - GpuSurfaceTracker::SurfaceRecord::SurfaceRecord - Compositor::SetSurface Most of the callers of these functions already had JavaParamRef objects and were relying on the implicit conversion to jobject, which is no longer necessary with this change; the remaining callers have been updated. Change-Id: Ic667ad98974bbe8b0674afbce3c0eb6072001468 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2453270Reviewed-by:Shimi Zhang <ctzsm@chromium.org> Reviewed-by:
Yaron Friedman <yfriedman@chromium.org> Reviewed-by:
Xiaohan Wang <xhwang@chromium.org> Reviewed-by:
Ken Buchanan <kenrb@chromium.org> Commit-Queue: Richard Coles <torne@chromium.org> Cr-Commit-Position: refs/heads/master@{#815150}
Showing
Please register or sign in to comment