Searched refs:shared_memory_ (Results 1 - 25 of 54) sorted by relevance

123

/external/chromium_org/components/visitedlink/renderer/
H A Dvisitedlink_slave.cc16 VisitedLinkSlave::VisitedLinkSlave() : shared_memory_(NULL) {}
41 DCHECK(shared_memory_ == NULL && hash_table_ == NULL);
44 shared_memory_ = new base::SharedMemory(table, true);
45 if (!shared_memory_)
50 if (!shared_memory_->Map(sizeof(SharedHeader)))
53 static_cast<SharedHeader*>(shared_memory_->memory());
57 shared_memory_->Unmap();
60 if (!shared_memory_->Map(sizeof(SharedHeader) +
62 shared_memory_->Close();
67 DCHECK(shared_memory_
[all...]
H A Dvisitedlink_slave.h35 base::SharedMemory* shared_memory_; member in class:visitedlink::VisitedLinkSlave
/external/chromium_org/cc/blink/
H A Dweb_external_bitmap_impl.cc31 shared_memory_ = g_memory_allocator(byte_size);
32 if (shared_memory_)
33 shared_memory_->Map(byte_size);
43 return static_cast<uint8*>(shared_memory_->memory());
H A Dweb_external_bitmap_impl.h35 base::SharedMemory* shared_memory() { return shared_memory_.get(); }
38 scoped_ptr<base::SharedMemory> shared_memory_; member in class:cc_blink::WebExternalBitmapImpl
/external/chromium_org/ui/gl/
H A Dgl_image_shared_memory.cc18 DCHECK(!shared_memory_);
46 DCHECK(!shared_memory_);
47 shared_memory_ = duped_shared_memory.Pass();
49 static_cast<unsigned char*>(shared_memory_->memory()));
55 shared_memory_.reset();
H A Dgl_image_shared_memory.h27 scoped_ptr<base::SharedMemory> shared_memory_; member in class:gfx::GLImageSharedMemory
/external/chromium_org/content/renderer/pepper/
H A Dppb_buffer_impl.cc53 shared_memory_.reset(
55 return shared_memory_.get() != NULL;
64 return PP_FromBool(!!shared_memory_->memory());
69 DCHECK(shared_memory_.get());
71 shared_memory_->Map(size_);
72 return shared_memory_->memory();
77 shared_memory_->Unmap();
82 *shm_handle = shared_memory_->handle().fd;
84 *shm_handle = reinterpret_cast<int>(shared_memory_->handle());
H A Dppb_image_data_impl.cc263 shared_memory_.reset(
267 return !!shared_memory_.get();
275 DCHECK(shared_memory_.get());
277 shared_memory_->Map(skia_bitmap_.getSize());
278 skia_bitmap_.setPixels(shared_memory_->memory());
284 return shared_memory_->memory();
289 shared_memory_->Unmap();
296 *handle = shared_memory_->handle().fd;
298 *handle = reinterpret_cast<int>(shared_memory_->handle());
H A Dppb_buffer_impl.h26 base::SharedMemory* shared_memory() const { return shared_memory_.get(); }
47 scoped_ptr<base::SharedMemory> shared_memory_; member in class:content::PPB_Buffer_Impl
/external/chromium_org/ui/surface/
H A Dtransport_dib_posix.cc20 : shared_memory_(dib, false /* read write */),
30 if (!dib->shared_memory_.CreateAndMapAnonymous(size)) {
78 if (!shared_memory_.Map(0))
80 size_ = shared_memory_.mapped_size();
86 if ((fstat(shared_memory_.handle().fd, &st) != 0) ||
87 (!shared_memory_.Map(st.st_size))) {
97 return shared_memory_.memory();
104 return shared_memory_.id();
109 return shared_memory_.handle();
H A Dtransport_dib_win.cc24 : shared_memory_(handle, false /* read write */),
32 if (!dib->shared_memory_.CreateAnonymous(size)) {
91 if (!shared_memory_.Map(0 /* map whole shared memory segment */)) {
93 << " handle:" << shared_memory_.handle()
98 size_ = shared_memory_.mapped_size();
103 return shared_memory_.memory();
107 return shared_memory_.handle();
/external/chromium_org/cc/resources/
H A Dtexture_mailbox.cc13 TextureMailbox::TextureMailbox() : shared_memory_(NULL) {}
17 shared_memory_(NULL),
24 shared_memory_(NULL),
29 : shared_memory_(shared_memory),
46 shared_memory_->handle() == other.shared_memory_->handle();
H A Dtexture_mailbox.h31 bool IsSharedMemory() const { return shared_memory_ != NULL; }
46 base::SharedMemory* shared_memory() const { return shared_memory_; }
52 base::SharedMemory* shared_memory_; member in class:cc::TextureMailbox
/external/chromium_org/gpu/command_buffer/common/
H A Dbuffer.cc15 : shared_memory_(shared_memory.Pass()), size_(size) {}
20 return shared_memory_->memory();
H A Dbuffer.h34 base::SharedMemory* shared_memory() { return shared_memory_.get(); }
37 scoped_ptr<base::SharedMemory> shared_memory_; member in class:gpu::SharedMemoryBufferBacking
/external/chromium_org/content/common/gpu/client/
H A Dgpu_memory_buffer_impl_shared_memory.cc25 shared_memory_(shared_memory.Pass()) {
120 if (!shared_memory_->Map(size_.GetArea() * BytesPerPixel(internalformat_)))
123 return shared_memory_->memory();
128 shared_memory_->Unmap();
139 handle.handle = shared_memory_->handle();
/external/chromium_org/ppapi/proxy/
H A Dgamepad_resource.cc109 shared_memory_.reset(new base::SharedMemory(handle, true));
110 CHECK(shared_memory_->Map(sizeof(ContentGamepadHardwareBuffer)));
112 shared_memory_->memory());
H A Dgamepad_resource.h48 scoped_ptr<base::SharedMemory> shared_memory_; member in class:ppapi::proxy::GamepadResource
/external/chromium_org/components/visitedlink/browser/
H A Dvisitedlink_master.cc222 shared_memory_ = NULL;
674 shared_memory_ = new base::SharedMemory();
675 if (!shared_memory_)
682 if (!shared_memory_->Create(options) || !shared_memory_->Map(alloc_size)) {
683 delete shared_memory_;
684 shared_memory_ = NULL;
689 memset(shared_memory_->memory(), 0, alloc_size);
695 SharedHeader* header = static_cast<SharedHeader*>(shared_memory_->memory());
701 static_cast<char*>(shared_memory_
[all...]
/external/chromium_org/third_party/webrtc/modules/desktop_capture/
H A Ddesktop_frame.h42 SharedMemory* shared_memory() const { return shared_memory_; }
83 SharedMemory* const shared_memory_; member in class:webrtc::DesktopFrame
/external/chromium_org/ppapi/shared_impl/
H A Dppb_audio_shared.cc101 shared_memory_.reset(new base::SharedMemory(shared_memory_handle, false));
107 if (!shared_memory_->Map(shared_memory_size_)) {
115 kAudioOutputChannels, sample_frame_count, shared_memory_->memory());
128 !shared_memory_->memory() || !audio_bus_.get() || !client_buffer_.get() ||
134 memset(shared_memory_->memory(), 0, shared_memory_size_);
/external/chromium_org/extensions/renderer/
H A Duser_script_set.cc93 shared_memory_.reset(new base::SharedMemory(shared_memory, true));
94 if (!shared_memory_.get())
98 if (!shared_memory_->Map(sizeof(Pickle::Header)))
101 reinterpret_cast<Pickle::Header*>(shared_memory_->memory());
105 shared_memory_->Unmap();
106 if (!shared_memory_->Map(pickle_size))
111 Pickle pickle(reinterpret_cast<char*>(shared_memory_->memory()), pickle_size);
/external/chromium_org/content/browser/renderer_host/media/
H A Daudio_input_sync_writer.cc19 : shared_memory_(shared_memory),
34 uint8* ptr = static_cast<uint8*>(shared_memory_->memory());
82 uint8* ptr = static_cast<uint8*>(shared_memory_->memory());
H A Daudio_sync_reader.h50 const base::SharedMemory* const shared_memory_; member in class:content::AudioSyncReader::base
/external/chromium_org/base/memory/
H A Dshared_memory.h310 : shared_memory_(shared_memory) {
311 shared_memory_->LockDeprecated();
315 shared_memory_->UnlockDeprecated();
319 SharedMemory* shared_memory_; member in class:base::SharedMemoryAutoLockDeprecated

Completed in 709 milliseconds

123