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

Unified Diff: src/core/SkRTree.h

Issue 452233002: Make BBH::search() const. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: More const for tile() Created 6 years, 4 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 | « src/core/SkQuadTree.cpp ('k') | src/core/SkRTree.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkRTree.h
diff --git a/src/core/SkRTree.h b/src/core/SkRTree.h
index d21b5f8d3716ec77b3fb74a3b259fd648103b90d..6487b324efa58a35646d7fbc8b2a6cc17043c7a0 100644
--- a/src/core/SkRTree.h
+++ b/src/core/SkRTree.h
@@ -77,7 +77,7 @@ public:
/**
* Given a query rectangle, populates the passed-in array with the elements it intersects
*/
- virtual void search(const SkIRect& query, SkTDArray<void*>* results) SK_OVERRIDE;
+ virtual void search(const SkIRect& query, SkTDArray<void*>* results) const SK_OVERRIDE;
virtual void clear() SK_OVERRIDE;
bool isEmpty() const { return 0 == fCount; }
@@ -177,8 +177,8 @@ private:
*/
Branch bulkLoad(SkTDArray<Branch>* branches, int level = 0);
- void validate();
- int validateSubtree(Node* root, SkIRect bounds, bool isRoot = false);
+ void validate() const;
+ int validateSubtree(Node* root, SkIRect bounds, bool isRoot = false) const;
const int fMinChildren;
const int fMaxChildren;
« no previous file with comments | « src/core/SkQuadTree.cpp ('k') | src/core/SkRTree.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698