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

Issue 274673004: Add Dashing gpu effect for simple dashed lines (Closed)

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

Description

Add Dashing gpu effect for simple dashed lines BUG=skia: Committed: http://code.google.com/p/skia/source/detail?r=14775

Patch Set 1 #

Patch Set 2 : Add missing files #

Total comments: 14

Patch Set 3 : Updates #

Total comments: 9

Patch Set 4 : updates #

Patch Set 5 : Fixes to work with updated SkPaint2GrPaint #

Patch Set 6 : Merging fix and minor changes #

Patch Set 7 : Move DrawDashLine into namespace #

Unified diffs Side-by-side diffs Delta from patch set Stats (+640 lines, -4 lines) Patch
M expectations/gm/ignored-tests.txt View 1 2 3 4 5 6 1 chunk +7 lines, -0 lines 0 comments Download
M gm/dashing.cpp View 1 2 3 4 5 4 chunks +91 lines, -3 lines 0 comments Download
M gyp/gpu.gypi View 1 chunk +2 lines, -0 lines 0 comments Download
M include/gpu/SkGpuDevice.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M samplecode/SampleApp.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M src/gpu/SkGpuDevice.cpp View 1 2 3 4 5 6 2 chunks +7 lines, -0 lines 0 comments Download
A src/gpu/effects/GrDashingEffect.h View 1 2 3 4 5 6 1 chunk +33 lines, -0 lines 0 comments Download
A src/gpu/effects/GrDashingEffect.cpp View 1 2 3 4 5 6 1 chunk +497 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
egdaniel
First pass at dashing. This version supports all lines that have only a single on/off ...
6 years, 7 months ago (2014-05-09 14:36:48 UTC) #1
bsalomon
https://codereview.chromium.org/274673004/diff/40001/src/gpu/SkGpuDevice.cpp File src/gpu/SkGpuDevice.cpp (right): https://codereview.chromium.org/274673004/diff/40001/src/gpu/SkGpuDevice.cpp#newcode569 src/gpu/SkGpuDevice.cpp:569: static void calcDashScaling(SkScalar* parallelScale, SkScalar* perpScale, style nit: we've ...
6 years, 7 months ago (2014-05-09 15:02:37 UTC) #2
egdaniel
updated version https://codereview.chromium.org/274673004/diff/40001/src/gpu/SkGpuDevice.cpp File src/gpu/SkGpuDevice.cpp (right): https://codereview.chromium.org/274673004/diff/40001/src/gpu/SkGpuDevice.cpp#newcode569 src/gpu/SkGpuDevice.cpp:569: static void calcDashScaling(SkScalar* parallelScale, SkScalar* perpScale, fixed ...
6 years, 7 months ago (2014-05-12 19:21:44 UTC) #3
bsalomon
https://codereview.chromium.org/274673004/diff/60001/src/gpu/SkGpuDevice.cpp File src/gpu/SkGpuDevice.cpp (right): https://codereview.chromium.org/274673004/diff/60001/src/gpu/SkGpuDevice.cpp#newcode637 src/gpu/SkGpuDevice.cpp:637: This file has gotten huge. It seems like the ...
6 years, 7 months ago (2014-05-13 09:10:32 UTC) #4
egdaniel
https://codereview.chromium.org/274673004/diff/60001/src/gpu/SkGpuDevice.cpp File src/gpu/SkGpuDevice.cpp (right): https://codereview.chromium.org/274673004/diff/60001/src/gpu/SkGpuDevice.cpp#newcode637 src/gpu/SkGpuDevice.cpp:637: Agree completely. Will move it out. On 2014/05/13 09:10:33, ...
6 years, 7 months ago (2014-05-13 14:00:11 UTC) #5
bsalomon
If it is required, the skpaint->grpaint conversion functions can be moved to SkGr.[h|cpp]. https://codereview.chromium.org/274673004/diff/60001/src/gpu/SkGpuDevice.cpp File ...
6 years, 7 months ago (2014-05-13 14:14:36 UTC) #6
egdaniel
Still need to get the Sk2GrPaint landed but once it is this should be good
6 years, 7 months ago (2014-05-15 19:37:15 UTC) #7
egdaniel
ptal
6 years, 7 months ago (2014-05-19 13:44:02 UTC) #8
egdaniel
ptal
6 years, 7 months ago (2014-05-19 13:44:03 UTC) #9
bsalomon
lgtm. nit: We should either nest DrawDashLine in the namespace or give it a Gr ...
6 years, 7 months ago (2014-05-19 14:12:30 UTC) #10
egdaniel
The CQ bit was checked by egdaniel@google.com
6 years, 7 months ago (2014-05-19 14:27:34 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/egdaniel@google.com/274673004/140001
6 years, 7 months ago (2014-05-19 14:27:43 UTC) #12
commit-bot: I haz the power
Change committed as 14775
6 years, 7 months ago (2014-05-19 14:33:01 UTC) #13
f(malita)
6 years, 7 months ago (2014-05-19 19:46:30 UTC) #14
Message was sent while issue was closed.
I'm seeing related valgrind failures:

http://108.170.220.120:10117/builders/Test-Ubuntu12-ShuttleA-GTX550Ti-x86_64-...

Powered by Google App Engine
This is Rietveld 408576698