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

Issue 21161003: Use Path Ops to generate PDF clips (Closed)

Created:
7 years, 4 months ago by ducky
Modified:
7 years, 4 months ago
CC:
skia-review_googlegroups.com
Visibility:
Public.

Description

Use Path Ops to generate PDF clips Committed: https://code.google.com/p/skia/source/detail?r=10633

Patch Set 1 #

Patch Set 2 : Simplify GM, add transforms support #

Patch Set 3 : Make more things static, fix warnings when SK_PDF_USE_PATHOPS not enabled #

Total comments: 21

Patch Set 4 : Fix review comments #

Total comments: 6

Patch Set 5 : Use wide-open inverse clip #

Total comments: 4

Patch Set 6 : Improve fallback, simplify code #

Patch Set 7 : Fix indents #

Total comments: 4

Patch Set 8 : Improve style #

Unified diffs Side-by-side diffs Delta from patch set Stats (+186 lines, -17 lines) Patch
A gm/circularclips.cpp View 1 2 3 1 chunk +78 lines, -0 lines 0 comments Download
M gyp/gmslides.gypi View 1 1 chunk +1 line, -0 lines 0 comments Download
M include/pdf/SkPDFDevice.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M src/pdf/SkPDFDevice.cpp View 1 2 3 4 5 6 7 6 chunks +105 lines, -17 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
ducky
This CL changes the clips output for PDF to use Path Ops to generate a ...
7 years, 4 months ago (2013-07-30 22:51:55 UTC) #1
edisonn
https://codereview.chromium.org/21161003/diff/18001/gm/circularclips.cpp File gm/circularclips.cpp (right): https://codereview.chromium.org/21161003/diff/18001/gm/circularclips.cpp#newcode17 gm/circularclips.cpp:17: nit: {} https://codereview.chromium.org/21161003/diff/18001/src/pdf/SkPDFDevice.cpp File src/pdf/SkPDFDevice.cpp (right): https://codereview.chromium.org/21161003/diff/18001/src/pdf/SkPDFDevice.cpp#newcode335 src/pdf/SkPDFDevice.cpp:335: SkPath* ...
7 years, 4 months ago (2013-07-31 18:27:37 UTC) #2
vandebo (ex-Chrome)
https://codereview.chromium.org/21161003/diff/18001/src/pdf/SkPDFDevice.cpp File src/pdf/SkPDFDevice.cpp (right): https://codereview.chromium.org/21161003/diff/18001/src/pdf/SkPDFDevice.cpp#newcode335 src/pdf/SkPDFDevice.cpp:335: SkPath* outPath) { indent (in original too). https://codereview.chromium.org/21161003/diff/18001/src/pdf/SkPDFDevice.cpp#newcode345 src/pdf/SkPDFDevice.cpp:345: ...
7 years, 4 months ago (2013-07-31 18:35:17 UTC) #3
ducky
Most review comments addressed. Still unsure about not leaving a buffer for the clips. https://codereview.chromium.org/21161003/diff/18001/gm/circularclips.cpp ...
7 years, 4 months ago (2013-08-01 00:44:58 UTC) #4
vandebo (ex-Chrome)
https://codereview.chromium.org/21161003/diff/30001/src/pdf/SkPDFDevice.cpp File src/pdf/SkPDFDevice.cpp (right): https://codereview.chromium.org/21161003/diff/30001/src/pdf/SkPDFDevice.cpp#newcode372 src/pdf/SkPDFDevice.cpp:372: workingBounds.outset(SK_Scalar1, SK_Scalar1); Do you need to constrain the path ...
7 years, 4 months ago (2013-08-01 14:56:14 UTC) #5
ducky
Now with wide-open starting clips! https://codereview.chromium.org/21161003/diff/30001/src/pdf/SkPDFDevice.cpp File src/pdf/SkPDFDevice.cpp (right): https://codereview.chromium.org/21161003/diff/30001/src/pdf/SkPDFDevice.cpp#newcode372 src/pdf/SkPDFDevice.cpp:372: workingBounds.outset(SK_Scalar1, SK_Scalar1); On 2013/08/01 ...
7 years, 4 months ago (2013-08-01 21:22:45 UTC) #6
vandebo (ex-Chrome)
https://codereview.chromium.org/21161003/diff/38001/src/pdf/SkPDFDevice.cpp File src/pdf/SkPDFDevice.cpp (right): https://codereview.chromium.org/21161003/diff/38001/src/pdf/SkPDFDevice.cpp#newcode382 src/pdf/SkPDFDevice.cpp:382: SkAssertResult(clipRegion.getBoundaryPath(&clipPath)); Here we could fall back to the old ...
7 years, 4 months ago (2013-08-02 15:58:09 UTC) #7
ducky
Improved fallback and simplified code. https://codereview.chromium.org/21161003/diff/38001/src/pdf/SkPDFDevice.cpp File src/pdf/SkPDFDevice.cpp (right): https://codereview.chromium.org/21161003/diff/38001/src/pdf/SkPDFDevice.cpp#newcode382 src/pdf/SkPDFDevice.cpp:382: SkAssertResult(clipRegion.getBoundaryPath(&clipPath)); On 2013/08/02 15:58:09, ...
7 years, 4 months ago (2013-08-02 19:03:33 UTC) #8
vandebo (ex-Chrome)
LGTM with nits. https://codereview.chromium.org/21161003/diff/44001/src/pdf/SkPDFDevice.cpp File src/pdf/SkPDFDevice.cpp (right): https://codereview.chromium.org/21161003/diff/44001/src/pdf/SkPDFDevice.cpp#newcode334 src/pdf/SkPDFDevice.cpp:334: static bool calculate_inverse_path(const SkRect& bounds, const ...
7 years, 4 months ago (2013-08-05 16:38:07 UTC) #9
ducky
https://codereview.chromium.org/21161003/diff/44001/src/pdf/SkPDFDevice.cpp File src/pdf/SkPDFDevice.cpp (right): https://codereview.chromium.org/21161003/diff/44001/src/pdf/SkPDFDevice.cpp#newcode334 src/pdf/SkPDFDevice.cpp:334: static bool calculate_inverse_path(const SkRect& bounds, const SkPath& invPath, On ...
7 years, 4 months ago (2013-08-05 17:54:19 UTC) #10
vandebo (ex-Chrome)
LGTM
7 years, 4 months ago (2013-08-05 17:57:09 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/richardlin@chromium.org/21161003/58001
7 years, 4 months ago (2013-08-08 03:51:07 UTC) #12
commit-bot: I haz the power
Failed to apply patch for gm/circularclips.cpp: While running patch -p1 --forward --force --no-backup-if-mismatch; The next ...
7 years, 4 months ago (2013-08-08 03:51:09 UTC) #13
ducky
7 years, 4 months ago (2013-08-08 04:03:13 UTC) #14
commit-bot looks like it's really confused. It also seems the CL went in as
r10633, about an hour before commit-bot started testing.
!?!?!?!?

Powered by Google App Engine
This is Rietveld 408576698