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

Unified Diff: third_party/WebKit/Source/core/style/NinePieceImage.cpp

Issue 2326633002: Adds filter support for offscreen canvas (Closed)
Patch Set: Working version of filters on offscreen canvas Created 4 years, 3 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/core/style/NinePieceImage.cpp
diff --git a/third_party/WebKit/Source/core/style/NinePieceImage.cpp b/third_party/WebKit/Source/core/style/NinePieceImage.cpp
index c6f11acac8dd184520363892fbab43b656176214..2956eacf1d9f4e185a0c868aa832355819e4fd74 100644
--- a/third_party/WebKit/Source/core/style/NinePieceImage.cpp
+++ b/third_party/WebKit/Source/core/style/NinePieceImage.cpp
@@ -29,9 +29,11 @@ namespace blink {
static DataRef<NinePieceImageData>& defaultData()
{
- static DataRef<NinePieceImageData>* data = new DataRef<NinePieceImageData>;
- if (!data->get())
+ DEFINE_THREAD_SAFE_STATIC_LOCAL(ThreadSpecific<DataRef<NinePieceImageData>>, data,
+ new ThreadSpecific<DataRef<NinePieceImageData>>);
esprehn 2016/09/12 20:53:12 ditto
+ if (!data->get()) {
data->init();
+ }
return *data;
}

Powered by Google App Engine
This is Rietveld 408576698