diff options
author | mtklein <mtklein@chromium.org> | 2014-10-29 14:15:10 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-10-29 14:15:10 -0700 |
commit | 6838d854a87e79f1fbb7b89b9f395155ad44dc0a (patch) | |
tree | 6c539b237606beca31239ef7441000f55b4d6384 /bench/RecordingBench.cpp | |
parent | 2c8371aea7d1313efc4e224f962a9f38570981c8 (diff) |
Try out SkTree in nanobench.
Looks like a fairly large recording speed win with no playback cost.
BUG=skia:
Review URL: https://codereview.chromium.org/653023003
Diffstat (limited to 'bench/RecordingBench.cpp')
-rw-r--r-- | bench/RecordingBench.cpp | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/bench/RecordingBench.cpp b/bench/RecordingBench.cpp index ee626bc52c..76d557d48b 100644 --- a/bench/RecordingBench.cpp +++ b/bench/RecordingBench.cpp @@ -10,8 +10,6 @@ #include "SkBBHFactory.h" #include "SkPictureRecorder.h" -static const int kTileSize = 256; - RecordingBench::RecordingBench(const char* name, const SkPicture* pic, bool useBBH) : fSrc(SkRef(pic)) , fName(name) @@ -31,12 +29,7 @@ SkIPoint RecordingBench::onGetSize() { } void RecordingBench::onDraw(const int loops, SkCanvas*) { - SkTileGridFactory::TileGridInfo info; - info.fTileInterval.set(kTileSize, kTileSize); - info.fMargin.setEmpty(); - info.fOffset.setZero(); - SkTileGridFactory factory(info); - + SkRTreeFactory factory; const SkScalar w = fSrc->cullRect().width(), h = fSrc->cullRect().height(); |