commit | 9a5d1ab54d52a912bb3ac9f74ee01bba079639e5 | [log] [tgz] |
---|---|---|
author | fmalita <fmalita@chromium.org> | Mon Jul 27 10:27:28 2015 -0700 |
committer | Commit bot <commit-bot@chromium.org> | Mon Jul 27 10:27:29 2015 -0700 |
tree | 8a3483083be8e674d7e0e14ccc7fd22de47724e3 | |
parent | 1c63436f39796d3ed5f27f54d07f6cc120006b94 [diff] |
Make peekPixels() usable with raster surface snapshots SkSurface_Raster snapshots do not lock their backing bitmaps when the pixel ref is shared - they only lock on deep-copy. But since for raster surfaces the pixels are always in memory, I think it would be OK to also lock in the former case. This allows for optimized (zero-copy) reads of raster surface snapshot data. R=reed@google.com Review URL: https://codereview.chromium.org/1256993002