aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorGravatar mtklein <mtklein@chromium.org>2015-04-21 15:23:59 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-04-21 15:24:00 -0700
commit98b8485a4cc911420e20af2670d21a5478a06264 (patch)
tree4a2fa7f3eba5368bd32656d4e1cffdfa8287f870 /tests
parent5ae0e2b56373b67a0fe6a0f9d7a0373712d1fa63 (diff)
O(1) SkPictureUtils::ApproxBytesUsed()
Chrome wants to call this more often, and it's quite slow today. Seems like this could be clearer if SkPictureUtils::ApproxBytesUsed() were SkPicture::approxBytesUsed(). BUG=chromium:471873 Review URL: https://codereview.chromium.org/1090943004
Diffstat (limited to 'tests')
-rw-r--r--tests/PictureTest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/PictureTest.cpp b/tests/PictureTest.cpp
index 2fe6e47ab5..4fe08379dd 100644
--- a/tests/PictureTest.cpp
+++ b/tests/PictureTest.cpp
@@ -1119,7 +1119,7 @@ static void test_bytes_used(skiatest::Reporter* reporter) {
// Protect against any unintentional bloat.
size_t approxUsed = SkPictureUtils::ApproximateBytesUsed(empty.get());
- REPORTER_ASSERT(reporter, approxUsed <= 416);
+ REPORTER_ASSERT(reporter, approxUsed <= 432);
// Sanity check of nested SkPictures.
SkPictureRecorder r2;