Searched refs:ArrayBuffer (Results 1 - 25 of 136) sorted by relevance

123456

/external/chromium_org/third_party/WebKit/Source/wtf/
H A DArrayBuffer.h38 class ArrayBuffer;
41 class WTF_EXPORT ArrayBuffer : public RefCounted<ArrayBuffer> { class in namespace:WTF
43 static inline PassRefPtr<ArrayBuffer> create(unsigned numElements, unsigned elementByteSize);
44 static inline PassRefPtr<ArrayBuffer> create(ArrayBuffer*);
45 static inline PassRefPtr<ArrayBuffer> create(const void* source, unsigned byteLength);
46 static inline PassRefPtr<ArrayBuffer> create(ArrayBufferContents&);
49 static inline PassRefPtr<ArrayBuffer> createUninitialized(unsigned numElements, unsigned elementByteSize);
55 // Creates a new ArrayBuffer objec
131 ArrayBuffer::ArrayBuffer(ArrayBufferContents& contents) function in class:WTF::ArrayBuffer
[all...]
H A DArrayBufferBuilder.h34 #include "wtf/ArrayBuffer.h"
41 // A utility class to build an ArrayBuffer instance.
55 m_buffer = ArrayBuffer::create(capacity, 1);
60 // Returns the accumulated data as an ArrayBuffer instance. If needed,
61 // creates a new ArrayBuffer instance and copies contents from the internal
64 PassRefPtr<ArrayBuffer> toArrayBuffer();
103 RefPtr<ArrayBuffer> m_buffer;
H A DArrayBuffer.cpp27 #include "wtf/ArrayBuffer.h"
34 bool ArrayBuffer::transfer(ArrayBufferContents& result, Vector<RefPtr<ArrayBufferView> >& neuteredViews)
36 RefPtr<ArrayBuffer> keepAlive(this);
70 void ArrayBuffer::addView(ArrayBufferView* view)
80 void ArrayBuffer::removeView(ArrayBufferView* view)
H A DArrayBufferBuilder.cpp45 m_buffer = ArrayBuffer::create(defaultBufferCapacity, 1);
67 RefPtr<ArrayBuffer> newBuffer = ArrayBuffer::create(newBufferSize, 1);
103 PassRefPtr<ArrayBuffer> ArrayBufferBuilder::toArrayBuffer()
H A DTypedArrayBase.h30 #include "wtf/ArrayBuffer.h"
85 TypedArrayBase(PassRefPtr<ArrayBuffer> buffer, unsigned byteOffset, unsigned length)
94 RefPtr<ArrayBuffer> buffer = ArrayBuffer::create(length, sizeof(T));
111 static PassRefPtr<Subclass> create(PassRefPtr<ArrayBuffer> buffer,
115 RefPtr<ArrayBuffer> buf(buffer);
125 RefPtr<ArrayBuffer> buffer = ArrayBuffer::createUninitialized(length, sizeof(T));
H A DInt16Array.h33 class ArrayBuffer;
39 static inline PassRefPtr<Int16Array> create(PassRefPtr<ArrayBuffer>, unsigned byteOffset, unsigned length);
57 inline Int16Array(PassRefPtr<ArrayBuffer>,
74 PassRefPtr<Int16Array> Int16Array::create(PassRefPtr<ArrayBuffer> buffer, unsigned byteOffset, unsigned length)
84 Int16Array::Int16Array(PassRefPtr<ArrayBuffer> buffer, unsigned byteOffset, unsigned length)
H A DInt8Array.h34 class ArrayBuffer;
40 static inline PassRefPtr<Int8Array> create(PassRefPtr<ArrayBuffer>, unsigned byteOffset, unsigned length);
58 inline Int8Array(PassRefPtr<ArrayBuffer>,
75 PassRefPtr<Int8Array> Int8Array::create(PassRefPtr<ArrayBuffer> buffer, unsigned byteOffset, unsigned length)
85 Int8Array::Int8Array(PassRefPtr<ArrayBuffer> buffer, unsigned byteOffset, unsigned length)
H A DUint16Array.h34 class ArrayBuffer;
40 static inline PassRefPtr<Uint16Array> create(PassRefPtr<ArrayBuffer>, unsigned byteOffset, unsigned length);
58 inline Uint16Array(PassRefPtr<ArrayBuffer>,
75 PassRefPtr<Uint16Array> Uint16Array::create(PassRefPtr<ArrayBuffer> buffer, unsigned byteOffset, unsigned length)
85 Uint16Array::Uint16Array(PassRefPtr<ArrayBuffer> buffer, unsigned byteOffset, unsigned length)
H A DUint32Array.h34 class ArrayBuffer;
40 static inline PassRefPtr<Uint32Array> create(PassRefPtr<ArrayBuffer>, unsigned byteOffset, unsigned length);
58 inline Uint32Array(PassRefPtr<ArrayBuffer>,
75 PassRefPtr<Uint32Array> Uint32Array::create(PassRefPtr<ArrayBuffer> buffer, unsigned byteOffset, unsigned length)
85 Uint32Array::Uint32Array(PassRefPtr<ArrayBuffer> buffer, unsigned byteOffset, unsigned length)
/external/chromium_org/v8/test/mjsunit/regress/
H A Dregress-2931.js29 // value of ArrayBuffer on global object.
32 this.ArrayBuffer = function() { throw Error('BAM'); }; function
H A Dregress-2646.js32 heap = new ArrayBuffer(expectedItemsCount * itemSize * 8),
H A Dregress-crbug-351787.js7 var ab1 = new ArrayBuffer(8);
17 var ab3 = new ArrayBuffer(8);
35 var ab4 = new ArrayBuffer(8);
/external/chromium_org/gin/
H A Darray_buffer.cc35 // ArrayBuffer::Private -------------------------------------------------------
45 // the array buffer takes a reference to the ArrayBuffer::Private object that
47 // open a weak handle to the ArrayBuffer object. When we receive the weak
51 // The final subtlety is that we need every ArrayBuffer into the same array
52 // buffer to AddRef the same ArrayBuffer::Private. To make that work, we store
53 // a pointer to the ArrayBuffer::Private object in an internal field of the
54 // ArrayBuffer object.
56 class ArrayBuffer::Private : public base::RefCounted<ArrayBuffer::Private> {
59 v8::Handle<v8::ArrayBuffer> arra
115 ArrayBuffer::ArrayBuffer() function in class:gin::ArrayBuffer
120 ArrayBuffer::ArrayBuffer(v8::Isolate* isolate, function in class:gin::ArrayBuffer
[all...]
H A Darray_buffer.h17 class ArrayBufferAllocator : public v8::ArrayBuffer::Allocator {
26 class GIN_EXPORT ArrayBuffer { class in namespace:gin
28 ArrayBuffer();
29 explicit ArrayBuffer(v8::Isolate* isolate);
30 ArrayBuffer(v8::Isolate* isolate, v8::Handle<v8::ArrayBuffer> buffer);
31 ~ArrayBuffer();
32 ArrayBuffer& operator=(const ArrayBuffer& other);
44 DISALLOW_COPY(ArrayBuffer);
[all...]
/external/chromium_org/third_party/WebKit/Source/bindings/tests/idls/
H A DTestOverloadedConstructors.idl29 Constructor(ArrayBuffer arrayBuffer),
/external/chromium_org/third_party/WebKit/Source/core/html/canvas/
H A DArrayBufferView.idl30 readonly attribute ArrayBuffer buffer;
/external/chromium_org/third_party/WebKit/Source/bindings/v8/custom/
H A DV8ArrayBufferCustom.cpp36 #include "wtf/ArrayBuffer.h"
67 static_cast<ArrayBuffer*>(object)->deref();
70 v8::Handle<v8::Object> V8ArrayBuffer::createWrapper(PassRefPtr<ArrayBuffer> impl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate)
75 v8::Handle<v8::Object> wrapper = v8::ArrayBuffer::New(isolate, impl->data(), impl->byteLength());
82 ArrayBuffer* V8ArrayBuffer::toNative(v8::Handle<v8::Object> object)
87 return reinterpret_cast<ArrayBuffer*>(arraybufferPtr);
89 v8::Local<v8::ArrayBuffer> v8buffer = object.As<v8::ArrayBuffer>();
92 v8::ArrayBuffer::Contents v8Contents = v8buffer->Externalize();
95 RefPtr<ArrayBuffer> buffe
[all...]
H A DV8ArrayBufferCustom.h32 #include "wtf/ArrayBuffer.h"
56 static ArrayBuffer* toNative(v8::Handle<v8::Object>);
60 static void installPerContextEnabledProperties(v8::Handle<v8::Object>, ArrayBuffer*, v8::Isolate*) { }
63 static inline void* toInternalPointer(ArrayBuffer* impl)
68 static inline ArrayBuffer* fromInternalPointer(void* impl)
70 return static_cast<ArrayBuffer*>(impl);
74 friend v8::Handle<v8::Object> wrap(ArrayBuffer*, v8::Handle<v8::Object> creationContext, v8::Isolate*);
75 static v8::Handle<v8::Object> createWrapper(PassRefPtr<ArrayBuffer>, v8::Handle<v8::Object> creationContext, v8::Isolate*);
79 class WrapperTypeTraits<ArrayBuffer > {
85 inline v8::Handle<v8::Object> wrap(ArrayBuffer* imp
[all...]
/external/chromium_org/third_party/WebKit/Source/modules/webaudio/
H A DAsyncAudioDecoder.h37 // AsyncAudioDecoder asynchronously decodes audio file data from an ArrayBuffer in a worker thread.
47 void decodeAsync(ArrayBuffer* audioData, float sampleRate, PassOwnPtr<AudioBufferCallback> successCallback, PassOwnPtr<AudioBufferCallback> errorCallback);
50 static void decode(ArrayBuffer* audioData, float sampleRate, AudioBufferCallback* successCallback, AudioBufferCallback* errorCallback);
51 static void notifyComplete(ArrayBuffer* audioData, AudioBufferCallback* successCallback, AudioBufferCallback* errorCallback, AudioBuffer*);
H A DAsyncAudioDecoder.cpp35 #include "wtf/ArrayBuffer.h"
50 void AsyncAudioDecoder::decodeAsync(ArrayBuffer* audioData, float sampleRate, PassOwnPtr<AudioBufferCallback> successCallback, PassOwnPtr<AudioBufferCallback> errorCallback)
58 RefPtr<ArrayBuffer> audioDataRef(audioData);
64 void AsyncAudioDecoder::decode(ArrayBuffer* audioData, float sampleRate, AudioBufferCallback* successCallback, AudioBufferCallback* errorCallback)
74 void AsyncAudioDecoder::notifyComplete(ArrayBuffer* audioData, AudioBufferCallback* successCallback, AudioBufferCallback* errorCallback, AudioBuffer* audioBuffer)
77 RefPtr<ArrayBuffer> audioDataRef = adoptRef(audioData);
/external/chromium_org/v8/test/webkit/
H A Djit-float32-array-nan.js28 var buffer = new ArrayBuffer(4);
H A Ddfg-float32-array-nan.js28 var buffer = new ArrayBuffer(4);
/external/chromium_org/third_party/WebKit/Source/core/platform/chromium/support/
H A DWebArrayBuffer.cpp35 #include "wtf/ArrayBuffer.h"
44 RefPtr<ArrayBuffer> buffer = ArrayBuffer::create(numElements, elementByteSize);
83 WTF::ArrayBuffer* buffer = V8ArrayBuffer::toNative(value->ToObject());
87 WebArrayBuffer::WebArrayBuffer(const WTF::PassRefPtr<WTF::ArrayBuffer>& blob)
92 WebArrayBuffer& WebArrayBuffer::operator=(const WTF::PassRefPtr<WTF::ArrayBuffer>& blob)
98 WebArrayBuffer::operator WTF::PassRefPtr<WTF::ArrayBuffer>() const
/external/chromium_org/third_party/WebKit/public/platform/
H A DWebArrayBuffer.h42 namespace WTF { class ArrayBuffer; }
71 WebArrayBuffer(const WTF::PassRefPtr<WTF::ArrayBuffer>&);
72 WebArrayBuffer& operator=(const PassRefPtr<WTF::ArrayBuffer>&);
73 operator WTF::PassRefPtr<WTF::ArrayBuffer>() const;
77 WebPrivatePtr<WTF::ArrayBuffer> m_private;
/external/chromium_org/v8/src/extensions/
H A Dfree-buffer-extension.cc45 v8::Handle<v8::ArrayBuffer> arrayBuffer = args[0].As<v8::ArrayBuffer>();
46 v8::ArrayBuffer::Contents contents = arrayBuffer->Externalize();

Completed in 552 milliseconds

123456