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

Side by Side Diff: src/core/SkBruteBBH.h

Issue 653023003: Try out SkTree in nanobench. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 1 month 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 unified diff | Download patch
OLDNEW
(Empty)
1 #ifndef SkBruteBBH_DEFINED
robertphillips 2014/10/29 20:48:11 header!
2 #define SkBruteBBH_DEFINED
3
4 // A bounding box hierarchy that brute-force intersects its query with all known bounds.
5
6 #include "SkBBoxHierarchy.h"
7
8 class SkBruteBBH : public SkBBoxHierarchy {
9 public:
10 SkBruteBBH();
11 virtual ~SkBruteBBH();
12 virtual void insert(SkAutoTMalloc<SkRect>*, int) SK_OVERRIDE;
13 virtual void search(const SkRect&, SkTDArray<unsigned>*) const SK_OVERRIDE;
14 private:
15 SkRect* fBBs;
16 int fNumBBs;
17 };
18
19 // While experimental we leave its factory Skia-internal. Might as well live ri ght here.
20
21 #include "SkBBHFactory.h"
22
23 class SK_API SkBruteFactory : public SkBBHFactory {
24 virtual SkBBoxHierarchy* operator()(int, int) const SK_OVERRIDE { return SkN EW(SkBruteBBH); }
25 };
26
27 #endif//SkBruteBBH_DEFINED
OLDNEW
« no previous file with comments | « gyp/core.gypi ('k') | src/core/SkBruteBBH.cpp » ('j') | src/core/SkBruteBBH.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698