aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm/hugepath.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gm/hugepath.cpp')
-rw-r--r--gm/hugepath.cpp33
1 files changed, 0 insertions, 33 deletions
diff --git a/gm/hugepath.cpp b/gm/hugepath.cpp
index 4a691b8182..83dff9ec3e 100644
--- a/gm/hugepath.cpp
+++ b/gm/hugepath.cpp
@@ -8,7 +8,6 @@
#include "gm.h"
#include "SkCanvas.h"
#include "SkPath.h"
-#include "SkSurface.h"
DEF_SIMPLE_GM(path_huge_crbug_800804, canvas, 50, 600) {
SkPaint paint;
@@ -36,35 +35,3 @@ DEF_SIMPLE_GM(path_huge_crbug_800804, canvas, 50, 600) {
}
}
-// Test that we can draw into a huge surface ( > 64K ) and still retain paths and antialiasing.
-DEF_SIMPLE_GM(path_huge_aa, canvas, 200, 200) {
- auto proc = [](SkCanvas* canvas, int w, int h) {
- SkAutoCanvasRestore acr(canvas, true);
-
- auto surf = SkSurface::MakeRasterN32Premul(w, h);
- auto can = surf->getCanvas();
-
- SkPaint paint;
- SkPath path;
- path.addRoundRect(SkRect::MakeXYWH(4, 4, w - 8, h - 8), 12, 12);
-
- canvas->save();
- canvas->clipRect(SkRect::MakeXYWH(4, 4, 64, 64));
- can->drawPath(path, paint);
- surf->draw(canvas, 64 - w, 0, nullptr);
- canvas->restore();
-
- canvas->translate(80, 0);
- canvas->save();
- canvas->clipRect(SkRect::MakeXYWH(4, 4, 64, 64));
- can->clear(0);
- paint.setAntiAlias(true);
- can->drawPath(path, paint);
- surf->draw(canvas, 64 - w, 0, nullptr);
- canvas->restore();
- };
-
- proc(canvas, 100, 60);
- canvas->translate(0, 80);
- proc(canvas, 100 * 1024, 60);
-}