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

Unified Diff: gm/drawlooper.cpp

Issue 1821533002: guard rasterizer and drawlooper setters (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: guard google3 Created 4 years, 9 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/circles.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 9f922a5ae47eb2cb23e5b88d2c4d4b99949d58d5..7ee774720821bf57d5ddc34b1a877d39f915d870 100644
--- a/gm/drawlooper.cpp
+++ b/gm/drawlooper.cpp
@@ -22,10 +22,6 @@ public:
this->setBGColor(sk_tool_utils::color_to_565(0xFFDDDDDD));
}
- virtual ~DrawLooperGM() {
- SkSafeUnref(fLooper);
- }
-
protected:
virtual SkISize onISize() override {
return SkISize::Make(520, 160);
@@ -55,7 +51,7 @@ protected:
}
private:
- SkLayerDrawLooper* fLooper;
+ sk_sp<SkDrawLooper> fLooper;
void init() {
if (fLooper) return;
@@ -91,7 +87,7 @@ private:
paint->setMaskFilter(mf)->unref();
}
}
- fLooper = looperBuilder.detachLooper();
+ fLooper = looperBuilder.detach();
}
typedef GM INHERITED;
« no previous file with comments | « gm/circles.cpp ('k') | gm/megalooper.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698