diff options
author | mtklein <mtklein@chromium.org> | 2016-07-12 15:41:08 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-07-12 15:41:08 -0700 |
commit | e504dbc092ec09c056ba3aa72693962a06d3aa4c (patch) | |
tree | 5954debaf927a657581e704de460e2b0d621242d /tests | |
parent | c4600204f2cdf78c1f4a61a5872afe03fb819f60 (diff) |
Revert "Added the framework for having canvas/recorder/picture record depth_set's."
1-click revert failed.
This reverts commit 6d3fb898d5f73a82e36f11c712a633c3921ed518.
TBR=
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2148543002
Review-Url: https://codereview.chromium.org/2148543002
Diffstat (limited to 'tests')
-rw-r--r-- | tests/CanvasTest.cpp | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/tests/CanvasTest.cpp b/tests/CanvasTest.cpp index 0886b53652..82e065f5ac 100644 --- a/tests/CanvasTest.cpp +++ b/tests/CanvasTest.cpp @@ -779,27 +779,6 @@ DEF_TEST(Canvas_ClipEmptyPath, reporter) { canvas.restore(); } -class SkTestCanvas : public SkCanvas { -public: - void testUpdateDepth(skiatest::Reporter* reporter) { - // set some depths (with picture enabled), then check them as they get set - - REPORTER_ASSERT(reporter, this->getZ() == 0); - this->translateZ(-10); - REPORTER_ASSERT(reporter, this->getZ() == -10); - - this->save(); - this->translateZ(20); - REPORTER_ASSERT(reporter, this->getZ() == 10); - - this->restore(); - REPORTER_ASSERT(reporter, this->getZ() == -10); - - this->translateZ(13.14f); - REPORTER_ASSERT(reporter, SkScalarNearlyEqual(this->getZ(),3.14f)); - } -}; - namespace { class MockFilterCanvas : public SkPaintFilterCanvas { @@ -833,11 +812,6 @@ DEF_TEST(PaintFilterCanvas_ConsistentState, reporter) { REPORTER_ASSERT(reporter, canvas.getTotalMatrix() == filterCanvas.getTotalMatrix()); REPORTER_ASSERT(reporter, canvas.getClipBounds(&clip1) == filterCanvas.getClipBounds(&clip2)); REPORTER_ASSERT(reporter, clip1 == clip2); - - SkTestCanvas* tCanvas; - - tCanvas = (SkTestCanvas*) new SkCanvas(100,100); - tCanvas->testUpdateDepth(reporter); } /////////////////////////////////////////////////////////////////////////////////////////////////// |