Set write buffer flags only in SkWriteBuffer and SkFlatController constructors.
authorcommit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>
Thu, 30 Jan 2014 22:16:32 +0000 (22:16 +0000)
committercommit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>
Thu, 30 Jan 2014 22:16:32 +0000 (22:16 +0000)
commita2bd2d12ad9504583e9311404fcd82b40df49d30
treef9543b2f185075f58c77354356728aacfa1e7f61
parent0b9ada1318acf7d5fe90c57331c2a4548aad8b98
Set write buffer flags only in SkWriteBuffer and SkFlatController constructors.

This is a baby step toward refactored (and faster in-process) typeface and flattenable factory encoding and decoding.  The sooner SkWriteBuffer knows its flags, the better.

Next steps will be to rearrange Sk{Read,Write}Buffer members into disjoint strategies to handle typefaces and flattenable factories: one for in-process, one for cross-process, one when validating.

BUG=skia:
R=reed@google.com, scroggo@google.com

Author: mtklein@google.com

Review URL: https://codereview.chromium.org/138803005

git-svn-id: http://skia.googlecode.com/svn/trunk@13253 2bbb7eff-a529-9590-31e7-b0007b416f81
include/core/SkWriteBuffer.h
src/core/SkFlattenableSerialization.cpp
src/core/SkPictureFlat.cpp
src/core/SkPictureFlat.h
src/core/SkPicturePlayback.cpp
src/core/SkWriteBuffer.cpp
src/pipe/SkGPipeWrite.cpp
tests/SerializationTest.cpp