aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm/drawlooper.cpp
diff options
context:
space:
mode:
authorGravatar reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2014-02-27 14:27:44 +0000
committerGravatar reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2014-02-27 14:27:44 +0000
commit48f31bdbb3346e3003581229395022bf44828b13 (patch)
tree786b925c6e796fafd09765c219be1a7b5a06650e /gm/drawlooper.cpp
parent0b1afcc4ec2215a101fd769feca9243366092504 (diff)
try to deprecate fFlagsMask from SkLayerDrawLooper
We think we want to move around how flags/fields like linearText and strikeThru are specified. SkPaint has helpers for nearly all of these, but LayerInfo in the draw looper just exposes the raw bitfield. On survey of chrome/android, it appears that no one uses those, so it may be safe to just remove the feature entirely from the looper. R=bungeman@google.com, scroggo@google.com Review URL: https://codereview.chromium.org/181433009 git-svn-id: http://skia.googlecode.com/svn/trunk@13607 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'gm/drawlooper.cpp')
-rw-r--r--gm/drawlooper.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/gm/drawlooper.cpp b/gm/drawlooper.cpp
index 4cc6e8e369..678d2ad35f 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);