From 1a42791a58c4a8e4d83def7efdec700ff443ea6c Mon Sep 17 00:00:00 2001 From: Mike Klein Date: Tue, 29 Nov 2016 13:46:06 -0500 Subject: Make SkNWayCanvas use conservative clipping. Like most other canvas subclasses, its clips don't need to be perfect. BUG=chromium:668925 Change-Id: I107f8ed6fa60654426fd52c066b1018d5801850d Reviewed-on: https://skia-review.googlesource.com/5308 Commit-Queue: Mike Klein Reviewed-by: Brian Salomon Reviewed-by: Mike Reed --- tests/CanvasTest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/CanvasTest.cpp') diff --git a/tests/CanvasTest.cpp b/tests/CanvasTest.cpp index 1824c25aad..f460ab6e3b 100644 --- a/tests/CanvasTest.cpp +++ b/tests/CanvasTest.cpp @@ -694,7 +694,7 @@ DEF_TEST(PaintFilterCanvas_ConsistentState, reporter) { filterCanvas.scale(0.75f, 0.5f); REPORTER_ASSERT(reporter, canvas.getTotalMatrix() == filterCanvas.getTotalMatrix()); REPORTER_ASSERT(reporter, canvas.getClipBounds(&clip1) == filterCanvas.getClipBounds(&clip2)); - REPORTER_ASSERT(reporter, clip1 == clip2); + REPORTER_ASSERT(reporter, clip2.contains(clip1)); #ifdef SK_EXPERIMENTAL_SHADOWING SkShadowTestCanvas* tCanvas = new SkShadowTestCanvas(100,100, reporter); -- cgit v1.2.3