Implement base::RefCountedSharedMemory.
This base::RefCountedMemory subclass owns a base::SharedMemory instance. Use this class to easily access data in shared memory via the base::RefCountedMemory interface without having to copy it out to a std::string or std::vector. Use this in printing code to avoid a bunch of copying. Change-Id: I275eacb3af0250d352ec909429d8563b28b1b57e Reviewed-on: https://chromium-review.googlesource.com/978641 Commit-Queue: Lei Zhang <thestig@chromium.org> Reviewed-by:Wei Li <weili@chromium.org> Reviewed-by:
Rebekah Potter <rbpotter@chromium.org> Reviewed-by:
Reilly Grant <reillyg@chromium.org> Cr-Commit-Position: refs/heads/master@{#547048}
Showing
Please register or sign in to comment