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

Issue 589103004: Add GrAASmallPathRenderer. (Closed)

Created:
6 years, 3 months ago by jvanverth1
Modified:
6 years, 2 months ago
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Project:
skia
Visibility:
Public.

Description

Add GrAASmallPathRenderer. Uses cached signed distance fields to render scaled and rotated versions of small paths. BUG=skia:2935 Committed: https://skia.googlesource.com/skia/+/fa38a30897ceda3e93355d69b8a6812c823f41f6

Patch Set 1 #

Patch Set 2 : Add SDF path to atlas #

Patch Set 3 : Rendering at roughly the right scale and position #

Patch Set 4 : Some clean up #

Patch Set 5 : Add flush when cache is full #

Patch Set 6 : Try to get scale and placement correct #

Patch Set 7 : More clean up #

Patch Set 8 : Rebase to ToT #

Patch Set 9 : Get the path in the right place; patch for Effects changes. #

Patch Set 10 : Remove unnecessary include. #

Patch Set 11 : Rename SmallPathRenderer to DistanceFieldPathRenderer. #

Total comments: 107

Patch Set 12 : Some fixes and clean up #

Total comments: 10

Patch Set 13 : Fix compile issue. #

Patch Set 14 : Address nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+674 lines, -9 lines) Patch
M expectations/gm/ignored-tests.txt View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +14 lines, -0 lines 0 comments Download
M gyp/gpu.gypi View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -0 lines 0 comments Download
M gyp/skia_for_android_framework_defines.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -0 lines 0 comments Download
M gyp/skia_for_chromium_defines.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -0 lines 0 comments Download
A src/gpu/GrAADistanceFieldPathRenderer.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +77 lines, -0 lines 0 comments Download
A src/gpu/GrAADistanceFieldPathRenderer.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +340 lines, -0 lines 0 comments Download
M src/gpu/GrAddPathRenderers_default.cpp View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +4 lines, -0 lines 0 comments Download
M src/gpu/GrSWMaskHelper.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +4 lines, -1 line 0 comments Download
M src/gpu/GrSWMaskHelper.cpp View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +11 lines, -0 lines 0 comments Download
M src/gpu/effects/GrDistanceFieldTextureEffect.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +45 lines, -2 lines 0 comments Download
M src/gpu/effects/GrDistanceFieldTextureEffect.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 5 chunks +175 lines, -6 lines 0 comments Download

Messages

Total messages: 17 (4 generated)
jvanverth1
I need to do more testing for perf and quality, but overall this looks like ...
6 years, 2 months ago (2014-09-25 19:11:26 UTC) #2
egdaniel
On 2014/09/25 19:11:26, jvanverth1 wrote: > I need to do more testing for perf and ...
6 years, 2 months ago (2014-09-25 20:34:27 UTC) #3
jvanverth1
On 2014/09/25 20:34:27, egdaniel wrote: > On 2014/09/25 19:11:26, jvanverth1 wrote: > > I need ...
6 years, 2 months ago (2014-09-26 12:55:04 UTC) #4
egdaniel
https://codereview.chromium.org/589103004/diff/200001/src/gpu/GrAADistanceFieldPathRenderer.cpp File src/gpu/GrAADistanceFieldPathRenderer.cpp (right): https://codereview.chromium.org/589103004/diff/200001/src/gpu/GrAADistanceFieldPathRenderer.cpp#newcode59 src/gpu/GrAADistanceFieldPathRenderer.cpp:59: // currently don't support scaling more than 4x But ...
6 years, 2 months ago (2014-09-26 13:30:25 UTC) #5
robertphillips
https://codereview.chromium.org/589103004/diff/200001/src/gpu/GrAADistanceFieldPathRenderer.cpp File src/gpu/GrAADistanceFieldPathRenderer.cpp (right): https://codereview.chromium.org/589103004/diff/200001/src/gpu/GrAADistanceFieldPathRenderer.cpp#newcode8 src/gpu/GrAADistanceFieldPathRenderer.cpp:8: Is it kosher to include a gl header in ...
6 years, 2 months ago (2014-09-26 14:00:32 UTC) #7
bsalomon
https://codereview.chromium.org/589103004/diff/200001/src/gpu/GrAADistanceFieldPathRenderer.cpp File src/gpu/GrAADistanceFieldPathRenderer.cpp (right): https://codereview.chromium.org/589103004/diff/200001/src/gpu/GrAADistanceFieldPathRenderer.cpp#newcode8 src/gpu/GrAADistanceFieldPathRenderer.cpp:8: On 2014/09/26 14:00:30, robertphillips wrote: > Is it kosher ...
6 years, 2 months ago (2014-09-26 17:32:51 UTC) #9
jvanverth1
I think this is good to go. I've addressed the xfermode issues, and set a ...
6 years, 2 months ago (2014-10-03 17:28:24 UTC) #10
bsalomon
Are you worried about this slowing down dynamic paths? Should we have a volatile bit ...
6 years, 2 months ago (2014-10-03 17:46:27 UTC) #11
robertphillips
lgtm + nits https://codereview.chromium.org/589103004/diff/220001/gyp/skia_for_android_framework_defines.gypi File gyp/skia_for_android_framework_defines.gypi (right): https://codereview.chromium.org/589103004/diff/220001/gyp/skia_for_android_framework_defines.gypi#newcode24 gyp/skia_for_android_framework_defines.gypi:24: 'SK_LEGACY_PICTURE_DRAW_API', extra tab ? https://codereview.chromium.org/589103004/diff/220001/gyp/skia_for_chromium_defines.gypi File ...
6 years, 2 months ago (2014-10-03 19:23:41 UTC) #12
jvanverth1
On 2014/10/03 17:46:27, bsalomon wrote: > Are you worried about this slowing down dynamic paths? ...
6 years, 2 months ago (2014-10-03 20:43:30 UTC) #13
bsalomon
lgtm
6 years, 2 months ago (2014-10-03 21:32:46 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/589103004/260001
6 years, 2 months ago (2014-10-06 12:52:18 UTC) #16
commit-bot: I haz the power
6 years, 2 months ago (2014-10-06 12:59:31 UTC) #17
Message was sent while issue was closed.
Committed patchset #14 (id:260001) as fa38a30897ceda3e93355d69b8a6812c823f41f6

Powered by Google App Engine
This is Rietveld 408576698