Index: gm/aaclip.cpp |
diff --git a/gm/aaclip.cpp b/gm/aaclip.cpp |
index f57e57c400775a0b6796c1ee169475d7171f2987..18003b16b8b2afc940f2c0eaebf48adceeb4d069 100644 |
--- a/gm/aaclip.cpp |
+++ b/gm/aaclip.cpp |
@@ -9,6 +9,20 @@ |
#include "SkCanvas.h" |
#include "SkPath.h" |
+static void test_aamask(SkCanvas* canvas) { |
+ canvas->drawColor(SK_ColorBLUE); |
mtklein
2013/11/01 21:55:46
Can you add this as a bench too?
|
+ |
+ SkPaint paint; |
+ paint.setAntiAlias(true); |
+ SkPath path; |
+ path.moveTo(0, 0); |
+ path.quadTo(500, 0, 500, 500); |
+ path.quadTo(250, 0, 0, 500); |
+ |
+ for (int i = 0; i < 100; ++i) |
+ canvas->drawPath(path, paint); |
mtklein
2013/11/01 21:55:46
{} ?
|
+} |
+ |
static void test_quadstroke(SkCanvas* canvas) { |
SkPath path; |
path.moveTo(6, 0); |
@@ -273,6 +287,7 @@ protected: |
} |
virtual void onDraw(SkCanvas* canvas) SK_OVERRIDE { |
+ if (true) { test_aamask(canvas); return; } |
if (false) { test_quadstroke(canvas); return; } |
if (false) { test_conic(canvas); return; } |
if (false) { |