aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm/samplerstress.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gm/samplerstress.cpp')
-rw-r--r--gm/samplerstress.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/gm/samplerstress.cpp b/gm/samplerstress.cpp
index 10e3cacd03..ee87f091f9 100644
--- a/gm/samplerstress.cpp
+++ b/gm/samplerstress.cpp
@@ -76,12 +76,12 @@ protected:
}
void createMaskFilter() {
- if (fMaskFilter.get()) {
+ if (fMaskFilter) {
return;
}
const SkScalar sigma = 1;
- fMaskFilter.reset(SkBlurMaskFilter::Create(kNormal_SkBlurStyle, sigma));
+ fMaskFilter = SkBlurMaskFilter::Make(kNormal_SkBlurStyle, sigma);
}
void onDraw(SkCanvas* canvas) override {
@@ -96,7 +96,7 @@ protected:
paint.setAntiAlias(true);
paint.setTextSize(72);
paint.setShader(fShader);
- paint.setMaskFilter(fMaskFilter.get());
+ paint.setMaskFilter(fMaskFilter);
sk_tool_utils::set_portable_typeface(&paint);
SkRect temp;
@@ -138,7 +138,7 @@ private:
SkBitmap fTexture;
bool fTextureCreated;
sk_sp<SkShader> fShader;
- SkAutoTUnref<SkMaskFilter> fMaskFilter;
+ sk_sp<SkMaskFilter> fMaskFilter;
typedef GM INHERITED;
};