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

Unified Diff: Source/core/platform/graphics/Gradient.h

Issue 18718002: Use RefPtr to manage shaders in Gradient and Pattern. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 5 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: Source/core/platform/graphics/Gradient.h
diff --git a/Source/core/platform/graphics/Gradient.h b/Source/core/platform/graphics/Gradient.h
index 291c5e478e6aea2ae06c11fcc6a96e509ed85cb2..04e4598c5b88db1a22c05d2b8ddff0e8b1d77b4c 100644
--- a/Source/core/platform/graphics/Gradient.h
+++ b/Source/core/platform/graphics/Gradient.h
@@ -159,7 +159,7 @@ private:
mutable unsigned m_cachedHash;
- SkShader* m_gradient;
+ RefPtr<SkShader> m_gradient;
};
} // namespace WebCore
« no previous file with comments | « no previous file | Source/core/platform/graphics/Gradient.cpp » ('j') | Source/core/platform/graphics/Gradient.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698