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

Unified Diff: gm/lcdblendmodes.cpp

Issue 1772463002: use Make instead of Create to return a shared shader (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 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/gm.cpp ('k') | gm/pixelsnap.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/lcdblendmodes.cpp
diff --git a/gm/lcdblendmodes.cpp b/gm/lcdblendmodes.cpp
index a2405349ebb7bb991d5d4b36b4b6afba3743398d..d7a9024204bffbbfeea4abbe3269a6e51623fbb2 100644
--- a/gm/lcdblendmodes.cpp
+++ b/gm/lcdblendmodes.cpp
@@ -48,9 +48,7 @@ protected:
}
void onOnceBeforeDraw() override {
- fCheckerboard.reset(sk_tool_utils::create_checkerboard_shader(SK_ColorBLACK,
- SK_ColorWHITE,
- 4));
+ fCheckerboard = sk_tool_utils::create_checkerboard_shader(SK_ColorBLACK, SK_ColorWHITE, 4);
}
SkISize onISize() override { return SkISize::Make(kWidth, kHeight); }
@@ -148,7 +146,7 @@ protected:
private:
SkScalar fTextHeight;
- SkAutoTUnref<SkShader> fCheckerboard;
+ sk_sp<SkShader> fCheckerboard;
typedef skiagm::GM INHERITED;
};
« no previous file with comments | « gm/gm.cpp ('k') | gm/pixelsnap.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698