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

Unified Diff: bench/RTreeBench.cpp

Issue 622773003: Demote getCount, getDepth, and clear to RTree-only methods. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: dox 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 | src/core/SkBBoxHierarchy.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bench/RTreeBench.cpp
diff --git a/bench/RTreeBench.cpp b/bench/RTreeBench.cpp
index 21c1d79a94730e5827f419c0d23297145cec11e6..08d6bf4bdb06c99d9899c8ca87480e6d707d512f 100644
--- a/bench/RTreeBench.cpp
+++ b/bench/RTreeBench.cpp
@@ -24,7 +24,7 @@ typedef SkRect (*MakeRectProc)(SkRandom&, int, int);
class RTreeBuildBench : public Benchmark {
public:
RTreeBuildBench(const char* name, MakeRectProc proc, bool bulkLoad,
- SkBBoxHierarchy* tree)
+ SkRTree* tree)
: fTree(tree)
, fProc(proc)
, fBulkLoad(bulkLoad) {
@@ -58,7 +58,7 @@ protected:
}
}
private:
- SkBBoxHierarchy* fTree;
+ SkRTree* fTree;
MakeRectProc fProc;
SkString fName;
bool fBulkLoad;
@@ -76,7 +76,7 @@ public:
};
RTreeQueryBench(const char* name, MakeRectProc proc, bool bulkLoad,
- QueryType q, SkBBoxHierarchy* tree)
+ QueryType q, SkRTree* tree)
: fTree(tree)
, fProc(proc)
, fBulkLoad(bulkLoad)
« no previous file with comments | « no previous file | src/core/SkBBoxHierarchy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698