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

Unified Diff: tests/AAClipTest.cpp

Issue 1925693002: remove 'deprecated' region from SkDraw (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: update dox Created 4 years, 8 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/xps/SkXPSDevice.cpp ('k') | tests/CanvasTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/AAClipTest.cpp
diff --git a/tests/AAClipTest.cpp b/tests/AAClipTest.cpp
index 42c320cde1632f8bad87a3d95257c167b1dc7286..438dab4da88032a0940b90c834f2531f14d81f7a 100644
--- a/tests/AAClipTest.cpp
+++ b/tests/AAClipTest.cpp
@@ -10,6 +10,7 @@
#include "SkMask.h"
#include "SkPath.h"
#include "SkRandom.h"
+#include "SkRasterClip.h"
#include "SkRRect.h"
#include "Test.h"
@@ -342,33 +343,6 @@ static void test_really_a_rect(skiatest::Reporter* reporter) {
REPORTER_ASSERT(reporter, clip.isRect());
}
-#include "SkRasterClip.h"
-
-static void copyToMask(const SkRasterClip& rc, SkMask* mask) {
- if (rc.isAA()) {
- rc.aaRgn().copyToMask(mask);
- } else {
- copyToMask(rc.bwRgn(), mask);
- }
-}
-
-static bool operator==(const SkRasterClip& a, const SkRasterClip& b) {
- if (a.isEmpty()) {
- return b.isEmpty();
- }
- if (b.isEmpty()) {
- return false;
- }
-
- SkMask ma, mb;
- copyToMask(a, &ma);
- copyToMask(b, &mb);
- SkAutoMaskFreeImage aCleanUp(ma.fImage);
- SkAutoMaskFreeImage bCleanUp(mb.fImage);
-
- return ma == mb;
-}
-
static void did_dx_affect(skiatest::Reporter* reporter, const SkScalar dx[],
size_t count, bool changed) {
const SkIRect baseBounds = SkIRect::MakeXYWH(0, 0, 10, 10);
« no previous file with comments | « src/xps/SkXPSDevice.cpp ('k') | tests/CanvasTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698