diff options
author | 2014-04-21 15:03:36 +0000 | |
---|---|---|
committer | 2014-04-21 15:03:36 +0000 | |
commit | ad8ce572f69633ffebe2fa486275d82a5e9a71fe (patch) | |
tree | 07b31027db99d3e55707b051eefb56ab470fbae8 /tools | |
parent | 5da5b59764e59fa7ad073ea42b3d5f7c5e7a6d6c (diff) |
anticipate more optimizations by renaming some files and methods
also, call the new SkRecordOptimize in bench_playback
BUG=skia:2378
R=fmalita@chromium.org, mtklein@google.com
Author: mtklein@chromium.org
Review URL: https://codereview.chromium.org/243243003
git-svn-id: http://skia.googlecode.com/svn/trunk@14277 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'tools')
-rw-r--r-- | tools/bench_playback.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/bench_playback.cpp b/tools/bench_playback.cpp index 3d0d4ef54b..a5dfe50973 100644 --- a/tools/bench_playback.cpp +++ b/tools/bench_playback.cpp @@ -11,6 +11,7 @@ #include "SkOSFile.h" #include "SkPicture.h" #include "SkRecordDraw.h" +#include "SkRecordOpts.h" #include "SkRecorder.h" #include "SkStream.h" #include "SkString.h" @@ -31,6 +32,8 @@ static void bench(SkPMColor* scratch, SkPicture& src, const char* name) { SkRecorder recorder(SkRecorder::kWriteOnly_Mode, &record, src.width(), src.height()); src.draw(&recorder); + SkRecordOptimize(&record); + SkAutoTDelete<SkCanvas> canvas(SkCanvas::NewRasterDirectN32(src.width(), src.height(), scratch, |