Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4448)

Unified Diff: bench/RecordingBench.cpp

Issue 653023003: Try out SkTree in nanobench. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: SkRTree instead Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | bench/SKPBench.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bench/RecordingBench.cpp
diff --git a/bench/RecordingBench.cpp b/bench/RecordingBench.cpp
index ee626bc52cdde3ff5a62478fc7f5bebdb01dc536..76d557d48ba49ea25e02d4f08aa1c1f8b140212e 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();
« no previous file with comments | « no previous file | bench/SKPBench.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698