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

Issue 223673003: Improve computation of ctmScale{X,Y} in NativeImageSkia::drawPattern (Closed)

Created:
6 years, 8 months ago by fs
Modified:
6 years, 8 months ago
CC:
blink-reviews, jamesr, krit, dsinclair, jbroman, danakj, Rik, Stephen Chennney, pdr., rwlbuis
Visibility:
Public.

Description

Improve computation of ctmScale{X,Y} in NativeImageSkia::drawPattern Simply using "scale x" and "scale y" will not give the intended results for for instance mirroring transformations. Instead compute the length of the column vectors for the 2x2 submatrix. BUG=160443 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=170782

Patch Set 1 #

Total comments: 4

Patch Set 2 : Use GC::getCTM(). #

Total comments: 2

Patch Set 3 : Drop trailing WS. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+35 lines, -2 lines) Patch
A LayoutTests/fast/transforms/mirror-transform-tiled-scaled-background.html View 1 2 1 chunk +30 lines, -0 lines 0 comments Download
A LayoutTests/fast/transforms/mirror-transform-tiled-scaled-background-expected.html View 1 chunk +2 lines, -0 lines 0 comments Download
M Source/platform/graphics/skia/NativeImageSkia.cpp View 1 1 chunk +3 lines, -2 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
fs
6 years, 8 months ago (2014-04-03 11:40:59 UTC) #1
Stephen White
https://codereview.chromium.org/223673003/diff/1/Source/platform/graphics/skia/NativeImageSkia.cpp File Source/platform/graphics/skia/NativeImageSkia.cpp (right): https://codereview.chromium.org/223673003/diff/1/Source/platform/graphics/skia/NativeImageSkia.cpp#newcode421 Source/platform/graphics/skia/NativeImageSkia.cpp:421: return SkVector::Make(sqrt(scaleX * scaleX + skewY * skewY), sqrt(scaleY ...
6 years, 8 months ago (2014-04-03 12:25:03 UTC) #2
fs
https://codereview.chromium.org/223673003/diff/1/Source/platform/graphics/skia/NativeImageSkia.cpp File Source/platform/graphics/skia/NativeImageSkia.cpp (right): https://codereview.chromium.org/223673003/diff/1/Source/platform/graphics/skia/NativeImageSkia.cpp#newcode421 Source/platform/graphics/skia/NativeImageSkia.cpp:421: return SkVector::Make(sqrt(scaleX * scaleX + skewY * skewY), sqrt(scaleY ...
6 years, 8 months ago (2014-04-03 14:01:31 UTC) #3
Stephen White
LGTM https://codereview.chromium.org/223673003/diff/20001/LayoutTests/fast/transforms/mirror-transform-tiled-scaled-background.html File LayoutTests/fast/transforms/mirror-transform-tiled-scaled-background.html (right): https://codereview.chromium.org/223673003/diff/20001/LayoutTests/fast/transforms/mirror-transform-tiled-scaled-background.html#newcode15 LayoutTests/fast/transforms/mirror-transform-tiled-scaled-background.html:15: <div id=subject></div> Nit: trailing whitespace.
6 years, 8 months ago (2014-04-03 14:48:58 UTC) #4
fs
https://codereview.chromium.org/223673003/diff/20001/LayoutTests/fast/transforms/mirror-transform-tiled-scaled-background.html File LayoutTests/fast/transforms/mirror-transform-tiled-scaled-background.html (right): https://codereview.chromium.org/223673003/diff/20001/LayoutTests/fast/transforms/mirror-transform-tiled-scaled-background.html#newcode15 LayoutTests/fast/transforms/mirror-transform-tiled-scaled-background.html:15: <div id=subject></div> On 2014/04/03 14:48:59, Stephen White wrote: > ...
6 years, 8 months ago (2014-04-03 15:40:51 UTC) #5
fs
The CQ bit was checked by fs@opera.com
6 years, 8 months ago (2014-04-03 15:41:02 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fs@opera.com/223673003/40001
6 years, 8 months ago (2014-04-03 15:41:06 UTC) #7
commit-bot: I haz the power
6 years, 8 months ago (2014-04-03 16:51:31 UTC) #8
Message was sent while issue was closed.
Change committed as 170782

Powered by Google App Engine
This is Rietveld 408576698