ScopedBufferLock: clarify check for contiguousness
This change makes ScopedBufferLock more readable by replacing the confusingly named UnlockedNoncontiguousBuffer() with IsContiguous(), and instead unlocking the 2D buffer as part of the fallback to LockSlow() if the 2D buffer is noncontiguous. Change-Id: I446de78823c99422e9a2a2675a4ddb2dce7ec0d4 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2268592Reviewed-by:Dale Curtis <dalecurtis@chromium.org> Commit-Queue: Jesse McKenna <jessemckenna@google.com> Cr-Commit-Position: refs/heads/master@{#783100}
Showing
Please register or sign in to comment