[Zucchini] Introduce encoded_view

Desktop / Chromium - Etienne Pierre-Doray [chromium.org] - 7 August 2017 14:45 EDT

This CL adds EncodedView, which offers an inexpensive access to an Encoded Image, adapting on instances of ImageIndex.

Bug: 729154 Change-Id: I6441a3bed20528a40f20f3d7d269a093157731dc Reviewed-on: https://chromium-review.googlesource.com/599389 Commit-Queue: Etienne Pierre-Doray

f2a5469 [Zucchini] Introduce encoded_view.
chrome/installer/zucchini/BUILD.gn | 3 +
chrome/installer/zucchini/README.md | 7 +-
chrome/installer/zucchini/encoded_view.cc | 65 +++++++
chrome/installer/zucchini/encoded_view.h | 147 +++++++++++++++
chrome/installer/zucchini/encoded_view_unittest.cc | 203 +++++++++++++++++++++
chrome/installer/zucchini/image_index_unittest.cc | 6 +-
chrome/installer/zucchini/image_utils.h | 4 +-
7 files changed, 429 insertions(+), 6 deletions(-)

Upstream: git.chromium.org


  • Share