commit | dbf9f884c3996587ec9a9fd0f091357cf998c267 | [log] [tgz] |
---|---|---|
author | scroggo@google.com <scroggo@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Wed Aug 21 15:01:48 2013 +0000 |
committer | scroggo@google.com <scroggo@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Wed Aug 21 15:01:48 2013 +0000 |
tree | 0ca92de01f81aa00bbb255f2af3611cdbfbfc255 | |
parent | 2fd740ffba01e56864247a78297efcf0636554eb [diff] |
Avoid getLength in ico decoder. Only call getLength() if hasLength() returned true. Otherwise, copy the stream into an SkDynamicMemoryWStream and copy it into alloc'ed space. Share common code between bmp and ico. BUG=https://b.corp.google.com/issue?id=8432093 R=djsollen@google.com Review URL: https://codereview.chromium.org/23330002 git-svn-id: http://skia.googlecode.com/svn/trunk@10850 2bbb7eff-a529-9590-31e7-b0007b416f81