Add bench_playback, for quick profiling of SKR playback.
authorcommit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>
Fri, 11 Apr 2014 15:53:39 +0000 (15:53 +0000)
committercommit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>
Fri, 11 Apr 2014 15:53:39 +0000 (15:53 +0000)
commitba73d28bef9b3b2210cd2c2a1754636e78eba1c0
tree954ea1d507f6e2791badb2760ec8ab18f8f3d4df
parent1f75ab9c66921e11c17fd49ac7c54ef77e52d3f3
Add bench_playback, for quick profiling of SKR playback.

It is not completely fair to compare --skr and --noskr numbers.  SKR looks
unfairly good because some optimizations are baked into our SKPs at record
time.  But, at least, by using a kWriteOnly_Mode SkRecorder, we prevent
SkPicturePlayback from compounding that unfairness.  SkRecordDraw must handle
its own playback-time optimizations (quickrejects) on its own.

This code should look suspiciously similar to bench_record.

BUG=skia:2378
R=fmalita@chromium.org, mtklein@google.com

Author: mtklein@chromium.org

Review URL: https://codereview.chromium.org/233833002

git-svn-id: http://skia.googlecode.com/svn/trunk@14151 2bbb7eff-a529-9590-31e7-b0007b416f81
gyp/tools.gyp
tools/bench_playback.cpp [new file with mode: 0644]