DescriptionImageCapture: introduce image_capture Blob to allow move-only semantics
https://crrev.com/2166713002 introduce usage of STL/WTF
types for image_capture. But that translated bindings of
array<> to const std::vector<>& which forced strange
const_cast<>s to avoid copies.
This CL bundles mime_type and data into a mojo::Struct
that is move-only, hence avoiding the copies of, potentially
large, photo frames.
BUG=630040
Committed: https://crrev.com/431ae31e66ce1251570828f5a2c2773696774d58
Cr-Commit-Position: refs/heads/master@{#407333}
Patch Set 1 : #
Total comments: 4
Patch Set 2 : foolip comments and rebase #Messages
Total messages: 25 (15 generated)
|