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

Unified Diff: Source/wtf/ArrayBufferView.h

Issue 1186863005: Add a ref-counted data holder to ArrayBufferContents (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: type in ArrayBuffer::shareContentsWith Created 5 years, 6 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
« Source/wtf/ArrayBufferContents.cpp ('K') | « Source/wtf/ArrayBufferContents.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/wtf/ArrayBufferView.h
diff --git a/Source/wtf/ArrayBufferView.h b/Source/wtf/ArrayBufferView.h
index 1264f34cb63ec6b2ce0f1df33b83626708956dfd..e9bbe4908eb6e8e1ee5147ac3bb12835e5e4c1d0 100644
--- a/Source/wtf/ArrayBufferView.h
+++ b/Source/wtf/ArrayBufferView.h
@@ -72,6 +72,7 @@ class WTF_EXPORT ArrayBufferView : public RefCounted<ArrayBufferView> {
void setNeuterable(bool flag) { m_isNeuterable = flag; }
bool isNeuterable() const { return m_isNeuterable; }
+ bool isShared() const { return m_buffer ? m_buffer->isShared() : false; }
virtual ~ArrayBufferView();
« Source/wtf/ArrayBufferContents.cpp ('K') | « Source/wtf/ArrayBufferContents.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698