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

Issue 326103002: Use vertex attributes for dash effect in gpu (Closed)

Created:
6 years, 6 months ago by egdaniel
Modified:
6 years, 6 months ago
Reviewers:
bsalomon
CC:
skia-review_googlegroups.com
Base URL:
https://skia.googlesource.com/skia.git@dashPlumb2
Visibility:
Public.

Description

Use vertex attributes for dash effect in gpu This will allow us to batch dashed lines together when drawing. Also, this removes the need for a coord transform matrix in the shader, thus we save the cost of uploading a new matrix uniform everytime we do a simple transform to the dashed line we are drawing. BUG=skia: Committed: https://skia.googlesource.com/skia/+/e61c411c1258a323a010558c08de3d9f8d170dca

Patch Set 1 #

Patch Set 2 : Format changes #

Total comments: 3

Patch Set 3 : Changes from review comments #

Patch Set 4 : Remove commented lines #

Total comments: 2

Patch Set 5 : Remove paint cpy, add degen dash check #

Patch Set 6 : Add dashing gm's to ignore #

Patch Set 7 : Add override stroke constructor to StrokeRec #

Patch Set 8 : Float fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+321 lines, -132 lines) Patch
M expectations/gm/ignored-tests.txt View 1 2 3 4 5 6 7 1 chunk +8 lines, -0 lines 0 comments Download
M gm/dashing.cpp View 3 chunks +0 lines, -3 lines 0 comments Download
M include/core/SkStrokeRec.h View 1 2 3 4 5 6 2 chunks +4 lines, -0 lines 0 comments Download
M include/gpu/GrContext.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/core/SkStrokeRec.cpp View 1 2 3 4 5 6 1 chunk +9 lines, -1 line 0 comments Download
M src/gpu/GrContext.cpp View 1 3 chunks +21 lines, -3 lines 0 comments Download
M src/gpu/GrStrokeInfo.h View 1 2 3 4 5 6 2 chunks +13 lines, -2 lines 0 comments Download
M src/gpu/SkGpuDevice.cpp View 1 2 3 4 5 6 1 chunk +8 lines, -3 lines 0 comments Download
M src/gpu/effects/GrDashingEffect.h View 2 chunks +7 lines, -3 lines 0 comments Download
M src/gpu/effects/GrDashingEffect.cpp View 1 2 3 4 5 6 7 16 chunks +250 lines, -117 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
egdaniel
Still has two skia and one chrome cl ahead of landing, but this is the ...
6 years, 6 months ago (2014-06-10 15:45:31 UTC) #1
bsalomon
https://codereview.chromium.org/326103002/diff/20001/src/gpu/effects/GrDashingEffect.cpp File src/gpu/effects/GrDashingEffect.cpp (right): https://codereview.chromium.org/326103002/diff/20001/src/gpu/effects/GrDashingEffect.cpp#newcode40 src/gpu/effects/GrDashingEffect.cpp:40: // May be able to relax this to include ...
6 years, 6 months ago (2014-06-11 13:24:44 UTC) #2
egdaniel
ptal
6 years, 6 months ago (2014-06-11 21:34:47 UTC) #3
bsalomon
lgtm w/ question about whether we really need to copy a paint. https://codereview.chromium.org/326103002/diff/60001/src/gpu/SkGpuDevice.cpp File src/gpu/SkGpuDevice.cpp ...
6 years, 6 months ago (2014-06-11 21:43:37 UTC) #4
egdaniel
https://codereview.chromium.org/326103002/diff/60001/src/gpu/SkGpuDevice.cpp File src/gpu/SkGpuDevice.cpp (right): https://codereview.chromium.org/326103002/diff/60001/src/gpu/SkGpuDevice.cpp#newcode391 src/gpu/SkGpuDevice.cpp:391: GrStrokeInfo strokeInfo(p); On 2014/06/11 21:43:37, bsalomon wrote: > Do ...
6 years, 6 months ago (2014-06-12 12:13:11 UTC) #5
egdaniel
Added constructor to override the stroke style in GrStrokeInfo and SkStrokeRec
6 years, 6 months ago (2014-06-12 15:33:13 UTC) #6
bsalomon
lgtm
6 years, 6 months ago (2014-06-12 15:42:36 UTC) #7
egdaniel
The CQ bit was checked by egdaniel@google.com
6 years, 6 months ago (2014-06-12 15:50:17 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/egdaniel@google.com/326103002/120001
6 years, 6 months ago (2014-06-12 15:51:04 UTC) #9
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: Build-Win7-VS2010-x86-Debug-Trybot on tryserver.skia ...
6 years, 6 months ago (2014-06-12 16:20:28 UTC) #10
egdaniel
The CQ bit was unchecked by egdaniel@google.com
6 years, 6 months ago (2014-06-12 16:54:34 UTC) #11
egdaniel
The CQ bit was checked by egdaniel@google.com
6 years, 6 months ago (2014-06-12 16:57:44 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/egdaniel@google.com/326103002/140001
6 years, 6 months ago (2014-06-12 16:58:46 UTC) #13
commit-bot: I haz the power
6 years, 6 months ago (2014-06-12 17:24:30 UTC) #14
Message was sent while issue was closed.
Change committed as e61c411c1258a323a010558c08de3d9f8d170dca

Powered by Google App Engine
This is Rietveld 408576698