diff options
author | reed <reed@google.com> | 2016-03-21 13:25:16 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-03-21 13:25:16 -0700 |
commit | 7b380d0d0e91ae6967c52bfa14853a77b9551de4 (patch) | |
tree | e76ea25f431624e01b51ca605761438fd4560120 /samplecode/SampleTiling.cpp | |
parent | dc6c9bf91c158e89cd9d5ef19dfbf1da98c598a6 (diff) |
guard rasterizer and drawlooper setters
Need to land https://codereview.chromium.org/1823513002/ first
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1821533002
Review URL: https://codereview.chromium.org/1821533002
Diffstat (limited to 'samplecode/SampleTiling.cpp')
-rw-r--r-- | samplecode/SampleTiling.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/samplecode/SampleTiling.cpp b/samplecode/SampleTiling.cpp index 62f055f61e..dbc7d09145 100644 --- a/samplecode/SampleTiling.cpp +++ b/samplecode/SampleTiling.cpp @@ -55,12 +55,12 @@ static const int gHeight = 32; class TilingView : public SampleView { sk_sp<SkPicture> fTextPicture; - SkAutoTUnref<SkDrawLooper> fLooper; + sk_sp<SkDrawLooper> fLooper; public: TilingView() - : fLooper(SkBlurDrawLooper::Create(0x88000000, - SkBlurMask::ConvertRadiusToSigma(SkIntToScalar(1)), - SkIntToScalar(2), SkIntToScalar(2))) { + : fLooper(SkBlurDrawLooper::Make(0x88000000, + SkBlurMask::ConvertRadiusToSigma(SkIntToScalar(1)), + SkIntToScalar(2), SkIntToScalar(2))) { for (size_t i = 0; i < SK_ARRAY_COUNT(gColorTypes); i++) { makebm(&fTexture[i], gColorTypes[i], gWidth, gHeight); } |