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

Issue 2727223002: Round the subpixel accumulation used for composited scrolling content (Closed)

Created:
3 years, 9 months ago by flackr
Modified:
3 years, 7 months ago
Reviewers:
chrishtr
CC:
blink-reviews, blink-reviews-paint_chromium.org, chromium-reviews, dshwang, Stephen Chennney
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Round the subpixel accumulation used for composited scrolling content When painting the scrolling content layer background the composited layer for the background does not include the fractional part of the subpixel accumulation in the layer position. In the test case included we would not fully paint the background due to this incorrect paint offset. BUG=692486 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2

Patch Set 1 #

Patch Set 2 : Adjust offset passed to paintBoxDecorationBackgroundWithRect. #

Patch Set 3 : Round the adjusted offset when painting into the composited scrolling contents layer. #

Patch Set 4 : Remove the fractional subpixel accumulation from the adjusted offset on composited scrolling conten… #

Patch Set 5 : Round the subpixel accumulation in PaintLayerPainter for scrolling contents. #

Total comments: 1

Patch Set 6 : Add test for scrolling contents drawn content. #

Total comments: 2

Patch Set 7 : Move subpixel offset conditional into CompositedLayerMapping #

Patch Set 8 : Add checks at alternate callsites to PaintLayerPaint::paintLayerContents. #

Patch Set 9 : Merge and fix #

Total comments: 2

Patch Set 10 : Merge and remove subpixel adjustment for transformed fragments. #

Total comments: 2

Messages

Total messages: 43 (20 generated)
flackr
Hey, Perhaps we want to pass in the correct paint offset but it wasn't clear ...
3 years, 9 months ago (2017-03-02 10:46:08 UTC) #5
chrishtr
What do you mean by "fractional layer paint offset"? Subpixel in some way? Isn't paintOffset ...
3 years, 9 months ago (2017-03-02 23:08:56 UTC) #6
chrishtr
Hi - do you need more feedback on this patch?
3 years, 9 months ago (2017-03-08 22:47:26 UTC) #7
flackr
On 2017/03/08 22:47:26, chrishtr wrote: > Hi - do you need more feedback on this ...
3 years, 9 months ago (2017-03-09 00:37:17 UTC) #8
chrishtr
On 2017/03/09 at 00:37:17, flackr wrote: > On 2017/03/08 22:47:26, chrishtr wrote: > > Hi ...
3 years, 9 months ago (2017-03-09 21:28:32 UTC) #9
flackr
https://codereview.chromium.org/2727223002/diff/80001/third_party/WebKit/Source/core/paint/PaintLayerPainter.cpp File third_party/WebKit/Source/core/paint/PaintLayerPainter.cpp (right): https://codereview.chromium.org/2727223002/diff/80001/third_party/WebKit/Source/core/paint/PaintLayerPainter.cpp#newcode331 third_party/WebKit/Source/core/paint/PaintLayerPainter.cpp:331: subpixelAccumulation = LayoutSize(roundedIntSize(subpixelAccumulation)); I found where we seem to ...
3 years, 9 months ago (2017-03-14 21:07:19 UTC) #10
chrishtr
On 2017/03/14 at 21:07:19, flackr wrote: > https://codereview.chromium.org/2727223002/diff/80001/third_party/WebKit/Source/core/paint/PaintLayerPainter.cpp > File third_party/WebKit/Source/core/paint/PaintLayerPainter.cpp (right): > > https://codereview.chromium.org/2727223002/diff/80001/third_party/WebKit/Source/core/paint/PaintLayerPainter.cpp#newcode331 ...
3 years, 9 months ago (2017-03-15 21:55:09 UTC) #12
flackr
On 2017/03/15 21:55:09, chrishtr wrote: > On 2017/03/14 at 21:07:19, flackr wrote: > > > ...
3 years, 9 months ago (2017-03-16 18:10:31 UTC) #13
chrishtr
On 2017/03/16 at 18:10:31, flackr wrote: > On 2017/03/15 21:55:09, chrishtr wrote: > > On ...
3 years, 9 months ago (2017-03-16 18:48:14 UTC) #14
flackr
On 2017/03/16 18:48:14, chrishtr wrote: > On 2017/03/16 at 18:10:31, flackr wrote: > > On ...
3 years, 8 months ago (2017-04-07 19:03:26 UTC) #15
chrishtr
https://codereview.chromium.org/2727223002/diff/100001/third_party/WebKit/Source/core/paint/PaintLayerPainter.cpp File third_party/WebKit/Source/core/paint/PaintLayerPainter.cpp (right): https://codereview.chromium.org/2727223002/diff/100001/third_party/WebKit/Source/core/paint/PaintLayerPainter.cpp#newcode325 third_party/WebKit/Source/core/paint/PaintLayerPainter.cpp:325: if (isPaintingScrollingContent) I think you can move the logic ...
3 years, 8 months ago (2017-04-07 21:03:12 UTC) #16
flackr
https://codereview.chromium.org/2727223002/diff/100001/third_party/WebKit/Source/core/paint/PaintLayerPainter.cpp File third_party/WebKit/Source/core/paint/PaintLayerPainter.cpp (right): https://codereview.chromium.org/2727223002/diff/100001/third_party/WebKit/Source/core/paint/PaintLayerPainter.cpp#newcode325 third_party/WebKit/Source/core/paint/PaintLayerPainter.cpp:325: if (isPaintingScrollingContent) On 2017/04/07 21:03:12, chrishtr wrote: > I ...
3 years, 8 months ago (2017-04-21 03:43:44 UTC) #19
chrishtr
https://codereview.chromium.org/2727223002/diff/160001/third_party/WebKit/Source/core/paint/PaintLayerPainter.cpp File third_party/WebKit/Source/core/paint/PaintLayerPainter.cpp (right): https://codereview.chromium.org/2727223002/diff/160001/third_party/WebKit/Source/core/paint/PaintLayerPainter.cpp#newcode823 third_party/WebKit/Source/core/paint/PaintLayerPainter.cpp:823: paint_layer_.GetCompositingState() == kPaintsIntoOwnBacking Why is this change needed?
3 years, 8 months ago (2017-04-21 15:50:51 UTC) #26
chrishtr
Ping - is this CL still relevant?
3 years, 7 months ago (2017-04-28 20:14:13 UTC) #27
flackr
Yes, this is still relevant, the bug still exists. I've removed the change in paint ...
3 years, 7 months ago (2017-05-04 17:38:41 UTC) #28
chrishtr
https://codereview.chromium.org/2727223002/diff/180001/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp File third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp (right): https://codereview.chromium.org/2727223002/diff/180001/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp#newcode3054 third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp:3054: sub_pixel_accumulation = This will round off the subpixel accumulation ...
3 years, 7 months ago (2017-05-05 01:14:09 UTC) #35
flackr
https://codereview.chromium.org/2727223002/diff/180001/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp File third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp (right): https://codereview.chromium.org/2727223002/diff/180001/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp#newcode3054 third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp:3054: sub_pixel_accumulation = On 2017/05/05 01:14:09, chrishtr wrote: > This ...
3 years, 7 months ago (2017-05-05 17:02:19 UTC) #36
chrishtr
On 2017/05/05 at 17:02:19, flackr wrote: > https://codereview.chromium.org/2727223002/diff/180001/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp > File third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp (right): > > https://codereview.chromium.org/2727223002/diff/180001/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp#newcode3054 ...
3 years, 7 months ago (2017-05-05 18:01:18 UTC) #37
flackr
On 2017/05/05 18:01:18, chrishtr wrote: > On 2017/05/05 at 17:02:19, flackr wrote: > > > ...
3 years, 7 months ago (2017-05-05 18:30:13 UTC) #38
flackr
On 2017/05/05 18:01:18, chrishtr wrote: > On 2017/05/05 at 17:02:19, flackr wrote: > > > ...
3 years, 7 months ago (2017-05-05 18:30:14 UTC) #39
chrishtr
On 2017/05/05 at 18:30:14, flackr wrote: > On 2017/05/05 18:01:18, chrishtr wrote: > > On ...
3 years, 7 months ago (2017-05-05 18:32:35 UTC) #40
flackr
On 2017/05/05 18:32:35, chrishtr wrote: > On 2017/05/05 at 18:30:14, flackr wrote: > > On ...
3 years, 7 months ago (2017-05-05 19:30:17 UTC) #41
flackr
3 years, 7 months ago (2017-05-20 14:51:09 UTC) #42
As per our conversation I've abandoned this approach as it seems the right thing
to do is correctly pixel snap the composited scrolling contents layers according
to the subpixel accumulaton. I've done this in
https://chromium-review.googlesource.com/c/509175/

Powered by Google App Engine
This is Rietveld 408576698