Home
last modified time | relevance | path

Searched refs:array_buffer (Results 1 – 25 of 30) sorted by relevance

12

/external/chromium_org/ppapi/shared_impl/
Dvar_tracker.cc195 scoped_refptr<ArrayBufferVar> array_buffer(CreateArrayBuffer(size_in_bytes)); in MakeArrayBufferPPVar() local
196 if (!array_buffer.get()) in MakeArrayBufferPPVar()
198 return array_buffer->GetPPVar(); in MakeArrayBufferPPVar()
205 ArrayBufferVar* array_buffer = MakeArrayBufferVar(size_in_bytes, data); in MakeArrayBufferPPVar() local
206 return array_buffer ? array_buffer->GetPPVar() : PP_MakeNull(); in MakeArrayBufferPPVar()
213 ArrayBufferVar* array_buffer(CreateArrayBuffer(size_in_bytes)); in MakeArrayBufferVar() local
214 if (!array_buffer) in MakeArrayBufferVar()
216 memcpy(array_buffer->Map(), data, size_in_bytes); in MakeArrayBufferVar()
217 return array_buffer; in MakeArrayBufferVar()
224 scoped_refptr<ArrayBufferVar> array_buffer( in MakeArrayBufferPPVar() local
[all …]
/external/chromium_org/ppapi/tests/
Dtest_flash_clipboard.cc154 pp::VarArrayBuffer array_buffer(rtf_string.size()); in TestReadWriteRTF() local
155 char* bytes = static_cast<char*>(array_buffer.Map()); in TestReadWriteRTF()
158 std::vector<pp::Var> data_vector(1, array_buffer); in TestReadWriteRTF()
175 ASSERT_TRUE(array_buffer_result.ByteLength() == array_buffer.ByteLength()); in TestReadWriteRTF()
177 ASSERT_TRUE(std::equal(bytes, bytes + array_buffer.ByteLength(), in TestReadWriteRTF()
185 pp::VarArrayBuffer array_buffer(custom_data.size()); in TestReadWriteCustomData() local
186 char* bytes = static_cast<char*>(array_buffer.Map()); in TestReadWriteCustomData()
194 std::vector<pp::Var> data_vector(1, array_buffer); in TestReadWriteCustomData()
211 ASSERT_EQ(array_buffer_result.ByteLength(), array_buffer.ByteLength()); in TestReadWriteCustomData()
213 ASSERT_TRUE(std::equal(bytes, bytes + array_buffer.ByteLength(), in TestReadWriteCustomData()
[all …]
Dtest_x509_certificate_private.cc48 pp::VarArrayBuffer array_buffer(field_value); in FieldMatchesBuffer() local
49 char* bytes = static_cast<char*>(array_buffer.Map()); in FieldMatchesBuffer()
50 uint32_t length = array_buffer.ByteLength(); in FieldMatchesBuffer()
/external/chromium_org/native_client_sdk/src/examples/api/websocket/
Dwebsocket.cc120 pp::VarArrayBuffer array_buffer(size); in SendAsBinary() local
121 char* data = static_cast<char*>(array_buffer.Map()); in SendAsBinary()
124 array_buffer.Unmap(); in SendAsBinary()
125 websocket_->SendMessage(array_buffer); in SendAsBinary()
126 std::string message_text = ArrayToString(array_buffer); in SendAsBinary()
160 pp::VarArrayBuffer array_buffer(receive_var_); in OnReceiveCompletion() local
161 std::string message_text = ArrayToString(array_buffer); in OnReceiveCompletion()
/external/chromium_org/mojo/bindings/js/
Dcore.cc95 v8::Handle<v8::ArrayBuffer> array_buffer = in ReadMessage() local
100 ConvertFromV8(args.isolate(), array_buffer, &buffer); in ReadMessage()
116 dictionary.Set("buffer", array_buffer); in ReadMessage()
184 v8::Handle<v8::ArrayBuffer> array_buffer = in ReadData() local
187 ConvertFromV8(args.isolate(), array_buffer, &buffer); in ReadData()
195 dictionary.Set("buffer", array_buffer); in ReadData()
/external/chromium_org/v8/src/
Dobjects-visiting.cc399 JSArrayBuffer* array_buffer, in VisitLiveObject()
404 array_buffer->weak_first_view(), in VisitLiveObject()
406 array_buffer->set_weak_first_view(typed_array_obj); in VisitLiveObject()
409 array_buffer, JSArrayBuffer::kWeakFirstViewOffset); in VisitLiveObject()
Druntime.h841 Handle<JSArrayBuffer> array_buffer,
848 Handle<JSArrayBuffer> array_buffer,
852 static void NeuterArrayBuffer(Handle<JSArrayBuffer> array_buffer);
/external/chromium_org/ppapi/shared_impl/private/
Dppb_x509_certificate_private_shared.cc69 PP_Var array_buffer = in GetFieldAsPPVar() local
72 return array_buffer; in GetFieldAsPPVar()
/external/chromium_org/gin/
DBUILD.gn9 "array_buffer.cc",
10 "array_buffer.h",
Dgin.gyp29 'array_buffer.cc',
30 'array_buffer.h',
Dgin.target.linux-arm64.mk29 gin/array_buffer.cc \
Dgin.target.darwin-arm64.mk29 gin/array_buffer.cc \
Dgin.target.darwin-x86_64.mk29 gin/array_buffer.cc \
Dgin.target.darwin-x86.mk29 gin/array_buffer.cc \
Dgin.target.linux-x86_64.mk29 gin/array_buffer.cc \
Dgin.target.linux-x86.mk29 gin/array_buffer.cc \
Dgin.target.darwin-mips.mk29 gin/array_buffer.cc \
Dgin.target.linux-mips.mk29 gin/array_buffer.cc \
Dgin.target.linux-arm.mk29 gin/array_buffer.cc \
/external/chromium_org/v8/test/cctest/
Dtest-weaktypedarrays.cc65 static int CountViews(JSArrayBuffer* array_buffer) { in CountViews() argument
67 for (Object* o = array_buffer->weak_first_view(); in CountViews()
76 static bool HasViewInWeakList(JSArrayBuffer* array_buffer, in HasViewInWeakList() argument
78 for (Object* o = array_buffer->weak_first_view(); in HasViewInWeakList()
/external/chromium_org/remoting/client/plugin/
Dchromoting_instance.cc622 pp::VarArrayBuffer array_buffer(buffer_size); in SetCursorShape() local
623 void* dst = array_buffer.Map(); in SetCursorShape()
625 array_buffer.Unmap(); in SetCursorShape()
631 dictionary.Set(pp::Var("data"), array_buffer); in SetCursorShape()
1229 pp::VarArrayBuffer array_buffer(buffer_size); in OnMediaSourceData() local
1230 void* data_ptr = array_buffer.Map(); in OnMediaSourceData()
1232 array_buffer.Unmap(); in OnMediaSourceData()
1234 data_dictionary.Set(pp::Var("buffer"), array_buffer); in OnMediaSourceData()
/external/chromium_org/content/renderer/
Dv8_value_converter_impl.cc434 scoped_ptr<blink::WebArrayBuffer> array_buffer( in FromV8ArrayBuffer() local
437 if (array_buffer) { in FromV8ArrayBuffer()
438 data = reinterpret_cast<char*>(array_buffer->data()); in FromV8ArrayBuffer()
439 length = array_buffer->byteLength(); in FromV8ArrayBuffer()
/external/chromium_org/native_client_sdk/src/examples/demo/earth/
Dearth.cc758 pp::VarArrayBuffer array_buffer(dictionary.Get("data")); in HandleEvent() local
759 if (!name.empty() && !array_buffer.is_null()) { in HandleEvent()
761 uint32_t* pixels = static_cast<uint32_t*>(array_buffer.Map()); in HandleEvent()
763 array_buffer.Unmap(); in HandleEvent()
/external/chromium_org/native_client_sdk/src/examples/demo/earth_simd/
Dearth.cc798 pp::VarArrayBuffer array_buffer(dictionary.Get("data")); in HandleEvent() local
799 if (!name.empty() && !array_buffer.is_null()) { in HandleEvent()
801 uint32_t* pixels = static_cast<uint32_t*>(array_buffer.Map()); in HandleEvent()
803 array_buffer.Unmap(); in HandleEvent()
/external/chromium_org/native_client_sdk/src/gonacl_appengine/src/earth/
Dearth.cc804 pp::VarArrayBuffer array_buffer(dictionary.Get("data")); in HandleMessage() local
805 if (!name.empty() && width > 0 && height > 0 && !array_buffer.is_null()) { in HandleMessage()
806 uint32_t* pixels = static_cast<uint32_t*>(array_buffer.Map()); in HandleMessage()
808 array_buffer.Unmap(); in HandleMessage()

12