diff options
author | mtklein <mtklein@chromium.org> | 2014-08-08 11:49:39 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-08-08 11:49:39 -0700 |
commit | 8875a0413686eb3dc9f7d7d18a2cee9076aade54 (patch) | |
tree | e7aa3194ae5ffe650590661e774eb95ba4dd9ce2 /src/core/SkBBoxHierarchy.h | |
parent | 6d42d9c7ff1c3d7ab4de032d5451aed02f746c43 (diff) |
Make BBH::search() const.
I'd like to have SkRecordDraw() work with a const SkBBoxHierarchy*, but
can't quite today. The only interesting change here is no longer flushing
if needed in RTree; instead we assert we've been flushed already.
BUG=skia:
R=robertphillips@google.com, mtklein@google.com
Author: mtklein@chromium.org
Review URL: https://codereview.chromium.org/452233002
Diffstat (limited to 'src/core/SkBBoxHierarchy.h')
-rw-r--r-- | src/core/SkBBoxHierarchy.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/SkBBoxHierarchy.h b/src/core/SkBBoxHierarchy.h index 36047b9706..b42f708bc7 100644 --- a/src/core/SkBBoxHierarchy.h +++ b/src/core/SkBBoxHierarchy.h @@ -59,7 +59,7 @@ public: /** * Populate 'results' with data pointers corresponding to bounding boxes that intersect 'query' */ - virtual void search(const SkIRect& query, SkTDArray<void*>* results) = 0; + virtual void search(const SkIRect& query, SkTDArray<void*>* results) const = 0; virtual void clear() = 0; |