diff options
author | 2017-01-20 17:11:11 -0500 | |
---|---|---|
committer | 2017-01-21 03:22:28 +0000 | |
commit | 288e471eda2c3648ed1c2dfe6212ad3e6b2451b3 (patch) | |
tree | 943335714e91f208e23478b584e4d2d103338450 /tests | |
parent | 8ccbbb455c6ef194920c47e846b95b50f5017138 (diff) |
clipstack is now private
BUG=skia:
Change-Id: I91e601d59eb5d46de17c280898ca01fcfab89e5c
NOTREECHECKS=True
Reviewed-on: https://skia-review.googlesource.com/7362
Commit-Queue: Mike Reed <reed@google.com>
Reviewed-by: Mike Reed <reed@google.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/CanvasTest.cpp | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/tests/CanvasTest.cpp b/tests/CanvasTest.cpp index 0d2ac29505..8a619f8fad 100644 --- a/tests/CanvasTest.cpp +++ b/tests/CanvasTest.cpp @@ -187,20 +187,6 @@ private: SkCanvas* fTarget; }; -static void test_clipstack(skiatest::Reporter* reporter) { -#ifdef SK_SUPPORT_LEGACY_CANVAS_GETCLIPSTACK - // The clipstack is refcounted, and needs to be able to out-live the canvas if a client has - // ref'd it. - const SkClipStack* cs = nullptr; - { - SkCanvas canvas(10, 10); - cs = SkRef(canvas.getClipStack()); - } - REPORTER_ASSERT(reporter, cs->unique()); - cs->unref(); -#endif -} - // Format strings that describe the test context. The %s token is where // the name of the test step is inserted. The context is required for // disambiguating the error in the case of failures that are reported in @@ -532,8 +518,6 @@ static void TestOverrideStateConsistency(skiatest::Reporter* reporter, const Tes SkCanvas referenceCanvas(referenceStore); testStep->setAssertMessageFormat(kCanvasDrawAssertMessageFormat); testStep->draw(&referenceCanvas, d, reporter); - - test_clipstack(reporter); } static void test_newraster(skiatest::Reporter* reporter) { |