From 4bfb50b904e0e92d10145398eb3a6f8dd7868867 Mon Sep 17 00:00:00 2001 From: Chris Dalton Date: Mon, 21 May 2018 09:10:53 -0600 Subject: ccpr: Abstract the draws list in a separate class Bug: skia: Change-Id: I583c1bdc470e5830d041955d14b164fc00d5d014 Reviewed-on: https://skia-review.googlesource.com/129227 Reviewed-by: Brian Salomon Commit-Queue: Chris Dalton --- tests/GrCCPRTest.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'tests/GrCCPRTest.cpp') diff --git a/tests/GrCCPRTest.cpp b/tests/GrCCPRTest.cpp index 6f0d8852d9..8cde797f43 100644 --- a/tests/GrCCPRTest.cpp +++ b/tests/GrCCPRTest.cpp @@ -175,6 +175,13 @@ class GrCCPRTest_cleanup : public CCPRTest { // Ensure paths get unreffed. for (int i = 0; i < 10; ++i) { ccpr.drawPath(fPath); + } + REPORTER_ASSERT(reporter, !SkPathPriv::TestingOnly_unique(fPath)); + ccpr.flush(); + REPORTER_ASSERT(reporter, SkPathPriv::TestingOnly_unique(fPath)); + + // Ensure clip paths get unreffed. + for (int i = 0; i < 10; ++i) { ccpr.clipFullscreenRect(fPath); } REPORTER_ASSERT(reporter, !SkPathPriv::TestingOnly_unique(fPath)); -- cgit v1.2.3