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

Unified Diff: Source/core/dom/DOMArrayBufferDeallocationObserver.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/core/dom/DOMArrayBufferDeallocationObserver.h
diff --git a/Source/core/dom/DOMArrayBufferDeallocationObserver.h b/Source/core/dom/DOMArrayBufferDeallocationObserver.h
index 1560942ea6f23db67ea5f5655ee48232d31cc07d..e71aaacb2c30227892460b96b393784ac0a83a95 100644
--- a/Source/core/dom/DOMArrayBufferDeallocationObserver.h
+++ b/Source/core/dom/DOMArrayBufferDeallocationObserver.h
@@ -11,7 +11,7 @@ namespace blink {
class DOMArrayBufferDeallocationObserver final : public WTF::ArrayBufferDeallocationObserver {
public:
- static DOMArrayBufferDeallocationObserver* instance();
+ static DOMArrayBufferDeallocationObserver& instance();
virtual void arrayBufferDeallocated(unsigned sizeInBytes) override;

Powered by Google App Engine
This is Rietveld 408576698