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

Issue 23572033: cc: Add test for AA quads due to precision loss (Closed)

Created:
7 years, 3 months ago by enne (OOO)
Modified:
7 years, 3 months ago
CC:
chromium-reviews, cc-bugs_chromium.org, epenner
Visibility:
Public.

Description

cc: Fix precision loss causing AA quads By changing 1.f to 1.0, this allows the inverse contents scale to cancel out properly in the transformation matrix. BUG=259154 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=221889

Patch Set 1 #

Patch Set 2 : Fix test, clean test, add code fix #

Total comments: 1

Patch Set 3 : SkMScalar #

Patch Set 4 : Don't bother converting a literal #

Total comments: 4

Patch Set 5 : danakj review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+98 lines, -22 lines) Patch
M cc/output/gl_renderer.h View 2 chunks +11 lines, -11 lines 0 comments Download
M cc/output/gl_renderer.cc View 4 chunks +8 lines, -9 lines 0 comments Download
M cc/trees/layer_tree_host_common.cc View 1 2 3 4 1 chunk +3 lines, -2 lines 0 comments Download
M cc/trees/layer_tree_host_impl_unittest.cc View 1 2 3 4 3 chunks +76 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
enne (OOO)
This is epenner's two character patch from https://codereview.chromium.org/23440005/ that fixes precision loss, but also adds ...
7 years, 3 months ago (2013-09-06 23:44:20 UTC) #1
epennerAtGoogle
On 2013/09/06 23:44:20, enne wrote: > This is epenner's two character patch from > https://codereview.chromium.org/23440005/ ...
7 years, 3 months ago (2013-09-06 23:52:26 UTC) #2
aelias_OOO_until_Jul13
Drive-by: would a cleaner fix be to switch contents_scale_x/y to return a value of type ...
7 years, 3 months ago (2013-09-06 23:59:20 UTC) #3
epennerAtGoogle
https://codereview.chromium.org/23572033/diff/3001/cc/output/gl_renderer.cc File cc/output/gl_renderer.cc (right): https://codereview.chromium.org/23572033/diff/3001/cc/output/gl_renderer.cc#newcode1241 cc/output/gl_renderer.cc:1241: Settings().allow_antialiasing && !quad->force_anti_aliasing_off && Nice short circuit.
7 years, 3 months ago (2013-09-07 00:00:32 UTC) #4
enne (OOO)
On 2013/09/06 23:59:20, aelias wrote: > Drive-by: would a cleaner fix be to switch contents_scale_x/y ...
7 years, 3 months ago (2013-09-07 00:07:06 UTC) #5
enne (OOO)
On 2013/09/07 00:07:06, enne wrote: > On 2013/09/06 23:59:20, aelias wrote: > > Drive-by: would ...
7 years, 3 months ago (2013-09-07 00:07:54 UTC) #6
aelias_OOO_until_Jul13
lgtm. I like how it makes it clear that some funny business is going on ...
7 years, 3 months ago (2013-09-07 00:14:39 UTC) #7
epennerAtGoogle
On 2013/09/07 00:14:39, aelias wrote: > lgtm. I like how it makes it clear that ...
7 years, 3 months ago (2013-09-07 00:20:10 UTC) #8
danakj
LGTM https://codereview.chromium.org/23572033/diff/6001/cc/trees/layer_tree_host_common.cc File cc/trees/layer_tree_host_common.cc (right): https://codereview.chromium.org/23572033/diff/6001/cc/trees/layer_tree_host_common.cc#newcode1412 cc/trees/layer_tree_host_common.cc:1412: SkMScalar one(1.0); nit: use SK_MScalar1? or maybe not? ...
7 years, 3 months ago (2013-09-07 00:54:59 UTC) #9
enne (OOO)
https://codereview.chromium.org/23572033/diff/6001/cc/trees/layer_tree_host_common.cc File cc/trees/layer_tree_host_common.cc (right): https://codereview.chromium.org/23572033/diff/6001/cc/trees/layer_tree_host_common.cc#newcode1412 cc/trees/layer_tree_host_common.cc:1412: SkMScalar one(1.0); On 2013/09/07 00:54:59, danakj wrote: > nit: ...
7 years, 3 months ago (2013-09-07 01:25:18 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/enne@chromium.org/23572033/20001
7 years, 3 months ago (2013-09-07 01:26:09 UTC) #11
commit-bot: I haz the power
7 years, 3 months ago (2013-09-07 04:29:31 UTC) #12
Message was sent while issue was closed.
Change committed as 221889

Powered by Google App Engine
This is Rietveld 408576698