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

Unified Diff: Source/wtf/ArrayBuffer.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/wtf/ArrayBuffer.h
diff --git a/Source/wtf/ArrayBuffer.h b/Source/wtf/ArrayBuffer.h
index af5dbba72382c91bca725e3ea91349512520ba37..e58f53151817c33a0c7323b2ce89f9d14fcd7416 100644
--- a/Source/wtf/ArrayBuffer.h
+++ b/Source/wtf/ArrayBuffer.h
@@ -66,11 +66,11 @@ public:
bool transfer(ArrayBufferContents&);
bool isNeutered() { return m_isNeutered; }
- void setDeallocationObserver(ArrayBufferDeallocationObserver* observer)
+ void setDeallocationObserver(ArrayBufferDeallocationObserver& observer)
{
m_contents.setDeallocationObserver(observer);
}
- void setDeallocationObserverWithoutAllocationNotification(ArrayBufferDeallocationObserver* observer)
+ void setDeallocationObserverWithoutAllocationNotification(ArrayBufferDeallocationObserver& observer)
{
m_contents.setDeallocationObserverWithoutAllocationNotification(observer);
}
« no previous file with comments | « Source/web/WebKit.cpp ('k') | Source/wtf/ArrayBufferContents.h » ('j') | Source/wtf/Threading.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698