From 2ff1fcede1e9525285c5de1f35fb2dcb0fab32bd Mon Sep 17 00:00:00 2001 From: reed Date: Thu, 11 Dec 2014 07:07:37 -0800 Subject: Defer saves() until they're needed patch from issue 759443006 at patchset 40001 (http://crrev.com/759443006#ps40001) BUG=skia: Review URL: https://codereview.chromium.org/767333002 --- tests/PictureBBHTest.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests/PictureBBHTest.cpp') diff --git a/tests/PictureBBHTest.cpp b/tests/PictureBBHTest.cpp index bc712f575e..562d9b5991 100644 --- a/tests/PictureBBHTest.cpp +++ b/tests/PictureBBHTest.cpp @@ -119,7 +119,8 @@ static void test_clear(skiatest::Reporter* r, SkBBHFactory* factory) { // Should be Clip - Save - Clear - Restore. // Buggy implementations might return 1 (just Clip) or 3 (Clip - Save - Restore). - REPORTER_ASSERT(r, dstPic->approximateOpCount() == 4); + // TODO: can we just search that it contains "clear"? + REPORTER_ASSERT(r, dstPic->approximateOpCount() == 4 || dstPic->approximateOpCount() == 2); } DEF_TEST(PictureBBH_Clear, r) { -- cgit v1.2.3