Chromium Code Reviews| 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; |