DescriptionIn bench_pictures --multi, maintain thread local caches.
Builds on https://codereview.appspot.com/6718046/ by mtklein.
Previously, each iteration of drawing a picture started new threads to draw the picture. Since each thread is using thread local storage for the font cache, this means that each iteration had to start with an empty font cache.
The newly added MultiCorePictureRenderer, separated from TiledPictureRenderer, now starts the drawing threads at the beginning of the test using an SkThreadPool, and keeps them alive through all iterations, so the font cache can be reused.
For now, I have removed the pipe version of the threaded renderer.
Updated bench_pictures_main and render_pictures_main to use the new
renderer, and to unref a renderer before early exit.
Committed: https://code.google.com/p/skia/source/detail?r=6285
Patch Set 1 #Patch Set 2 : Changes to accommodate changes in SkThreadPool #Patch Set 3 : #Patch Set 4 : fix a warning #Patch Set 5 : attempt to fix a bad upload #Patch Set 6 : #
Total comments: 20
Patch Set 7 : #Patch Set 8 : rebase #Patch Set 9 : another rebase #Patch Set 10 : last rebase i hope... #Patch Set 11 : ... #
MessagesTotal messages: 4
|