Home
last modified time | relevance | path

Searched refs:shared_buf (Results 1 – 10 of 10) sorted by relevance

/external/chromium_org/chrome/renderer/printing/
Dprint_web_view_helper_pdf_win.cc110 base::SharedMemory shared_buf; in PrintPagesNative() local
112 if (!shared_buf.CreateAndMapAnonymous(buf_size)) { in PrintPagesNative()
118 if (!metafile.GetData(shared_buf.memory(), buf_size)) { in PrintPagesNative()
120 shared_buf.Unmap(); in PrintPagesNative()
123 shared_buf.GiveToProcess(base::GetCurrentProcessHandle(), in PrintPagesNative()
125 shared_buf.Unmap(); in PrintPagesNative()
222 base::SharedMemory shared_buf; in CopyMetafileDataToSharedMem() local
224 if (!shared_buf.CreateAndMapAnonymous(buf_size)) { in CopyMetafileDataToSharedMem()
230 if (!metafile->GetData(shared_buf.memory(), buf_size)) { in CopyMetafileDataToSharedMem()
232 shared_buf.Unmap(); in CopyMetafileDataToSharedMem()
[all …]
Dprint_web_view_helper.cc1593 scoped_ptr<base::SharedMemory> shared_buf( in CopyMetafileDataToSharedMem() local
1597 if (shared_buf) { in CopyMetafileDataToSharedMem()
1598 if (shared_buf->Map(buf_size)) { in CopyMetafileDataToSharedMem()
1599 metafile->GetData(shared_buf->memory(), buf_size); in CopyMetafileDataToSharedMem()
1600 return shared_buf->GiveToProcess(base::GetCurrentProcessHandle(), in CopyMetafileDataToSharedMem()
/external/chromium_org/content/child/
Dchild_thread.cc420 scoped_ptr<base::SharedMemory> shared_buf; in AllocateSharedMemory() local
422 shared_buf.reset(new base::SharedMemory); in AllocateSharedMemory()
423 if (!shared_buf->CreateAndMapAnonymous(buf_size)) { in AllocateSharedMemory()
434 shared_buf.reset(new base::SharedMemory(shared_mem_handle, false)); in AllocateSharedMemory()
435 if (!shared_buf->Map(buf_size)) { in AllocateSharedMemory()
448 return shared_buf.release(); in AllocateSharedMemory()
/external/chromium_org/chrome/browser/printing/
Dprint_preview_message_handler.cc50 scoped_ptr<base::SharedMemory> shared_buf( in GetDataFromHandle() local
52 if (!shared_buf->Map(data_size)) { in GetDataFromHandle()
57 unsigned char* data_begin = static_cast<unsigned char*>(shared_buf->memory()); in GetDataFromHandle()
Dprint_view_manager_base.cc140 base::SharedMemory shared_buf(params.metafile_data_handle, true); in OnDidPrintPage() local
142 if (!shared_buf.Map(params.data_size)) { in OnDidPrintPage()
151 if (!metafile->InitFromData(shared_buf.memory(), params.data_size)) { in OnDidPrintPage()
169 reinterpret_cast<const unsigned char*>(shared_buf.memory()), in OnDidPrintPage()
Dprinting_message_filter.cc152 base::SharedMemory shared_buf(renderer_handle, true, PeerHandle()); in OnDuplicateSection() local
153 shared_buf.GiveToProcess(base::GetCurrentProcessHandle(), browser_handle); in OnDuplicateSection()
/external/chromium_org/content/public/test/
Dmock_render_thread.cc140 scoped_ptr<base::SharedMemory> shared_buf(new base::SharedMemory); in HostAllocateSharedMemoryBuffer() local
141 if (!shared_buf->CreateAnonymous(buffer_size)) { in HostAllocateSharedMemoryBuffer()
146 return scoped_ptr<base::SharedMemory>(shared_buf.release()); in HostAllocateSharedMemoryBuffer()
/external/chromium_org/content/common/
Dchild_process_host_impl.cc206 base::SharedMemory shared_buf; in AllocateSharedMemory() local
207 if (!shared_buf.CreateAnonymous(buffer_size)) { in AllocateSharedMemory()
212 shared_buf.GiveToProcess(child_process_handle, shared_memory_handle); in AllocateSharedMemory()
/external/chromium_org/ui/base/clipboard/
Dclipboard_unittest.cc343 base::SharedMemory shared_buf; in TestBitmapWrite() local
344 ASSERT_TRUE(shared_buf.CreateAndMapAnonymous(bitmap_data_size)); in TestBitmapWrite()
345 memcpy(shared_buf.memory(), bitmap_data, bitmap_data_size); in TestBitmapWrite()
347 uint32* pixel_buffer = static_cast<uint32*>(shared_buf.memory()); in TestBitmapWrite()
359 shared_buf.ShareToProcess(current_process, &handle_to_share); in TestBitmapWrite()
360 ASSERT_TRUE(shared_buf.Unmap()); in TestBitmapWrite()
/external/chromium_org/android_webview/renderer/
Dprint_web_view_helper.cc1608 scoped_ptr<base::SharedMemory> shared_buf( in CopyMetafileDataToSharedMem() local
1612 if (shared_buf.get()) { in CopyMetafileDataToSharedMem()
1613 if (shared_buf->Map(buf_size)) { in CopyMetafileDataToSharedMem()
1614 metafile->GetData(shared_buf->memory(), buf_size); in CopyMetafileDataToSharedMem()
1615 shared_buf->GiveToProcess(base::GetCurrentProcessHandle(), in CopyMetafileDataToSharedMem()