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

Issue 1775043002: SkPDF: Add sk_sp setters; .release() becomes std::move() (Closed)

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

Description

SkPDF: Add sk_sp setters; .release() becomes std::move() Note to reviewers: Start with changes to SkPDFTypes.h Many places that had a bare pointer owning a reference are refactored to use a sk_sp. There remain several places where a non-owning pointer `T*` should be replaced with `const sk_sp<T>&` to eliminate the common pattern `sk_sp<T>(SkRef(x))`. Committed: https://skia.googlesource.com/skia/+/9904c9212074279380e21f96575078734dbbd308 GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1775043002 Committed: https://skia.googlesource.com/skia/+/8103a34300c5de2e85793a96c4738a33fc6eb46d

Patch Set 1 #

Total comments: 8

Patch Set 2 : response to bungeman@ #

Patch Set 3 : fix -Wpessimizing-move #

Unified diffs Side-by-side diffs Delta from patch set Stats (+238 lines, -262 lines) Patch
M src/doc/SkDocument_PDF.cpp View 1 2 12 chunks +41 lines, -50 lines 0 comments Download
M src/pdf/SkPDFBitmap.cpp View 1 2 4 chunks +5 lines, -5 lines 0 comments Download
M src/pdf/SkPDFDevice.h View 2 chunks +6 lines, -10 lines 0 comments Download
M src/pdf/SkPDFDevice.cpp View 1 2 6 chunks +25 lines, -27 lines 0 comments Download
M src/pdf/SkPDFFont.cpp View 1 2 18 chunks +37 lines, -37 lines 0 comments Download
M src/pdf/SkPDFFormXObject.cpp View 3 chunks +5 lines, -5 lines 0 comments Download
M src/pdf/SkPDFGraphicState.cpp View 3 chunks +12 lines, -7 lines 0 comments Download
M src/pdf/SkPDFResourceDict.h View 1 chunk +1 line, -1 line 0 comments Download
M src/pdf/SkPDFResourceDict.cpp View 1 2 3 chunks +5 lines, -5 lines 0 comments Download
M src/pdf/SkPDFShader.cpp View 1 8 chunks +14 lines, -15 lines 0 comments Download
M src/pdf/SkPDFTypes.h View 8 chunks +13 lines, -26 lines 0 comments Download
M src/pdf/SkPDFTypes.cpp View 1 2 9 chunks +39 lines, -37 lines 0 comments Download
M src/pdf/SkPDFUtils.h View 1 chunk +2 lines, -2 lines 0 comments Download
M src/pdf/SkPDFUtils.cpp View 2 chunks +4 lines, -6 lines 0 comments Download
M tests/PDFPrimitivesTest.cpp View 14 chunks +29 lines, -29 lines 0 comments Download

Messages

Total messages: 28 (15 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1775043002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1775043002/1
4 years, 9 months ago (2016-03-08 18:32:36 UTC) #3
hal.canary
ptal
4 years, 9 months ago (2016-03-08 18:32:44 UTC) #5
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-03-08 18:51:27 UTC) #8
bungeman-skia
https://codereview.chromium.org/1775043002/diff/1/src/doc/SkDocument_PDF.cpp File src/doc/SkDocument_PDF.cpp (right): https://codereview.chromium.org/1775043002/diff/1/src/doc/SkDocument_PDF.cpp#newcode127 src/doc/SkDocument_PDF.cpp:127: curNodes[i]->insertObjRef("Parent", newNode); // copy ref I don't think the ...
4 years, 9 months ago (2016-03-08 19:05:44 UTC) #9
hal.canary
https://codereview.chromium.org/1775043002/diff/1/src/doc/SkDocument_PDF.cpp File src/doc/SkDocument_PDF.cpp (right): https://codereview.chromium.org/1775043002/diff/1/src/doc/SkDocument_PDF.cpp#newcode127 src/doc/SkDocument_PDF.cpp:127: curNodes[i]->insertObjRef("Parent", newNode); // copy ref On 2016/03/08 19:05:44, bungeman1 ...
4 years, 9 months ago (2016-03-08 19:12:51 UTC) #10
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1775043002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1775043002/20001
4 years, 9 months ago (2016-03-08 19:25:58 UTC) #12
bungeman-skia
lgtm
4 years, 9 months ago (2016-03-08 19:26:16 UTC) #14
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-03-08 19:38:29 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1775043002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1775043002/20001
4 years, 9 months ago (2016-03-08 20:37:24 UTC) #18
commit-bot: I haz the power
Committed patchset #2 (id:20001) as https://skia.googlesource.com/skia/+/9904c9212074279380e21f96575078734dbbd308
4 years, 9 months ago (2016-03-08 20:38:26 UTC) #20
hal.canary
A revert of this CL (patchset #2 id:20001) has been created in https://codereview.chromium.org/1775143002/ by halcanary@google.com. ...
4 years, 9 months ago (2016-03-08 21:03:44 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1775043002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1775043002/40001
4 years, 9 months ago (2016-03-08 22:52:33 UTC) #26
commit-bot: I haz the power
4 years, 9 months ago (2016-03-08 23:10:22 UTC) #28
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://skia.googlesource.com/skia/+/8103a34300c5de2e85793a96c4738a33fc6eb46d

Powered by Google App Engine
This is Rietveld 408576698