Searched refs:shared_buf (Results 1 – 10 of 10) sorted by relevance
/external/chromium_org/chrome/renderer/printing/ |
D | print_web_view_helper_pdf_win.cc | 110 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 …]
|
D | print_web_view_helper.cc | 1593 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/ |
D | child_thread.cc | 420 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/ |
D | print_preview_message_handler.cc | 50 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()
|
D | print_view_manager_base.cc | 140 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()
|
D | printing_message_filter.cc | 152 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/ |
D | mock_render_thread.cc | 140 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/ |
D | child_process_host_impl.cc | 206 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/ |
D | clipboard_unittest.cc | 343 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/ |
D | print_web_view_helper.cc | 1608 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()
|