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

Issue 343543005: Round in the range [-0.5, 0.5) when computing offsetFromRenderer and subpixelAccumulation (Closed)

Created:
6 years, 6 months ago by chrishtr
Modified:
6 years, 6 months ago
CC:
blink-reviews, blink-reviews-rendering, zoltan1, eae+blinkwatch, leviw+renderwatch, abarth-chromium, jchaffraix+rendering, pdr., rune+blink
Project:
blink
Visibility:
Public.

Description

Round in the range [-0.5, 0.5) when computing offsetFromRenderer and subpixelAccumulation for squashed layers. Also remove the assert that the subpixel accumulation matches the subpixel accumulation if the layer was separately composited. This doesn't make sense, since the squashing layer is positioned relative to the compositing ancestor of m_owningLayer, not the squashing layer, which can have different subpixel accumulations since subpixel accumulation is relative to the compositing container of the graphics layer. BUG=369526 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=176441

Patch Set 1 #

Patch Set 2 : Adjusted comments. #

Patch Set 3 : Added test. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -6 lines) Patch
A LayoutTests/compositing/squashing/subpixel-rounding.html View 1 2 1 chunk +7 lines, -0 lines 0 comments Download
A LayoutTests/compositing/squashing/subpixel-rounding-expected.html View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M Source/core/rendering/compositing/CompositedLayerMapping.cpp View 1 2 chunks +5 lines, -6 lines 1 comment Download

Messages

Total messages: 6 (0 generated)
chrishtr
I'm still struggling to find a test that reproduces this. I have confirmed so far ...
6 years, 6 months ago (2014-06-18 16:15:48 UTC) #1
chrishtr
Success! I now have a test. The case in which it fails is when subpixel ...
6 years, 6 months ago (2014-06-18 17:15:19 UTC) #2
leviw_travelin_and_unemployed
https://codereview.chromium.org/343543005/diff/40001/Source/core/rendering/compositing/CompositedLayerMapping.cpp File Source/core/rendering/compositing/CompositedLayerMapping.cpp (left): https://codereview.chromium.org/343543005/diff/40001/Source/core/rendering/compositing/CompositedLayerMapping.cpp#oldcode592 Source/core/rendering/compositing/CompositedLayerMapping.cpp:592: toLayoutSize(computeOffsetFromCompositedAncestor(layers[i].renderLayer, layers[i].renderLayer->ancestorCompositingLayer())).fraction()); I'm sad to see the assert leave, ...
6 years, 6 months ago (2014-06-18 17:33:35 UTC) #3
chrishtr
The CQ bit was checked by chrishtr@chromium.org
6 years, 6 months ago (2014-06-18 18:32:28 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/chrishtr@chromium.org/343543005/40001
6 years, 6 months ago (2014-06-18 18:33:04 UTC) #5
commit-bot: I haz the power
6 years, 6 months ago (2014-06-18 18:37:23 UTC) #6
Message was sent while issue was closed.
Change committed as 176441

Powered by Google App Engine
This is Rietveld 408576698