[image_decode_bench] Remove use of SharedBuffer::Data()
SharedBuffer::Data() is deprecated, and was being used to consolidate the buffer into one contiguous piece of memory. This is now redundant since the ShardBuffer is created in ReadFile() by adopting the Vector of image data (which is a contiguous piece of memory under the hood). Remove the SharedBuffer::Data() call, move the related error handling for ReadFile() back into that routine. Bug: 601198 Change-Id: Ic0eab97ead78a967180d1ee6bdcb708e3cc3a4e5 Reviewed-on: https://chromium-review.googlesource.com/956644Reviewed-by:Leon Scroggins <scroggo@chromium.org> Commit-Queue: Noel Gordon <noel@chromium.org> Cr-Commit-Position: refs/heads/master@{#542102}
Showing
Please register or sign in to comment