In SKP serialization, use existing encoded data.
authorscroggo@google.com <scroggo@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Mon, 10 Dec 2012 15:40:55 +0000 (15:40 +0000)
committerscroggo@google.com <scroggo@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Mon, 10 Dec 2012 15:40:55 +0000 (15:40 +0000)
commit7c9d539d8843ad75a1c249633bbc8bb331f5035e
tree796e5d5fe3b1f0b4c87d335af580977ad44e31ea
parentedf32d5b0e7694833287024e03da38521a0adf05
In SKP serialization, use existing encoded data.

If an SkBitmap has encoded data, write that during serialization
rather than reencoding it.

Add a test to ensure that this does not modify the output stream,
so the reader need not know the difference.

Review URL: https://codereview.appspot.com/6884054

git-svn-id: http://skia.googlecode.com/svn/trunk@6732 2bbb7eff-a529-9590-31e7-b0007b416f81
src/core/SkOrderedWriteBuffer.cpp
src/core/SkOrderedWriteBuffer.h
tests/PictureTest.cpp