aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorGravatar mtklein <mtklein@chromium.org>2014-10-09 06:49:47 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2014-10-09 06:49:47 -0700
commit208d1704c2cc1161ea337a05155f2b9a04edd351 (patch)
treeba422cfb3c49471b7fb9c535610c22a60689e06a /tests
parenta9c56525f32ee0075ed8dbaff3a032b7abeed4ae (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.cpp2
-rw-r--r--tests/RecordDrawTest.cpp1
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 {