Make ImageBuffer::GetImageData to be a static function in StaticBitmapImage
As a prepartory step to remove ImageBuffer, this CL moves the GetImageData function (which has nothing to do with ImageData) from ImageBuffer to StaticBitmapImage. Some unnecessary checks (e.g., IsSurfaceValid() which has been checked over and over again) in the function have been removed. Bug: 776806 Cq-Include-Trybots: master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 Change-Id: Iab7a346644027901bb10c96cc9c62a0e4336748d Reviewed-on: https://chromium-review.googlesource.com/820016 Commit-Queue: Olivia Lai <xlai@chromium.org> Reviewed-by:Justin Novosad <junov@chromium.org> Cr-Commit-Position: refs/heads/master@{#523501}
Showing
Please register or sign in to comment