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

Issue 1530503004: 2D canvas: pass unmodified primitive bounds to saveLayer(). (Closed)

Created:
5 years ago by Stephen White
Modified:
4 years, 11 months ago
Reviewers:
Justin Novosad
CC:
chromium-reviews, blink-reviews, ajuma+watch-canvas_chromium.org, Rik, dshwang
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

2D canvas: pass unmodified primitive bounds to saveLayer(). There is no longer a need for callers to call computeFastBounds() on the bounds passed to SkCanvas::saveLayer(). Any margin required by image filters in the SkPaint will be handled internally by Skia. Also, rather than modifying the CTM and mapping the bounds by hand, use an SkLocalMatrixImageFilter to apply the inverse CTM to filter parameters, and pass the original primitive bounds. (2D canvas semantics require that shadow offsets and other filter parameters are unaffected by the CTM). R=junov@chromium.org BUG=570002 Committed: https://crrev.com/aea5bd2c15641110e9f9d5361134823af0e51d4f Cr-Commit-Position: refs/heads/master@{#365477}

Patch Set 1 #

Patch Set 2 : mark some more tests NeedsRebaseline #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -10 lines) Patch
M third_party/WebKit/LayoutTests/TestExpectations View 1 1 chunk +5 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.cpp View 1 chunk +4 lines, -10 lines 1 comment Download

Messages

Total messages: 20 (8 generated)
Stephen White
junov@: PTAL. Thanks!
5 years ago (2015-12-15 20:30:19 UTC) #1
Justin Novosad
lgtm, assuming the trybots like it.
5 years ago (2015-12-15 20:35:30 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1530503004/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1530503004/1
5 years ago (2015-12-15 20:57:51 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1530503004/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1530503004/20001
5 years ago (2015-12-15 21:37:25 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/156608)
5 years ago (2015-12-15 22:59:38 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1530503004/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1530503004/20001
5 years ago (2015-12-15 23:04:13 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/156664)
5 years ago (2015-12-16 01:26:39 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1530503004/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1530503004/20001
5 years ago (2015-12-16 03:18:07 UTC) #15
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years ago (2015-12-16 05:46:24 UTC) #16
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/aea5bd2c15641110e9f9d5361134823af0e51d4f Cr-Commit-Position: refs/heads/master@{#365477}
5 years ago (2015-12-16 05:48:01 UTC) #18
Justin Novosad
https://codereview.chromium.org/1530503004/diff/20001/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.cpp File third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.cpp (right): https://codereview.chromium.org/1530503004/diff/20001/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.cpp#newcode834 third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.cpp:834: SkMatrix ctm = c->getTotalMatrix(); Could you apply the same ...
4 years, 11 months ago (2016-01-08 19:14:05 UTC) #19
Justin Novosad
4 years, 11 months ago (2016-01-08 19:15:18 UTC) #20
Message was sent while issue was closed.
On 2016/01/08 19:14:05, Justin Novosad wrote:
>
https://codereview.chromium.org/1530503004/diff/20001/third_party/WebKit/Sour...
> File third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.cpp
> (right):
> 
>
https://codereview.chromium.org/1530503004/diff/20001/third_party/WebKit/Sour...
> third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.cpp:834:
> SkMatrix ctm = c->getTotalMatrix();
> Could you apply the same magic here as well?  Never mind conficts with my
other
> CL. I would like to re-write a fix on top of this awesomenes

Eh nevermind. I'll do it in my CL

Powered by Google App Engine
This is Rietveld 408576698