Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(853)

Unified Diff: tests/CanvasTest.cpp

Issue 2147963002: Revert "Added the framework for having canvas/recorder/picture record depth_set's." (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/core/SkRecorder.cpp ('k') | tools/debugger/SkDebugCanvas.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/CanvasTest.cpp
diff --git a/tests/CanvasTest.cpp b/tests/CanvasTest.cpp
index 0886b536520b39d589bf7ef5b9d2be229a8aa485..82e065f5ac783c28d4e2f2d8fe3c3f83744005f6 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);
}
///////////////////////////////////////////////////////////////////////////////////////////////////
« no previous file with comments | « src/core/SkRecorder.cpp ('k') | tools/debugger/SkDebugCanvas.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698