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

Issue 11362024: added fix that deals with precision in layer sorter (Closed)

Created:
8 years, 1 month ago by whunt
Modified:
7 years, 11 months ago
CC:
chromium-reviews, cc-bugs_chromium.org
Visibility:
Public.

Description

Fixed a bug in the layer sorter to deal with layers that are very close together. Due to numeric precision issues, the sorter would produce wrong results for some transformations. The patch checks to see if all tests that compare the edges of the two layers result in significant precision loss. If all tests cause significant precision loss the sorter now declares that it is impossible to tell which layer should be drawn first and falls back to document order for those layers. This produces a consistent result across frames for layers that are close together and eliminated flickering artifacts on the test scene. A unit test is included. The test takes two layers (very close together) and tests to see what order the layer-sorter produces. The correct sorted order of the layers is the same as document order. Without this patch the layer-sorter puts them in the wrong order. BUG=61666 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=176178

Patch Set 1 #

Total comments: 6

Patch Set 2 : Fixed comments and formatting as requested by reviewers #

Total comments: 1

Patch Set 3 : git cl try #

Patch Set 4 : updated to tip of tree #

Total comments: 8

Patch Set 5 : git cl try #

Patch Set 6 : merging to tip of tree #

Patch Set 7 : merging with tip of tree #

Unified diffs Side-by-side diffs Delta from patch set Stats (+84 lines, -0 lines) Patch
M cc/layer_sorter.cc View 1 2 3 4 5 4 chunks +34 lines, -0 lines 0 comments Download
M cc/layer_sorter_unittest.cc View 1 2 3 4 5 6 1 chunk +50 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
enne (OOO)
Just FYI, unless you "publish and mail comments" (even with a blank comment), nobody gets ...
8 years, 1 month ago (2012-11-01 20:08:55 UTC) #1
danakj
http://codereview.chromium.org/11362024/diff/1/cc/layer_sorter.cc File cc/layer_sorter.cc (right): http://codereview.chromium.org/11362024/diff/1/cc/layer_sorter.cc#newcode118 cc/layer_sorter.cc:118: // flag to tell us if we've computed an ...
8 years, 1 month ago (2012-11-01 20:15:33 UTC) #2
whunt
On 2012/11/01 20:08:55, enne wrote: > Just FYI, unless you "publish and mail comments" (even ...
8 years, 1 month ago (2012-11-01 22:34:07 UTC) #3
enne (OOO)
lgtm (In other words, feel free to land this after addressing the nits below and ...
8 years, 1 month ago (2012-11-01 22:55:23 UTC) #4
shawnsingh
I checked the first version of this patch against my list of 3d CSS demos. ...
8 years, 1 month ago (2012-11-01 23:03:57 UTC) #5
danakj
http://codereview.chromium.org/11362024/diff/2014/cc/layer_sorter.cc File cc/layer_sorter.cc (right): http://codereview.chromium.org/11362024/diff/2014/cc/layer_sorter.cc#newcode141 cc/layer_sorter.cc:141: float absMax = fmax(fabs(zb), fabs(za)); On 2012/11/01 23:03:57, shawnsingh ...
8 years, 1 month ago (2012-11-01 23:06:34 UTC) #6
shawnsingh
Follow-up about relative error thresholding versus ulp thresholding (i.e. integer comparison of float values) - ...
8 years, 1 month ago (2012-11-02 01:30:07 UTC) #7
enne (OOO)
One other minor thing. Since the description becomes the commit message, could you edit it ...
8 years, 1 month ago (2012-11-02 19:21:54 UTC) #8
shawnsingh
LGTM except you might have meant to run "git cl try" from the command line ...
8 years, 1 month ago (2012-11-03 03:54:48 UTC) #9
enne (OOO)
Were you planning to commit this at some point?
8 years, 1 month ago (2012-11-21 01:56:29 UTC) #10
whunt
On 2012/11/21 01:56:29, enne wrote: > Were you planning to commit this at some point? ...
8 years, 1 month ago (2012-11-21 20:29:48 UTC) #11
enne (OOO)
Ok, thanks! I was just going through stale codereviews in my list to see if ...
8 years ago (2012-11-26 14:41:23 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/whunt@chromium.org/11362024/25001
7 years, 11 months ago (2013-01-08 00:21:02 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/whunt@chromium.org/11362024/25001
7 years, 11 months ago (2013-01-10 19:25:26 UTC) #14
commit-bot: I haz the power
7 years, 11 months ago (2013-01-10 22:31:14 UTC) #15
Message was sent while issue was closed.
Change committed as 176178

Powered by Google App Engine
This is Rietveld 408576698