2011-10-31 14:18:20 +00:00
|
|
|
# include this gypi to include all the golden master slides.
|
|
|
|
{
|
|
|
|
'sources': [
|
|
|
|
'../gm/aarectmodes.cpp',
|
2011-12-10 19:36:56 +00:00
|
|
|
'../gm/arithmode.cpp',
|
2011-12-02 19:11:17 +00:00
|
|
|
'../gm/bitmapcopy.cpp',
|
2011-10-31 14:18:20 +00:00
|
|
|
'../gm/bitmapfilters.cpp',
|
|
|
|
'../gm/bitmapscroll.cpp',
|
|
|
|
'../gm/blurs.cpp',
|
|
|
|
'../gm/complexclip.cpp',
|
|
|
|
'../gm/complexclip2.cpp',
|
Modifying SkPath to store all verbs provided by the user, and to give
correct results for all stroke and fill modes even on the various types
of degenerate paths.
The goals of this patch include:
1. Have Skia store all of the verbs implied by path construction methods, even
if those define degenerate paths. The SVG implementation in WebKit, which is
backed by Skia, needs to know about all elements of the path, even degenerate
ones, for the correct drawing of markers and line caps. For example, in SVG you
should be able to draw a scatter plot by specifying a marker for vertices and
then giving a sequence of moveTo commands. Skia will not store the moveTos,
requiring a different storage mechanism.
2. Assuming 1, maintain the current Skia behavior. That is, make Skia robust to
degenerate paths.
3. Fix an existing bug in Skia where a degenerate moveTo-lineTo pair spits out
warnings from rasterization and produces incorrect results in inverse-fill
renderings.
4. Adds extensive testing for degenerate paths and path rendering in general.
To meet these goals, the patch I am proposing will result in minor additional
storage for degenerate paths (a few bytes per degenerate path, only if the user
defines such paths). There is also some additional overhead in the iteration
code, with the path now cleaned to remove degenerate segments as part of the
iteration process. I suspect this will also fix issues with computing normal
vectors to degenerate segments. Benchmarking suggests that this change may
result in slightly (< 1%) slower path drawing due to the checks for
degeneracy. This overhead could be removed (in fact, a significant speedup
could occur) if the results of iterating to clean up the path were cached.
This would cost memory, of course, and quite a bit of it.
BUG=398
TEST=tests/PathTest.cpp
gm/cubicpaths.cpp
gm/degeneratesegments.cpp
gm/movepaths.cpp
gm/linepaths.cpp
gm/quadpaths.cpp
Review URL: http://codereview.appspot.com/5482051
git-svn-id: http://skia.googlecode.com/svn/trunk@2901 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-12-20 15:14:18 +00:00
|
|
|
'../gm/cubicpaths.cpp',
|
|
|
|
'../gm/degeneratesegments.cpp',
|
2011-11-30 14:13:48 +00:00
|
|
|
'../gm/drawbitmaprect.cpp',
|
2011-10-31 14:18:20 +00:00
|
|
|
'../gm/emptypath.cpp',
|
|
|
|
'../gm/filltypes.cpp',
|
|
|
|
'../gm/filltypespersp.cpp',
|
2011-11-07 16:33:40 +00:00
|
|
|
'../gm/fontscaler.cpp',
|
2011-10-31 14:18:20 +00:00
|
|
|
'../gm/gradients.cpp',
|
2011-11-28 16:31:28 +00:00
|
|
|
'../gm/gradtext.cpp',
|
2011-10-31 14:18:20 +00:00
|
|
|
'../gm/hairmodes.cpp',
|
2011-11-09 17:02:15 +00:00
|
|
|
# commented out until SkPicture support for SkImageFilter is complete
|
|
|
|
# See http://code.google.com/p/skia/issues/detail?id=391
|
|
|
|
# '../gm/imageblur.cpp',
|
2011-10-31 14:18:20 +00:00
|
|
|
'../gm/lcdtext.cpp',
|
Modifying SkPath to store all verbs provided by the user, and to give
correct results for all stroke and fill modes even on the various types
of degenerate paths.
The goals of this patch include:
1. Have Skia store all of the verbs implied by path construction methods, even
if those define degenerate paths. The SVG implementation in WebKit, which is
backed by Skia, needs to know about all elements of the path, even degenerate
ones, for the correct drawing of markers and line caps. For example, in SVG you
should be able to draw a scatter plot by specifying a marker for vertices and
then giving a sequence of moveTo commands. Skia will not store the moveTos,
requiring a different storage mechanism.
2. Assuming 1, maintain the current Skia behavior. That is, make Skia robust to
degenerate paths.
3. Fix an existing bug in Skia where a degenerate moveTo-lineTo pair spits out
warnings from rasterization and produces incorrect results in inverse-fill
renderings.
4. Adds extensive testing for degenerate paths and path rendering in general.
To meet these goals, the patch I am proposing will result in minor additional
storage for degenerate paths (a few bytes per degenerate path, only if the user
defines such paths). There is also some additional overhead in the iteration
code, with the path now cleaned to remove degenerate segments as part of the
iteration process. I suspect this will also fix issues with computing normal
vectors to degenerate segments. Benchmarking suggests that this change may
result in slightly (< 1%) slower path drawing due to the checks for
degeneracy. This overhead could be removed (in fact, a significant speedup
could occur) if the results of iterating to clean up the path were cached.
This would cost memory, of course, and quite a bit of it.
BUG=398
TEST=tests/PathTest.cpp
gm/cubicpaths.cpp
gm/degeneratesegments.cpp
gm/movepaths.cpp
gm/linepaths.cpp
gm/quadpaths.cpp
Review URL: http://codereview.appspot.com/5482051
git-svn-id: http://skia.googlecode.com/svn/trunk@2901 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-12-20 15:14:18 +00:00
|
|
|
'../gm/linepaths.cpp',
|
|
|
|
'../gm/movepaths.cpp',
|
2011-10-31 14:18:20 +00:00
|
|
|
'../gm/ninepatchstretch.cpp',
|
|
|
|
'../gm/nocolorbleed.cpp',
|
|
|
|
'../gm/pathfill.cpp',
|
|
|
|
'../gm/points.cpp',
|
|
|
|
'../gm/poly2poly.cpp',
|
Modifying SkPath to store all verbs provided by the user, and to give
correct results for all stroke and fill modes even on the various types
of degenerate paths.
The goals of this patch include:
1. Have Skia store all of the verbs implied by path construction methods, even
if those define degenerate paths. The SVG implementation in WebKit, which is
backed by Skia, needs to know about all elements of the path, even degenerate
ones, for the correct drawing of markers and line caps. For example, in SVG you
should be able to draw a scatter plot by specifying a marker for vertices and
then giving a sequence of moveTo commands. Skia will not store the moveTos,
requiring a different storage mechanism.
2. Assuming 1, maintain the current Skia behavior. That is, make Skia robust to
degenerate paths.
3. Fix an existing bug in Skia where a degenerate moveTo-lineTo pair spits out
warnings from rasterization and produces incorrect results in inverse-fill
renderings.
4. Adds extensive testing for degenerate paths and path rendering in general.
To meet these goals, the patch I am proposing will result in minor additional
storage for degenerate paths (a few bytes per degenerate path, only if the user
defines such paths). There is also some additional overhead in the iteration
code, with the path now cleaned to remove degenerate segments as part of the
iteration process. I suspect this will also fix issues with computing normal
vectors to degenerate segments. Benchmarking suggests that this change may
result in slightly (< 1%) slower path drawing due to the checks for
degeneracy. This overhead could be removed (in fact, a significant speedup
could occur) if the results of iterating to clean up the path were cached.
This would cost memory, of course, and quite a bit of it.
BUG=398
TEST=tests/PathTest.cpp
gm/cubicpaths.cpp
gm/degeneratesegments.cpp
gm/movepaths.cpp
gm/linepaths.cpp
gm/quadpaths.cpp
Review URL: http://codereview.appspot.com/5482051
git-svn-id: http://skia.googlecode.com/svn/trunk@2901 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-12-20 15:14:18 +00:00
|
|
|
'../gm/quadpaths.cpp',
|
2011-10-31 14:18:20 +00:00
|
|
|
'../gm/shadertext.cpp',
|
|
|
|
'../gm/shadows.cpp',
|
|
|
|
'../gm/shapes.cpp',
|
|
|
|
'../gm/strokerects.cpp',
|
|
|
|
'../gm/strokes.cpp',
|
|
|
|
'../gm/texdata.cpp',
|
|
|
|
'../gm/tilemodes.cpp',
|
|
|
|
'../gm/tinybitmap.cpp',
|
2011-11-10 20:06:01 +00:00
|
|
|
'../gm/verttext.cpp',
|
2011-10-31 14:18:20 +00:00
|
|
|
'../gm/xfermodes.cpp',
|
|
|
|
],
|
|
|
|
}
|
|
|
|
|
|
|
|
# Local Variables:
|
|
|
|
# tab-width:2
|
|
|
|
# indent-tabs-mode:nil
|
|
|
|
# End:
|
|
|
|
# vim: set expandtab tabstop=2 shiftwidth=2:
|