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

Unified Diff: Source/wtf/ArrayBuffer.h

Issue 18316003: Revert "Use V8 implementation of ArrayBuffer in Blink." (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 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
« no previous file with comments | « Source/core/html/canvas/ArrayBuffer.idl ('k') | Source/wtf/ArrayBuffer.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/wtf/ArrayBuffer.h
diff --git a/Source/wtf/ArrayBuffer.h b/Source/wtf/ArrayBuffer.h
index fe15136dd315dc0f52936b8e740779ac5c2db61d..b4c7f399f8466746b2ca8467ab26b83fe425d268 100644
--- a/Source/wtf/ArrayBuffer.h
+++ b/Source/wtf/ArrayBuffer.h
@@ -60,7 +60,7 @@ public:
void removeView(ArrayBufferView*);
bool transfer(ArrayBufferContents&, Vector<RefPtr<ArrayBufferView> >& neuteredViews);
- bool isNeutered() { return m_isNeutered; }
+ bool isNeutered() { return !m_contents.data(); }
bool hasDeallocationObserver() { return m_contents.hasDeallocationObserver(); }
void setDeallocationObserver(ArrayBufferDeallocationObserver* observer) { m_contents.setDeallocationObserver(observer); }
@@ -77,7 +77,6 @@ private:
ArrayBufferContents m_contents;
ArrayBufferView* m_firstView;
- bool m_isNeutered;
};
int ArrayBuffer::clampValue(int x, int left, int right)
@@ -129,7 +128,7 @@ PassRefPtr<ArrayBuffer> ArrayBuffer::create(unsigned numElements, unsigned eleme
}
ArrayBuffer::ArrayBuffer(ArrayBufferContents& contents)
- : m_firstView(0), m_isNeutered(false)
+ : m_firstView(0)
{
contents.transfer(m_contents);
}
« no previous file with comments | « Source/core/html/canvas/ArrayBuffer.idl ('k') | Source/wtf/ArrayBuffer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698