Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(448)

Issue 2151863003: SkPdf: smaller color serialization (Closed)

Created:
4 years, 5 months ago by hal.canary
Modified:
4 years, 5 months ago
Reviewers:
tomhudson
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

SkPdf: smaller color serialization SkPDFUtils now has a special function (SkPDFUtils::AppendColorComponent) just for writing out (color/255) as a decimal with three digits of precision. SkPDFUnion now has a type to represent a color component. It holds a utint_8, but calls into AppendColorComponent to serialize. Added a unit test that tests all possible input values. GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2151863003 Committed: https://skia.googlesource.com/skia/+/eb92cb3e84f49b5eedb22b36acffd895d6a90e5a

Patch Set 1 #

Patch Set 2 : 2016-07-14 (Thursday) 13:36:29 EDT #

Total comments: 4

Patch Set 3 : SkFixed - 2016-07-15 (Friday) 15:45:32 EDT #

Unified diffs Side-by-side diffs Delta from patch set Stats (+110 lines, -32 lines) Patch
M bench/PDFBench.cpp View 1 2 chunks +16 lines, -0 lines 0 comments Download
M src/pdf/SkPDFDevice.cpp View 1 2 1 chunk +3 lines, -4 lines 0 comments Download
M src/pdf/SkPDFShader.cpp View 9 chunks +27 lines, -28 lines 0 comments Download
M src/pdf/SkPDFTypes.h View 3 chunks +4 lines, -0 lines 0 comments Download
M src/pdf/SkPDFTypes.cpp View 4 chunks +14 lines, -0 lines 0 comments Download
M src/pdf/SkPDFUtils.h View 1 chunk +9 lines, -0 lines 0 comments Download
M src/pdf/SkPDFUtils.cpp View 1 2 2 chunks +24 lines, -0 lines 0 comments Download
M tests/PDFPrimitivesTest.cpp View 1 chunk +13 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (12 generated)
hal.canary
PTAL
4 years, 5 months ago (2016-07-14 17:53:10 UTC) #9
tomhudson
https://codereview.chromium.org/2151863003/diff/20001/src/pdf/SkPDFUtils.cpp File src/pdf/SkPDFUtils.cpp (right): https://codereview.chromium.org/2151863003/diff/20001/src/pdf/SkPDFUtils.cpp#newcode261 src/pdf/SkPDFUtils.cpp:261: // ((int)(0.5 + (1000.0 / 255.0) * value) == ...
4 years, 5 months ago (2016-07-15 19:20:18 UTC) #12
hal.canary
https://codereview.chromium.org/2151863003/diff/20001/src/pdf/SkPDFUtils.cpp File src/pdf/SkPDFUtils.cpp (right): https://codereview.chromium.org/2151863003/diff/20001/src/pdf/SkPDFUtils.cpp#newcode261 src/pdf/SkPDFUtils.cpp:261: // ((int)(0.5 + (1000.0 / 255.0) * value) == ...
4 years, 5 months ago (2016-07-15 19:46:42 UTC) #13
tomhudson
lgtm
4 years, 5 months ago (2016-07-15 20:16:46 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2151863003/40001
4 years, 5 months ago (2016-07-15 20:18:57 UTC) #16
commit-bot: I haz the power
4 years, 5 months ago (2016-07-15 20:41:31 UTC) #18
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://skia.googlesource.com/skia/+/eb92cb3e84f49b5eedb22b36acffd895d6a90e5a

Powered by Google App Engine
This is Rietveld 408576698