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

Unified Diff: third_party/WebKit/Source/platform/wtf/typed_arrays/TypedArrayBase.h

Issue 2815793002: [SharedArrayBuffer] Add "AllowShared" extended attribute, used for WebGL (Closed)
Patch Set: merge HEAD Created 3 years, 8 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 | « third_party/WebKit/Source/platform/wtf/typed_arrays/ArrayBufferView.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/wtf/typed_arrays/TypedArrayBase.h
diff --git a/third_party/WebKit/Source/platform/wtf/typed_arrays/TypedArrayBase.h b/third_party/WebKit/Source/platform/wtf/typed_arrays/TypedArrayBase.h
index 5b024e0eeb4e1e6d20c73d481c1f12244f37e43d..415529dba40b636bed52a2069fbf2b202f62f152 100644
--- a/third_party/WebKit/Source/platform/wtf/typed_arrays/TypedArrayBase.h
+++ b/third_party/WebKit/Source/platform/wtf/typed_arrays/TypedArrayBase.h
@@ -38,6 +38,9 @@ class TypedArrayBase : public ArrayBufferView {
typedef T ValueType;
T* Data() const { return static_cast<T*>(BaseAddress()); }
+ T* DataMaybeShared() const {
+ return static_cast<T*>(BaseAddressMaybeShared());
+ }
bool Set(TypedArrayBase<T>* array, unsigned offset) {
return SetImpl(array, offset * sizeof(T));
« no previous file with comments | « third_party/WebKit/Source/platform/wtf/typed_arrays/ArrayBufferView.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698