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

Issue 22486003: Fix hairline pathrenderer for Nexus-10. Switches to passing in an offset and using that to compute … (Closed)

Created:
7 years, 4 months ago by jvanverth1
Modified:
7 years, 4 months ago
CC:
skia-review_googlegroups.com, egdaniel
Visibility:
Public.

Description

Fix hairline pathrenderer for Nexus-10. Switches to using additional geometry and passing in the coverage value instead. BUG= Committed: http://code.google.com/p/skia/source/detail?r=10640 Committed: http://code.google.com/p/skia/source/detail?r=10707 R=bsalomon@google.com, robertphillips@google.com Committed: https://code.google.com/p/skia/source/detail?r=10769

Patch Set 1 #

Patch Set 2 : Changed to use geometry-based method #

Total comments: 2

Patch Set 3 : Fix comment. #

Patch Set 4 : Changed fCoverage to fLine.fCoverage; added note for later. #

Patch Set 5 : Changed fCoverage to fLine.fCoverage; added note for later. #

Total comments: 8

Patch Set 6 : Minor tweaks for nits/suggestions #

Patch Set 7 : Split hairline vertex buffer into buffer for line segments and buffer for quadratics #

Total comments: 26

Patch Set 8 : Fixes based on comments #

Patch Set 9 : More view matrix cleanup #

Total comments: 2

Patch Set 10 : Clean up asserts #

Unified diffs Side-by-side diffs Delta from patch set Stats (+327 lines, -272 lines) Patch
M src/gpu/GrAAHairLinePathRenderer.h View 1 2 3 4 5 6 7 2 chunks +22 lines, -8 lines 0 comments Download
M src/gpu/GrAAHairLinePathRenderer.cpp View 1 2 3 4 5 6 7 8 9 17 chunks +305 lines, -264 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
jvanverth1
This appears to be slightly slower, but not much (measured on Mac). It does produce ...
7 years, 4 months ago (2013-08-06 21:54:42 UTC) #1
bsalomon
On 2013/08/06 21:54:42, JimVV wrote: > This appears to be slightly slower, but not much ...
7 years, 4 months ago (2013-08-06 22:08:17 UTC) #2
jvanverth1
Based on Robert's advice, I changed this to use a geometry-based approach instead. With this ...
7 years, 4 months ago (2013-08-07 20:30:12 UTC) #3
bsalomon
https://codereview.chromium.org/22486003/diff/5001/src/gpu/GrAAHairLinePathRenderer.cpp File src/gpu/GrAAHairLinePathRenderer.cpp (right): https://codereview.chromium.org/22486003/diff/5001/src/gpu/GrAAHairLinePathRenderer.cpp#newcode489 src/gpu/GrAAHairLinePathRenderer.cpp:489: SkScalar fCoverage; fLineCoverage? or... struct { SkScalar fCoverage; } ...
7 years, 4 months ago (2013-08-07 20:59:57 UTC) #4
jvanverth1
https://codereview.chromium.org/22486003/diff/5001/src/gpu/GrAAHairLinePathRenderer.cpp File src/gpu/GrAAHairLinePathRenderer.cpp (right): https://codereview.chromium.org/22486003/diff/5001/src/gpu/GrAAHairLinePathRenderer.cpp#newcode489 src/gpu/GrAAHairLinePathRenderer.cpp:489: SkScalar fCoverage; On 2013/08/07 20:59:57, bsalomon wrote: > fLineCoverage? ...
7 years, 4 months ago (2013-08-07 21:15:04 UTC) #5
bsalomon
lgtm
7 years, 4 months ago (2013-08-08 13:06:38 UTC) #6
robertphillips
lgtm + nits/suggestions https://codereview.chromium.org/22486003/diff/14001/src/gpu/GrAAHairLinePathRenderer.cpp File src/gpu/GrAAHairLinePathRenderer.cpp (right): https://codereview.chromium.org/22486003/diff/14001/src/gpu/GrAAHairLinePathRenderer.cpp#newcode44 src/gpu/GrAAHairLinePathRenderer.cpp:44: make this static too? https://codereview.chromium.org/22486003/diff/14001/src/gpu/GrAAHairLinePathRenderer.cpp#newcode86 src/gpu/GrAAHairLinePathRenderer.cpp:86: ...
7 years, 4 months ago (2013-08-08 13:08:53 UTC) #7
jvanverth1
https://codereview.chromium.org/22486003/diff/14001/src/gpu/GrAAHairLinePathRenderer.cpp File src/gpu/GrAAHairLinePathRenderer.cpp (right): https://codereview.chromium.org/22486003/diff/14001/src/gpu/GrAAHairLinePathRenderer.cpp#newcode44 src/gpu/GrAAHairLinePathRenderer.cpp:44: On 2013/08/08 13:08:54, robertphillips wrote: > make this static ...
7 years, 4 months ago (2013-08-08 18:09:48 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/jvanverth@google.com/22486003/22001
7 years, 4 months ago (2013-08-08 18:10:33 UTC) #9
commit-bot: I haz the power
Change committed as 10640
7 years, 4 months ago (2013-08-08 18:22:10 UTC) #10
jvanverth1
I've updated the change to split the vertex buffer into two: one for line segments ...
7 years, 4 months ago (2013-08-12 17:07:56 UTC) #11
bsalomon
Adding Greg to CC so he is aware of this. https://codereview.chromium.org/22486003/diff/31001/src/gpu/GrAAHairLinePathRenderer.cpp File src/gpu/GrAAHairLinePathRenderer.cpp (right): https://codereview.chromium.org/22486003/diff/31001/src/gpu/GrAAHairLinePathRenderer.cpp#newcode489 ...
7 years, 4 months ago (2013-08-12 17:25:43 UTC) #12
robertphillips
https://codereview.chromium.org/22486003/diff/31001/src/gpu/GrAAHairLinePathRenderer.cpp File src/gpu/GrAAHairLinePathRenderer.cpp (right): https://codereview.chromium.org/22486003/diff/31001/src/gpu/GrAAHairLinePathRenderer.cpp#newcode500 src/gpu/GrAAHairLinePathRenderer.cpp:500: Do we need one of these for LineVertex now? ...
7 years, 4 months ago (2013-08-12 17:27:01 UTC) #13
jvanverth1
https://codereview.chromium.org/22486003/diff/31001/src/gpu/GrAAHairLinePathRenderer.cpp File src/gpu/GrAAHairLinePathRenderer.cpp (right): https://codereview.chromium.org/22486003/diff/31001/src/gpu/GrAAHairLinePathRenderer.cpp#newcode489 src/gpu/GrAAHairLinePathRenderer.cpp:489: struct { On 2013/08/12 17:25:43, bsalomon wrote: > Would ...
7 years, 4 months ago (2013-08-13 15:04:09 UTC) #14
bsalomon
lgtm with minor change noted below. https://codereview.chromium.org/22486003/diff/45001/src/gpu/GrAAHairLinePathRenderer.cpp File src/gpu/GrAAHairLinePathRenderer.cpp (right): https://codereview.chromium.org/22486003/diff/45001/src/gpu/GrAAHairLinePathRenderer.cpp#newcode1193 src/gpu/GrAAHairLinePathRenderer.cpp:1193: #if GR_DEBUG We ...
7 years, 4 months ago (2013-08-13 15:14:22 UTC) #15
jvanverth1
On 2013/08/13 15:14:22, bsalomon wrote: > lgtm with minor change noted below. > > https://codereview.chromium.org/22486003/diff/45001/src/gpu/GrAAHairLinePathRenderer.cpp ...
7 years, 4 months ago (2013-08-13 15:21:38 UTC) #16
bsalomon
On 2013/08/13 15:21:38, JimVV wrote: > On 2013/08/13 15:14:22, bsalomon wrote: > > lgtm with ...
7 years, 4 months ago (2013-08-13 16:08:02 UTC) #17
robertphillips
lgtm
7 years, 4 months ago (2013-08-13 16:51:17 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/jvanverth@google.com/22486003/50001
7 years, 4 months ago (2013-08-14 12:54:29 UTC) #19
commit-bot: I haz the power
Change committed as 10707
7 years, 4 months ago (2013-08-14 13:02:16 UTC) #20
jvanverth1
7 years, 4 months ago (2013-08-16 14:52:28 UTC) #21
Message was sent while issue was closed.
Committed patchset #10 manually as r10769 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698