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

Unified Diff: gm/drawlooper.cpp

Issue 181433009: try to deprecate fFlagsMask from SkLayerDrawLooper (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 6 years, 10 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 | « gm/blurroundrect.cpp ('k') | gm/megalooper.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/drawlooper.cpp
diff --git a/gm/drawlooper.cpp b/gm/drawlooper.cpp
index 4cc6e8e3693e021572775807573448ea89e74d6a..678d2ad35f2a8a226053af1d709b0a87829d893b 100644
--- a/gm/drawlooper.cpp
+++ b/gm/drawlooper.cpp
@@ -39,6 +39,7 @@ protected:
this->init();
SkPaint paint;
+ paint.setAntiAlias(true);
paint.setTextSize(SkIntToScalar(72));
paint.setLooper(fLooper);
@@ -74,14 +75,12 @@ private:
fLooper = new SkLayerDrawLooper;
SkLayerDrawLooper::LayerInfo info;
- info.fFlagsMask = SkPaint::kAntiAlias_Flag;
info.fPaintBits = SkLayerDrawLooper::kStyle_Bit | SkLayerDrawLooper::kMaskFilter_Bit;
info.fColorMode = SkXfermode::kSrc_Mode;
for (size_t i = 0; i < SK_ARRAY_COUNT(gParams); i++) {
info.fOffset.set(gParams[i].fOffset, gParams[i].fOffset);
SkPaint* paint = fLooper->addLayer(info);
- paint->setAntiAlias(true);
paint->setColor(gParams[i].fColor);
paint->setStyle(gParams[i].fStyle);
paint->setStrokeWidth(gParams[i].fWidth);
« no previous file with comments | « gm/blurroundrect.cpp ('k') | gm/megalooper.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698