Made "Clip" sample use AA clipping

http://codereview.appspot.com/6176046/



git-svn-id: http://skia.googlecode.com/svn/trunk@3834 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
robertphillips@google.com 2012-05-03 18:05:18 +00:00
parent 180bc887f1
commit 67a6db3611

View File

@ -147,7 +147,7 @@ protected:
canvas->save(); canvas->save();
for (size_t i = 0; i < SK_ARRAY_COUNT(gProc); ++i) { for (size_t i = 0; i < SK_ARRAY_COUNT(gProc); ++i) {
canvas->save(); canvas->save();
canvas->clipPath(clipPath, SkRegion::kIntersect_Op, true); canvas->clipPath(clipPath, SkRegion::kIntersect_Op, SkToBool(aa));
// canvas->drawColor(SK_ColorWHITE); // canvas->drawColor(SK_ColorWHITE);
gProc[i](canvas, SkToBool(aa)); gProc[i](canvas, SkToBool(aa));
canvas->restore(); canvas->restore();