SkPDF: more accurate (float) colors from paint
Does not yet affect colors from gradient shaders.
Serialize colors with 4 digits of accuracy, not 3.
Resulting PDFs are usually slightly larger, but render the same when
rendered into an 8-bit buffer.
Change-Id: I64336f3a1f34021f9ddb723bd8a16d51ddfea0f4
Reviewed-on: https://skia-review.googlesource.com/c/161141
Commit-Queue: Hal Canary <halcanary@google.com>
Auto-Submit: Hal Canary <halcanary@google.com>
Reviewed-by: Mike Klein <mtklein@google.com>
4 files changed