Go to file
scroggo@google.com 08085f808b Change the method for timing individual tiles in bench_pictures.
When timing individual tiles in bench_pictures, keep a timer running
across all repeats, and then take the average. The former method of
timing each iteration separately runs into precision errors on some
platforms.

Running on my Mac Pro with OSX 10.8, the cmsecs for the new method
and the old method are roughly the same when checking the CPU time.
When checking the wall time, the old method often gives me 0ms,
while the new method gives me a larger value. I don't think this
can be entirely attributed to rounding though, since on occasion I
see the old method showing a short time period (.05 - .15ms) while
the new method shows .15ms higher (which is in range for the
difference I'm seeing for other tiles where the old method reports
0ms).

Some other changes:
PictureRenderer::resetState now takes a boolean parameter. If called
with false, it will only do a flush, while if called with true, it
will also call finish.

resetState is now called with true everywhere except in between
iterations of drawing the same tile (when timing individual tiles).

render_pictures_main no longer calls resetState directly, since it
already calls end, which calls resetState.

BUG=http://code.google.com/p/skia/issues/detail?id=1066

Review URL: https://codereview.appspot.com/7101060

git-svn-id: http://skia.googlecode.com/svn/trunk@7424 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-01-28 20:40:24 +00:00
animations first cut at a checkbox 2009-10-21 19:41:10 +00:00
bench Sanitizing source files in Skia_Periodic_House_Keeping 2013-01-26 07:06:02 +00:00
debugger Added toString to SkDrawLooper-derived classes 2013-01-28 20:21:59 +00:00
experimental Move vertex layout definitions from GrDrawTarget to GrDrawState. 2013-01-28 20:39:48 +00:00
forth Sanitizing source files in Skia_Periodic_House_Keeping 2013-01-26 07:06:02 +00:00
gm add (disabled) test for big dashing 2013-01-28 16:57:29 +00:00
gyp Added toString to SkDrawLooper-derived classes 2013-01-28 20:21:59 +00:00
include Added toString to SkDrawLooper-derived classes 2013-01-28 20:21:59 +00:00
samplecode add missing parameter to overridden onFindClickHandler 2013-01-28 02:21:27 +00:00
src Move vertex layout definitions from GrDrawTarget to GrDrawState. 2013-01-28 20:39:48 +00:00
tests Move vertex layout definitions from GrDrawTarget to GrDrawState. 2013-01-28 20:39:48 +00:00
third_party Add BSON implementation to third_party 2012-06-13 18:22:09 +00:00
tools Change the method for timing individual tiles in bench_pictures. 2013-01-28 20:40:24 +00:00
trybots_to_run Added cros_daisy to build bots list 2012-08-27 17:57:58 +00:00
.gitignore Set git to ignore .android_config 2012-12-12 21:21:29 +00:00
DEPS Update gyp revision. 2013-01-18 21:20:16 +00:00
Doxyfile Pointing to http://skia-autogen.googlecode.com/svn/docs/html/index.html in Doxyfile 2012-07-03 11:35:07 +00:00
gyp_skia Update gyp to allow alternative out directories 2012-11-28 14:11:41 +00:00
LICENSE Manually update copyright notices in files that defied the automated process 2011-07-28 14:24:55 +00:00
make.bat Manually update copyright notices in files that defied the automated process 2011-07-28 14:24:55 +00:00
make.py gyp: generate "everything" and "most" targets instead of "all" 2012-10-25 16:32:07 +00:00
Makefile Update gyp to allow alternative out directories 2012-11-28 14:11:41 +00:00
Makefile.old Higher resolution timers for bench. 2011-06-07 19:16:02 +00:00
PRESUBMIT.py Presubmit should check that source files end in atleast one newline 2013-01-25 18:27:34 +00:00
README whitespace commit to trigger buildbot 2011-07-15 14:11:58 +00:00
skia.gyp gyp: generate "everything" and "most" targets instead of "all" 2012-10-25 16:32:07 +00:00
whitespace.txt Rebaselined webpage image GMs for ['base-shuttle_ubuntu12_ati5770'] on Google Storage. 2013-01-27 17:17:19 +00:00

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

See full details, and build instructions, at http://code.google.com/p/skia/wiki/DocRoot