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

Unified Diff: src/core/SkTileGrid.h

Issue 452233002: Make BBH::search() const. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 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/SkRTree.cpp ('k') | src/core/SkTileGrid.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkTileGrid.h
diff --git a/src/core/SkTileGrid.h b/src/core/SkTileGrid.h
index 0ec5c2c3932187472d4f284f441b6c8c017d04d1..418991a9d1a60a01e64dde6c4108f29b6cf76500 100644
--- a/src/core/SkTileGrid.h
+++ b/src/core/SkTileGrid.h
@@ -54,7 +54,7 @@ public:
* Populate 'results' with data pointers corresponding to bounding boxes that intersect 'query'
* The query argument is expected to be an exact match to a tile of the grid
*/
- 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;
@@ -75,7 +75,7 @@ public:
int tileCount(int x, int y); // For testing only.
private:
robertphillips 2014/08/08 18:24:23 can this return "const SkTDArray<void>&" ?
mtklein 2014/08/08 18:38:50 Looks like yes, though it's a little more involved
- SkTDArray<void*>& tile(int x, int y);
+ SkTDArray<void*>& tile(int x, int y) const;
int fXTileCount, fYTileCount, fTileCount;
SkTileGridFactory::TileGridInfo fInfo;
« no previous file with comments | « src/core/SkRTree.cpp ('k') | src/core/SkTileGrid.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698