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

Unified Diff: third_party/WebKit/Source/platform/graphics/Gradient.h

Issue 1789063005: Add sk_sp helpers and switch Blink SkShader clients to the new APIs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: adoptSkSp/toSkSp 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
Index: third_party/WebKit/Source/platform/graphics/Gradient.h
diff --git a/third_party/WebKit/Source/platform/graphics/Gradient.h b/third_party/WebKit/Source/platform/graphics/Gradient.h
index 49e0f740ab84df171045dfcd1c74eab573fa7e70..fdb4663aaecbd9915d51635cf929c8c637fb322b 100644
--- a/third_party/WebKit/Source/platform/graphics/Gradient.h
+++ b/third_party/WebKit/Source/platform/graphics/Gradient.h
@@ -126,7 +126,7 @@ private:
Gradient(const FloatPoint& p0, const FloatPoint& p1);
Gradient(const FloatPoint& p0, float r0, const FloatPoint& p1, float r1, float aspectRatio);
- SkShader* shader();
+ PassRefPtr<SkShader> refShader();
jbroman 2016/03/17 17:19:13 nit: didn't notice this earlier, but do we have th
Stephen White 2016/03/17 17:50:40 I don't think we have ref...() as a verb elsewhere
f(malita) 2016/03/17 18:04:42 Probably not a common pattern in Blink. I was pla
f(malita) 2016/03/17 18:04:42 Done.
void destroyShader();
void sortStopsIfNecessary();

Powered by Google App Engine
This is Rietveld 408576698