Use new shmem API in PPB_ImageData_Impl
The goal is to eliminate usage of deprecated base::SharedMemory. The shared memory region backing this 'canvas' is writable by the plugin process (PPB_ImageData_Proxy) and its hosting renderer (PPB_ImageData_Impl). Both processes must keep writable shared memory handles because PPB_ImageData_API interface exposes GetSharedMemory() method. Hence move the usage of base::SharedMemory into base::UnsafeSharedMemoryRegion. Bug: 795291 Change-Id: I4766061db7f0a1e2bedfcb9459490acee6c8b2ef Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1586039 Commit-Queue: Alex Ilin <alexilin@chromium.org> Reviewed-by:Daniel Cheng <dcheng@chromium.org> Reviewed-by:
Bill Budge <bbudge@chromium.org> Reviewed-by:
Antoine Labour <piman@chromium.org> Auto-Submit: Alex Ilin <alexilin@chromium.org> Cr-Commit-Position: refs/heads/master@{#659109}
Showing
Please register or sign in to comment