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

Issue 2193973002: SkPDF: PDFShader code modernized. (Closed)

Created:
4 years, 4 months ago by hal.canary
Modified:
4 years, 4 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: PDFShader code modernized. Motivation: reduce code complexity. SkCanon stores SkPDFShader::State next to SkDFObject, not inside. many places use sk_sp<T> rather than T* to represent ownership. SkPDFShader::State no longer holds bitmap. SkPDFShader::State gets move constructor, no longer heap-allocated. Classes removed: SkPDFFunctionShader SkPDFAlphaFunctionShader SkPDFImageShader BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2193973002 Committed: https://skia.googlesource.com/skia/+/dabd4f0b799318cb6e90b69ae1ec0ed0b6d32f60

Patch Set 1 #

Patch Set 2 : 2016-07-29 (Friday) 17:29:44 EDT #

Patch Set 3 : 2016-07-29 (Friday) 17:54:35 EDT #

Total comments: 11

Patch Set 4 : 2016-08-02 (Tuesday) 17:24:52 EDT #

Unified diffs Side-by-side diffs Delta from patch set Stats (+268 lines, -320 lines) Patch
M src/pdf/SkPDFCanon.h View 2 chunks +15 lines, -11 lines 0 comments Download
M src/pdf/SkPDFCanon.cpp View 1 2 3 3 chunks +30 lines, -34 lines 0 comments Download
M src/pdf/SkPDFDevice.h View 2 chunks +3 lines, -3 lines 0 comments Download
M src/pdf/SkPDFDevice.cpp View 14 chunks +30 lines, -25 lines 0 comments Download
M src/pdf/SkPDFGraphicState.h View 1 chunk +1 line, -1 line 0 comments Download
M src/pdf/SkPDFGraphicState.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M src/pdf/SkPDFShader.h View 1 2 3 chunks +38 lines, -52 lines 0 comments Download
M src/pdf/SkPDFShader.cpp View 1 2 3 29 chunks +128 lines, -191 lines 0 comments Download
M src/pdf/SkPDFTypes.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M tests/CPlusPlusEleven.cpp View 1 1 chunk +20 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (11 generated)
hal.canary
PTAL
4 years, 4 months ago (2016-07-29 21:37:49 UTC) #5
tomhudson
https://codereview.chromium.org/2193973002/diff/40001/src/pdf/SkPDFCanon.cpp File src/pdf/SkPDFCanon.cpp (right): https://codereview.chromium.org/2193973002/diff/40001/src/pdf/SkPDFCanon.cpp#newcode25 src/pdf/SkPDFCanon.cpp:25: fGraphicStateRecords.foreach ([](WrapGS w) { w.fPtr->unref(); }); Nit: TODO(halcanary) replace ...
4 years, 4 months ago (2016-08-02 20:59:12 UTC) #11
hal.canary
https://codereview.chromium.org/2193973002/diff/40001/src/pdf/SkPDFShader.cpp File src/pdf/SkPDFShader.cpp (right): https://codereview.chromium.org/2193973002/diff/40001/src/pdf/SkPDFShader.cpp#newcode627 src/pdf/SkPDFShader.cpp:627: static std::unique_ptr<SkStreamAsset> create_pattern_fill_content( On 2016/08/02 20:59:12, tomhudson wrote: > ...
4 years, 4 months ago (2016-08-02 21:00:57 UTC) #12
hal.canary
https://codereview.chromium.org/2193973002/diff/40001/src/pdf/SkPDFCanon.cpp File src/pdf/SkPDFCanon.cpp (right): https://codereview.chromium.org/2193973002/diff/40001/src/pdf/SkPDFCanon.cpp#newcode25 src/pdf/SkPDFCanon.cpp:25: fGraphicStateRecords.foreach ([](WrapGS w) { w.fPtr->unref(); }); On 2016/08/02 20:59:12, ...
4 years, 4 months ago (2016-08-02 21:25:01 UTC) #13
tomhudson
lgtm
4 years, 4 months ago (2016-08-03 16:57:26 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/2193973002/60001
4 years, 4 months ago (2016-08-03 17:42:39 UTC) #16
commit-bot: I haz the power
4 years, 4 months ago (2016-08-03 18:17:00 UTC) #18
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://skia.googlesource.com/skia/+/dabd4f0b799318cb6e90b69ae1ec0ed0b6d32f60

Powered by Google App Engine
This is Rietveld 408576698