Go to file
tomhudson@google.com ddab2276cb Duplicates code from GrPathUtils to verify that an approximation for the number
of points in a quadratic curve is within +/- 2x the value determined by the
previous expensive method.

Running a similar approximation method on the Guimark2 HTML5 Charting demo drops
the share of time spent in SkPoint::distanceToLineSegmentBetweenSqd() from 4.57%
to under 0.6%, although SkPath::Iter::next(), SkPath::lineTo(), and
GrPathUtils::quadraticPointCount() all increase a bit.

Using a similar approximation method for SampleSlides.cpp produces visually
reasonable results. Without a relevant gm (it looks like gm/pathfill.cpp doesn't
have explicit quadratics?) I'm not sure how to get a better output quality
test.

We could avoid code duplication by:
 - have two implementations in GrPathUtils (computedQuadraticPointCount() &
estimatedQuadraticPointCount() are my working titles)
 - use a #define to select between them at compile time
 - expose both of them in the header file for this test to access



git-svn-id: http://skia.googlecode.com/svn/trunk@1540 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-08 14:46:28 +00:00
android_sample/SampleApp Port the SampleApp (raster) to Android. 2011-05-31 17:10:21 +00:00
animations first cut at a checkbox 2009-10-21 19:41:10 +00:00
bench Higher resolution timers for bench. 2011-06-07 19:16:02 +00:00
experimental add copyright notices 2011-06-02 14:08:49 +00:00
forth remove dump printf 2011-05-31 19:14:21 +00:00
gm make --replay be the default. Now --noreplay will disable testing through a picture 2011-05-26 15:57:56 +00:00
gpu GCC 4.6 fix: intptr_t <-> NULL triggers an warning. 2011-06-07 22:18:07 +00:00
gyp Higher resolution timers for bench. 2011-06-07 19:16:02 +00:00
include Make linux sample app work on my laptop. Reviewed at http://codereview.appspot.com/4568050/ 2011-06-08 14:26:00 +00:00
obsolete move old (unmaintained) gl backend out of src. src/gpu superceeds this now. 2011-02-22 20:50:57 +00:00
samplecode Make linux sample app work on my laptop. Reviewed at http://codereview.appspot.com/4568050/ 2011-06-08 14:26:00 +00:00
src Make linux sample app work on my laptop. Reviewed at http://codereview.appspot.com/4568050/ 2011-06-08 14:26:00 +00:00
tests Duplicates code from GrPathUtils to verify that an approximation for the number 2011-06-08 14:46:28 +00:00
third_party Add third_party/externals dir that brings in gyp 2011-06-03 21:19:27 +00:00
tools Stores index.html in the output (diff) directory rather than in the current 2011-05-24 19:41:13 +00:00
unix_test_app Make the unix test app build. 2011-05-04 14:16:36 +00:00
vs Add snapshot of gyp-generated vs proj for any third party devs who were using the old project. README.TXT explains how to generate an up to date one. 2011-05-19 14:45:11 +00:00
xcode add SkAdvancedTypeface file 2011-06-03 20:15:56 +00:00
configure.ac Initial automake and autoconf files to build core into libskia.a. 2009-01-06 17:03:16 +00:00
gyp_skia Some final cleanups leading up to The Official Switch to Gyp 2011-06-07 14:48:41 +00:00
Makefile Temporarily fall back to the old makefile; the new one was killing buildbot. 2011-06-07 15:46:40 +00:00
Makefile.am Initial automake and autoconf files to build core into libskia.a. 2009-01-06 17:03:16 +00:00
Makefile.old Higher resolution timers for bench. 2011-06-07 19:16:02 +00:00
README Add a basic README file. 2009-01-13 22:01:54 +00:00
skia.gyp Some final cleanups leading up to The Official Switch to Gyp 2011-06-07 14:48:41 +00:00

Skia is a complete 2D graphic library for drawing Text, Geometries, and Images.

- 3x3 matrices w/ perspective
- antialiasing, transparency, filters
- shaders, xfermodes, maskfilters, patheffects