diff options
author | mtklein <mtklein@chromium.org> | 2014-10-09 06:49:47 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-10-09 06:49:47 -0700 |
commit | 208d1704c2cc1161ea337a05155f2b9a04edd351 (patch) | |
tree | ba422cfb3c49471b7fb9c535610c22a60689e06a /tests | |
parent | a9c56525f32ee0075ed8dbaff3a032b7abeed4ae (diff) |
Add SkBBoxHierarchy::reserve() as an optional size hint.
I want to play around with how SkTileGrid stores its tiles. Having a
cap on the number of insert() calls can be pretty handy.
While I'm at it, I gave flush() a default empty impl. Like reserve(),
it's really an optional hook for subclasses.
BUG=skia:
Review URL: https://codereview.chromium.org/639933003
Diffstat (limited to 'tests')
-rw-r--r-- | tests/PictureTest.cpp | 2 | ||||
-rw-r--r-- | tests/RecordDrawTest.cpp | 1 |
2 files changed, 0 insertions, 3 deletions
diff --git a/tests/PictureTest.cpp b/tests/PictureTest.cpp index 0d13a428e7..db28224ee1 100644 --- a/tests/PictureTest.cpp +++ b/tests/PictureTest.cpp @@ -1869,9 +1869,7 @@ struct CountingBBH : public SkBBoxHierarchy { this->searchCalls++; } - // All other methods unimplemented. virtual void insert(unsigned opIndex, const SkRect& bounds, bool defer) SK_OVERRIDE {} - virtual void flushDeferredInserts() SK_OVERRIDE {} }; class SpoonFedBBHFactory : public SkBBHFactory { diff --git a/tests/RecordDrawTest.cpp b/tests/RecordDrawTest.cpp index ca75fc9058..f1c3a8b644 100644 --- a/tests/RecordDrawTest.cpp +++ b/tests/RecordDrawTest.cpp @@ -103,7 +103,6 @@ struct TestBBH : public SkBBoxHierarchy { fEntries.push(e); } - virtual void flushDeferredInserts() SK_OVERRIDE {} virtual void search(const SkRect& query, SkTDArray<unsigned>* results) const SK_OVERRIDE {} struct Entry { |