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

Unified Diff: Source/platform/graphics/ImageDecodingStore.h

Issue 794223003: Cheaper thread-safe atomic initialization of static references. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add type check for initial value Created 5 years, 11 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/platform/graphics/ImageDecodingStore.h
diff --git a/Source/platform/graphics/ImageDecodingStore.h b/Source/platform/graphics/ImageDecodingStore.h
index 8819a3030ed9769a2992f4af3d138e42977d19f7..9b9198a2bad5caccc441b520a9cefa01a1b143d2 100644
--- a/Source/platform/graphics/ImageDecodingStore.h
+++ b/Source/platform/graphics/ImageDecodingStore.h
@@ -66,7 +66,7 @@ public:
static PassOwnPtr<ImageDecodingStore> create() { return adoptPtr(new ImageDecodingStore); }
~ImageDecodingStore();
- static ImageDecodingStore* instance();
+ static ImageDecodingStore& instance();
// Access a cached decoder object. A decoder is indexed by origin (ImageFrameGenerator)
// and scaled size. Return true if the cached object is found.

Powered by Google App Engine
This is Rietveld 408576698