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

Issue 1925693002: remove 'deprecated' region from SkDraw (Closed)

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

Description

remove 'deprecated' region from SkDraw Most call-sites that used it just took its bounds, so it was trivial to convert them to get the bounds of the RasterClip. Two clients wanted the actual region: 1. layeriter for android 2. pdf Android already only has BW clips, so should be safe. PDF now overrides its clip methods to ensure that all clips are BW. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1925693002 Committed: https://skia.googlesource.com/skia/+/1e7f5e708e5daeb0c18ae49001c9e3cd5e3b13cb

Patch Set 1 #

Total comments: 6

Patch Set 2 : fix bench #

Patch Set 3 : add override #

Total comments: 2

Patch Set 4 : try to fix XPS #

Patch Set 5 : XPS take 2 #

Patch Set 6 : update dox #

Unified diffs Side-by-side diffs Delta from patch set Stats (+118 lines, -76 lines) Patch
M bench/CoverageBench.cpp View 1 1 chunk +0 lines, -1 line 0 comments Download
M include/core/SkCanvas.h View 2 chunks +2 lines, -1 line 0 comments Download
M include/core/SkDraw.h View 1 2 3 4 5 1 chunk +2 lines, -3 lines 0 comments Download
M src/core/SkCanvas.cpp View 4 chunks +3 lines, -4 lines 0 comments Download
M src/core/SkDevice.cpp View 1 chunk +1 line, -1 line 0 comments Download
M src/core/SkDraw.cpp View 2 chunks +0 lines, -2 lines 0 comments Download
M src/core/SkRasterClip.h View 1 2 3 4 5 1 chunk +17 lines, -0 lines 0 comments Download
M src/core/SkRasterClip.cpp View 2 chunks +24 lines, -0 lines 0 comments Download
M src/core/SkScalerContext.cpp View 1 chunk +0 lines, -1 line 0 comments Download
M src/effects/SkLayerRasterizer.cpp View 1 chunk +0 lines, -1 line 0 comments Download
M src/gpu/GrSWMaskHelper.cpp View 1 chunk +0 lines, -1 line 0 comments Download
M src/gpu/SkGpuDevice.cpp View 9 chunks +10 lines, -9 lines 0 comments Download
M src/gpu/batches/GrAADistanceFieldPathRenderer.cpp View 1 chunk +0 lines, -1 line 0 comments Download
M src/pdf/SkPDFCanvas.h View 1 2 2 chunks +7 lines, -0 lines 0 comments Download
M src/pdf/SkPDFCanvas.cpp View 1 chunk +17 lines, -0 lines 0 comments Download
M src/pdf/SkPDFDevice.cpp View 15 chunks +17 lines, -16 lines 0 comments Download
M src/utils/SkCanvasStateUtils.cpp View 2 chunks +2 lines, -1 line 0 comments Download
M src/xps/SkXPSDevice.cpp View 1 2 3 4 7 chunks +13 lines, -6 lines 0 comments Download
M tests/AAClipTest.cpp View 2 chunks +1 line, -27 lines 0 comments Download
M tests/CanvasTest.cpp View 2 chunks +2 lines, -1 line 0 comments Download

Messages

Total messages: 36 (16 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/1925693002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1925693002/1
4 years, 7 months ago (2016-04-27 13:46:19 UTC) #3
reed1
4 years, 7 months ago (2016-04-27 13:46:30 UTC) #5
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: Build-Ubuntu-Clang-x86_64-Debug-Trybot on client.skia.compile (JOB_FAILED, http://build.chromium.org/p/client.skia.compile/builders/Build-Ubuntu-Clang-x86_64-Debug-Trybot/builds/8139) Build-Ubuntu-GCC-x86_64-Release-Trybot on ...
4 years, 7 months ago (2016-04-27 13:47:30 UTC) #7
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1925693002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1925693002/20001
4 years, 7 months ago (2016-04-27 13:51:38 UTC) #9
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: Build-Mac-Clang-x86_64-Release-Trybot on client.skia.compile (JOB_FAILED, http://build.chromium.org/p/client.skia.compile/builders/Build-Mac-Clang-x86_64-Release-Trybot/builds/2237)
4 years, 7 months ago (2016-04-27 13:53:30 UTC) #11
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1925693002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1925693002/40001
4 years, 7 months ago (2016-04-27 13:54:48 UTC) #13
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: Build-Win-MSVC-x86_64-Debug-Trybot on client.skia.compile (JOB_FAILED, http://build.chromium.org/p/client.skia.compile/builders/Build-Win-MSVC-x86_64-Debug-Trybot/builds/8209)
4 years, 7 months ago (2016-04-27 13:57:19 UTC) #15
djsollen
https://codereview.chromium.org/1925693002/diff/40001/src/utils/SkCanvasStateUtils.cpp File src/utils/SkCanvasStateUtils.cpp (right): https://codereview.chromium.org/1925693002/diff/40001/src/utils/SkCanvasStateUtils.cpp#newcode254 src/utils/SkCanvasStateUtils.cpp:254: setup_MC_state(&layerState->mcState, layer.matrix(), layer.clip().bwRgn()); can we put an assert here ...
4 years, 7 months ago (2016-04-27 13:57:53 UTC) #16
reed1
On 2016/04/27 13:57:53, djsollen wrote: > https://codereview.chromium.org/1925693002/diff/40001/src/utils/SkCanvasStateUtils.cpp > File src/utils/SkCanvasStateUtils.cpp (right): > > https://codereview.chromium.org/1925693002/diff/40001/src/utils/SkCanvasStateUtils.cpp#newcode254 > ...
4 years, 7 months ago (2016-04-27 14:00:30 UTC) #17
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1925693002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1925693002/60001
4 years, 7 months ago (2016-04-27 14:06:13 UTC) #19
reed1
+bunge for xps
4 years, 7 months ago (2016-04-27 14:07:10 UTC) #21
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: Build-Win-MSVC-x86_64-Debug-Trybot on client.skia.compile (JOB_FAILED, http://build.chromium.org/p/client.skia.compile/builders/Build-Win-MSVC-x86_64-Debug-Trybot/builds/8210)
4 years, 7 months ago (2016-04-27 14:09:23 UTC) #23
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1925693002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1925693002/80001
4 years, 7 months ago (2016-04-27 14:12:33 UTC) #25
hal.canary
still reading this.... https://codereview.chromium.org/1925693002/diff/1/include/core/SkDraw.h File include/core/SkDraw.h (right): https://codereview.chromium.org/1925693002/diff/1/include/core/SkDraw.h#newcode151 include/core/SkDraw.h:151: const SkClipStack* fClipStack; // optional better ...
4 years, 7 months ago (2016-04-27 14:14:37 UTC) #26
reed1
https://codereview.chromium.org/1925693002/diff/1/include/core/SkDraw.h File include/core/SkDraw.h (right): https://codereview.chromium.org/1925693002/diff/1/include/core/SkDraw.h#newcode151 include/core/SkDraw.h:151: const SkClipStack* fClipStack; // optional On 2016/04/27 14:14:37, Hal ...
4 years, 7 months ago (2016-04-27 14:25:20 UTC) #27
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1925693002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1925693002/100001
4 years, 7 months ago (2016-04-27 14:25:34 UTC) #29
hal.canary
pdf: lgtm
4 years, 7 months ago (2016-04-27 14:35:53 UTC) #30
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-04-27 14:46:01 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1925693002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1925693002/100001
4 years, 7 months ago (2016-04-27 14:48:19 UTC) #34
commit-bot: I haz the power
4 years, 7 months ago (2016-04-27 14:49:21 UTC) #36
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://skia.googlesource.com/skia/+/1e7f5e708e5daeb0c18ae49001c9e3cd5e3b13cb

Powered by Google App Engine
This is Rietveld 408576698