Remove run count field from SkTextBlob.
authorFlorin Malita <fmalita@chromium.org>
Mon, 13 Mar 2017 13:03:24 +0000 (09:03 -0400)
committerSkia Commit-Bot <skia-commit-bot@chromium.org>
Mon, 13 Mar 2017 13:36:54 +0000 (13:36 +0000)
commit3a9a7a310c5cff72bc1c2388a496af1b82326355
tree5d5d4aba58aff7461b4aa5782ecd6e5dc1cdd812
parentd69e1827b90e778a2240a469c3873e7f7fb0c768
Remove run count field from SkTextBlob.

We can flag the last run record instead.  Run iteration is always
sequential, so no penalty.

As a side effect, we can no longer allow instantiation of zero-run text
blobs - but that seems like a good idea anyway.

Change-Id: I7ca80c4780623d5a188f92dfe6d6fe152f20f666
Reviewed-on: https://skia-review.googlesource.com/9149
Commit-Queue: Florin Malita <fmalita@chromium.org>
Reviewed-by: Mike Reed <reed@google.com>
include/core/SkPicture.h
include/core/SkTextBlob.h
src/core/SkReadBuffer.h
src/core/SkTextBlob.cpp
src/core/SkTextBlobRunIterator.h
tests/TextBlobTest.cpp