History log of /external/skia/tests/FakeStreams.h
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
932efed7c89c69616e283fdfef65e86b9d9da381 16-Dec-2016 Leon Scroggins III <scroggo@google.com> GIF: Avoid copying/storing data when possible

If the input SkStream has a length and position, do not copy and store
LZW blocks or ColorMaps. Instead, mark the position and size, and read
from the stream when necessary.

This will save memory in Chromium's use case, which has already
buffered all of its data.

In the case where we *do* need to copy, store it on the SkStreamBuffer.
This allows SkGifImageReader to have simpler code.

Add tests.

Change-Id: Ic65fa766328ae2e5974b2084bc2099e19aced731
Reviewed-on: https://skia-review.googlesource.com/6157
Reviewed-by: Matt Sarett <msarett@google.com>
Commit-Queue: Leon Scroggins <scroggo@google.com>
/external/skia/tests/FakeStreams.h