aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorGravatar mtklein <mtklein@chromium.org>2016-07-13 09:03:48 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-07-13 09:03:48 -0700
commit6e998e6137e6b25f047b5c5943f2b02485165e3e (patch)
tree4228b46bebcc38a9ab4a5d9405df4d0da855ef6e /tests
parentdd57dd796845da6ec2e1f44dc1e0b7821c1e4db1 (diff)
Revert "Added the framework for having canvas/recorder/picture record depth_set's."
1-click revert failed again. This reverts commit 1185d90c785f743364cc9113d7007a59af07470c. BUG=skia: TBR= NOTRY=true Review-Url: https://codereview.chromium.org/2147963002
Diffstat (limited to 'tests')
-rw-r--r--tests/CanvasTest.cpp26
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);
}
///////////////////////////////////////////////////////////////////////////////////////////////////