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

Issue 2112753002: Snap paint offset paint property to pixel boundaries (Closed)

Created:
4 years, 5 months ago by pdr.
Modified:
4 years, 5 months ago
Reviewers:
chrishtr, trchen
CC:
blink-reviews, blink-reviews-paint_chromium.org, chromium-reviews, dshwang, jbroman+watch_chromium.org, pdr+virtualspv2watchlist_chromium.org, slimming-paint-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Snap paint offset paint property to pixel boundaries Transformed content is snapped to pixel boundaries to reduce aliasing so we need to pixel snap the paint offset transform created before transform paint property nodes. Any leftover subpixel value is analagous to the subpixel accumulation on PaintLayer.h and is passed through to the transformed content. Committed: https://crrev.com/5a41d4879655e6e726b84f83b72a8bf52ccc8e07 Cr-Commit-Position: refs/heads/master@{#403322}

Patch Set 1 #

Total comments: 7

Patch Set 2 : Add more tests, cleanup comments #

Total comments: 2

Patch Set 3 : More unit tests for simple snapping and fixed position #

Messages

Total messages: 30 (9 generated)
pdr.
4 years, 5 months ago (2016-06-29 23:32:13 UTC) #2
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2112753002/1
4 years, 5 months ago (2016-06-29 23:33:35 UTC) #4
chrishtr
Please add a test for position: fixed, which is also a trigger for paintsWithTransform. https://codereview.chromium.org/2112753002/diff/1/third_party/WebKit/LayoutTests/paint/subpixel/subpixel-accumulation-with-layer.html ...
4 years, 5 months ago (2016-06-29 23:46:07 UTC) #5
chrishtr
https://codereview.chromium.org/2112753002/diff/1/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilderTest.cpp File third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilderTest.cpp (right): https://codereview.chromium.org/2112753002/diff/1/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilderTest.cpp#newcode938 third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilderTest.cpp:938: EXPECT_EQ(TransformationMatrix().translate(1, 1), bProperties->transform()->parent()->matrix()); Is there already a unittest for ...
4 years, 5 months ago (2016-06-29 23:46:30 UTC) #6
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 5 months ago (2016-06-30 00:49:34 UTC) #8
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2112753002/20001
4 years, 5 months ago (2016-06-30 06:01:53 UTC) #10
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/237299)
4 years, 5 months ago (2016-06-30 07:04:44 UTC) #12
pdr.
https://codereview.chromium.org/2112753002/diff/1/third_party/WebKit/LayoutTests/paint/subpixel/subpixel-accumulation-with-layer.html File third_party/WebKit/LayoutTests/paint/subpixel/subpixel-accumulation-with-layer.html (right): https://codereview.chromium.org/2112753002/diff/1/third_party/WebKit/LayoutTests/paint/subpixel/subpixel-accumulation-with-layer.html#newcode7 third_party/WebKit/LayoutTests/paint/subpixel/subpixel-accumulation-with-layer.html:7: <div style="width: 70px; height: 70px; left: 0.7px; top: 0.7px;"> ...
4 years, 5 months ago (2016-06-30 16:03:12 UTC) #13
pdr.
On 2016/06/29 at 23:46:30, chrishtr wrote: > https://codereview.chromium.org/2112753002/diff/1/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilderTest.cpp > File third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilderTest.cpp (right): > > https://codereview.chromium.org/2112753002/diff/1/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilderTest.cpp#newcode938 ...
4 years, 5 months ago (2016-06-30 16:53:04 UTC) #14
chrishtr
https://codereview.chromium.org/2112753002/diff/1/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilderTest.cpp File third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilderTest.cpp (right): https://codereview.chromium.org/2112753002/diff/1/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilderTest.cpp#newcode938 third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilderTest.cpp:938: EXPECT_EQ(TransformationMatrix().translate(1, 1), bProperties->transform()->parent()->matrix()); On 2016/06/30 at 16:03:12, pdr. wrote: ...
4 years, 5 months ago (2016-06-30 16:57:17 UTC) #15
pdr.
On 2016/06/30 at 16:57:17, chrishtr wrote: > https://codereview.chromium.org/2112753002/diff/1/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilderTest.cpp > File third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilderTest.cpp (right): > > https://codereview.chromium.org/2112753002/diff/1/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilderTest.cpp#newcode938 ...
4 years, 5 months ago (2016-06-30 18:54:41 UTC) #16
pdr.
PTAL https://codereview.chromium.org/2112753002/diff/20001/third_party/WebKit/LayoutTests/paint/subpixel/subpixel-accumulation-with-fixedpos.html File third_party/WebKit/LayoutTests/paint/subpixel/subpixel-accumulation-with-fixedpos.html (right): https://codereview.chromium.org/2112753002/diff/20001/third_party/WebKit/LayoutTests/paint/subpixel/subpixel-accumulation-with-fixedpos.html#newcode3 third_party/WebKit/LayoutTests/paint/subpixel/subpixel-accumulation-with-fixedpos.html:3: <div style="background: white; width: 100px; height: 100px; position: ...
4 years, 5 months ago (2016-06-30 18:54:48 UTC) #17
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2112753002/40001
4 years, 5 months ago (2016-06-30 19:42:08 UTC) #19
chrishtr
lgtm
4 years, 5 months ago (2016-06-30 20:02:18 UTC) #20
pdr.
On 2016/06/30 at 20:02:18, chrishtr wrote: > lgtm @trchen, lgty 2?
4 years, 5 months ago (2016-06-30 20:03:43 UTC) #21
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/248716)
4 years, 5 months ago (2016-06-30 21:14:36 UTC) #23
trchen
lgtm
4 years, 5 months ago (2016-06-30 21:56:42 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2112753002/40001
4 years, 5 months ago (2016-06-30 21:57:43 UTC) #26
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 5 months ago (2016-06-30 23:05:11 UTC) #27
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-06-30 23:05:20 UTC) #28
commit-bot: I haz the power
4 years, 5 months ago (2016-06-30 23:07:12 UTC) #30
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/5a41d4879655e6e726b84f83b72a8bf52ccc8e07
Cr-Commit-Position: refs/heads/master@{#403322}

Powered by Google App Engine
This is Rietveld 408576698