Home
last modified time | relevance | path

Searched refs:shared_memory_ (Results 1 – 25 of 59) sorted by relevance

123

/external/chromium_org/components/visitedlink/renderer/
Dvisitedlink_slave.cc16 VisitedLinkSlave::VisitedLinkSlave() : shared_memory_(NULL) {} in VisitedLinkSlave()
41 DCHECK(shared_memory_ == NULL && hash_table_ == NULL); in OnUpdateVisitedLinks()
44 shared_memory_ = new base::SharedMemory(table, true); in OnUpdateVisitedLinks()
45 if (!shared_memory_) in OnUpdateVisitedLinks()
50 if (!shared_memory_->Map(sizeof(SharedHeader))) in OnUpdateVisitedLinks()
53 static_cast<SharedHeader*>(shared_memory_->memory()); in OnUpdateVisitedLinks()
57 shared_memory_->Unmap(); in OnUpdateVisitedLinks()
60 if (!shared_memory_->Map(sizeof(SharedHeader) + in OnUpdateVisitedLinks()
62 shared_memory_->Close(); in OnUpdateVisitedLinks()
67 DCHECK(shared_memory_->memory()); in OnUpdateVisitedLinks()
[all …]
/external/chromium_org/cc/resources/
Dtexture_mailbox.cc15 shared_memory_(NULL) { in TextureMailbox()
21 shared_memory_(NULL) { in TextureMailbox()
31 shared_memory_(NULL) { in TextureMailbox()
39 shared_memory_(NULL) { in TextureMailbox()
48 shared_memory_(NULL) { in TextureMailbox()
56 shared_memory_(shared_memory), in TextureMailbox()
65 return ContainsHandle(other.shared_memory_->handle()); in Equals()
76 return shared_memory_ && shared_memory_->handle() == handle; in ContainsHandle()
80 DCHECK(shared_memory_ == NULL); in SetName()
Dtexture_mailbox.h37 bool IsSharedMemory() const { return shared_memory_ != NULL; } in IsSharedMemory()
49 base::SharedMemory* shared_memory() const { return shared_memory_; } in shared_memory()
61 base::SharedMemory* shared_memory_; variable
/external/chromium_org/content/common/gpu/client/
Dgpu_memory_buffer_impl_shm.cc22 shared_memory_.reset(new base::SharedMemory(handle.handle, false)); in Initialize()
23 DCHECK(!shared_memory_->memory()); in Initialize()
29 shared_memory_ = shared_memory.Pass(); in InitializeFromSharedMemory()
30 DCHECK(!shared_memory_->memory()); in InitializeFromSharedMemory()
37 if (!shared_memory_->Map(size_.GetArea() * BytesPerPixel(internalformat_))) in Map()
39 *vaddr = shared_memory_->memory(); in Map()
45 shared_memory_->Unmap(); in Unmap()
52 handle.handle = shared_memory_->handle(); in GetHandle()
/external/chromium_org/chrome_frame/
Ddll_redirector.cc32 shared_memory_.reset(new base::SharedMemory(beacon_name)); in DllRedirector()
38 shared_memory_.reset(new base::SharedMemory(ASCIIToWide(shared_memory_name))); in DllRedirector()
138 lock_acquired = shared_memory_->Lock(kSharedMemoryLockTimeoutMs, &sec_attr); in RegisterAsFirstCFModule()
140 lock_acquired = shared_memory_->Lock(kSharedMemoryLockTimeoutMs, NULL); in RegisterAsFirstCFModule()
152 bool result = shared_memory_->CreateNamed(shared_memory_name_.c_str(), in RegisterAsFirstCFModule()
160 if (!SetFileMappingToReadOnly(shared_memory_->handle())) { in RegisterAsFirstCFModule()
168 result = shared_memory_->Open(shared_memory_name_.c_str(), in RegisterAsFirstCFModule()
174 result = shared_memory_->Map(0); in RegisterAsFirstCFModule()
175 DCHECK(shared_memory_->memory()); in RegisterAsFirstCFModule()
183 lstrcpynA(reinterpret_cast<char*>(shared_memory_->memory()), in RegisterAsFirstCFModule()
[all …]
/external/chromium_org/ui/surface/
Dtransport_dib_posix.cc23 : shared_memory_(dib, false /* read write */), in TransportDIB()
33 if (!dib->shared_memory_.CreateAndMapAnonymous(size)) { in Create()
81 if (!shared_memory_.Map(0)) in Map()
83 size_ = shared_memory_.mapped_size(); in Map()
89 if ((fstat(shared_memory_.handle().fd, &st) != 0) || in Map()
90 (!shared_memory_.Map(st.st_size))) { in Map()
100 return shared_memory_.memory(); in memory()
107 return shared_memory_.id(); in id()
112 return shared_memory_.handle(); in handle()
Dtransport_dib_win.cc24 : shared_memory_(handle, false /* read write */), in TransportDIB()
32 if (!dib->shared_memory_.CreateAnonymous(size)) { in Create()
91 if (!shared_memory_.Map(0 /* map whole shared memory segment */)) { in Map()
93 << " handle:" << shared_memory_.handle() in Map()
98 size_ = shared_memory_.mapped_size(); in Map()
103 return shared_memory_.memory(); in memory()
107 return shared_memory_.handle(); in handle()
/external/chromium_org/content/renderer/pepper/
Dppb_buffer_impl.cc61 shared_memory_.reset( in Init()
63 return shared_memory_.get() != NULL; in Init()
72 return PP_FromBool(!!shared_memory_->memory()); in IsMapped()
77 DCHECK(shared_memory_.get()); in Map()
79 shared_memory_->Map(size_); in Map()
80 return shared_memory_->memory(); in Map()
85 shared_memory_->Unmap(); in Unmap()
90 *shm_handle = shared_memory_->handle().fd; in GetSharedMemory()
93 shared_memory_->handle()); in GetSharedMemory()
Dppb_image_data_impl.cc284 shared_memory_.reset(RenderThread::Get()->HostAllocateSharedMemoryBuffer( in Init()
286 return !!shared_memory_.get(); in Init()
298 DCHECK(shared_memory_.get()); in Map()
300 shared_memory_->Map(skia_bitmap_.getSize()); in Map()
301 skia_bitmap_.setPixels(shared_memory_->memory()); in Map()
307 return shared_memory_->memory(); in Map()
312 shared_memory_->Unmap(); in Unmap()
319 *handle = shared_memory_->handle().fd; in GetSharedMemory()
321 *handle = reinterpret_cast<int>(shared_memory_->handle()); in GetSharedMemory()
/external/chromium_org/ui/gl/
Dgl_image_shm.cc93 shared_memory_.reset( in Initialize()
107 DCHECK(shared_memory_); in BindTexImage()
111 DCHECK(!shared_memory_->memory()); in BindTexImage()
112 if (!shared_memory_->Map(size)) { in BindTexImage()
117 DCHECK(shared_memory_->memory()); in BindTexImage()
126 shared_memory_->memory()); in BindTexImage()
128 shared_memory_->Unmap(); in BindTexImage()
/external/chromium_org/chrome_frame/test/
Ddll_redirector_test.cc53 return shared_memory_.get(); in shared_memory()
89 shared_memory_.reset(new base::SharedMemory); in SetUp()
101 EXPECT_TRUE(shared_memory_->CreateNamed(name, false, in CreateVersionBeacon()
103 EXPECT_TRUE(shared_memory_->Map(0)); in CreateVersionBeacon()
104 EXPECT_TRUE(shared_memory_->memory()); in CreateVersionBeacon()
106 if (shared_memory_->memory()) { in CreateVersionBeacon()
107 memcpy(shared_memory_->memory(), in CreateVersionBeacon()
116 EXPECT_TRUE(shared_memory_->Open(name, true /* read_only */)); in OpenAndReadVersionFromBeacon()
117 EXPECT_TRUE(shared_memory_->Map(0)); in OpenAndReadVersionFromBeacon()
118 EXPECT_TRUE(shared_memory_->memory()); in OpenAndReadVersionFromBeacon()
[all …]
/external/chromium_org/webkit/renderer/compositor_bindings/
Dweb_external_bitmap_impl.cc29 shared_memory_ = g_memory_allocator(byte_size); in setSize()
30 if (shared_memory_) in setSize()
31 shared_memory_->Map(byte_size); in setSize()
41 return static_cast<uint8*>(shared_memory_->memory()); in pixels()
/external/chromium_org/components/visitedlink/browser/
Dvisitedlink_master.cc222 shared_memory_ = NULL; in InitMembers()
674 shared_memory_ = new base::SharedMemory(); in CreateURLTable()
675 if (!shared_memory_) in CreateURLTable()
678 if (!shared_memory_->CreateAndMapAnonymous(alloc_size)) { in CreateURLTable()
679 delete shared_memory_; in CreateURLTable()
680 shared_memory_ = NULL; in CreateURLTable()
685 memset(shared_memory_->memory(), 0, alloc_size); in CreateURLTable()
691 SharedHeader* header = static_cast<SharedHeader*>(shared_memory_->memory()); in CreateURLTable()
697 static_cast<char*>(shared_memory_->memory()) + sizeof(SharedHeader)); in CreateURLTable()
703 base::SharedMemory *old_shared_memory = shared_memory_; in BeginReplaceURLTable()
[all …]
/external/chromium/chrome/browser/visitedlink/
Dvisitedlink_master.cc240 shared_memory_ = NULL; in InitMembers()
673 shared_memory_ = new base::SharedMemory(); in CreateURLTable()
674 if (!shared_memory_) in CreateURLTable()
677 if (!shared_memory_->CreateAndMapAnonymous(alloc_size)) { in CreateURLTable()
678 delete shared_memory_; in CreateURLTable()
679 shared_memory_ = NULL; in CreateURLTable()
684 memset(shared_memory_->memory(), 0, alloc_size); in CreateURLTable()
690 SharedHeader* header = static_cast<SharedHeader*>(shared_memory_->memory()); in CreateURLTable()
696 static_cast<char*>(shared_memory_->memory()) + sizeof(SharedHeader)); in CreateURLTable()
702 base::SharedMemory *old_shared_memory = shared_memory_; in BeginReplaceURLTable()
[all …]
/external/chromium/base/
Dshared_memory.h220 : shared_memory_(shared_memory) { in SharedMemoryAutoLock()
221 shared_memory_->Lock(); in SharedMemoryAutoLock()
225 shared_memory_->Unlock(); in ~SharedMemoryAutoLock()
229 SharedMemory* shared_memory_;
/external/chromium_org/ppapi/shared_impl/
Dppb_audio_shared.cc112 shared_memory_.reset(new base::SharedMemory(shared_memory_handle, false)); in SetStreamInfo()
118 if (!shared_memory_->Map(shared_memory_size_)) { in SetStreamInfo()
126 kAudioOutputChannels, sample_frame_count, shared_memory_->memory()); in SetStreamInfo()
140 !shared_memory_->memory() || !audio_bus_.get() || !client_buffer_.get() || in StartThread()
146 memset(shared_memory_->memory(), 0, shared_memory_size_); in StartThread()
/external/chromium_org/content/browser/renderer_host/
Dsoftware_frame_manager.cc45 scoped_ptr<base::SharedMemory> shared_memory_; member in content::SoftwareFrame
62 shared_memory_(shared_memory.Pass()) {} in SoftwareFrame()
167 current_frame_->shared_memory_.get(), current_frame_->frame_size_pixels_); in GetCurrentFrameMailbox()
175 current_frame_->shared_memory_->handle())); in GetCurrentFramePixels()
176 return current_frame_->shared_memory_->memory(); in GetCurrentFramePixels()
/external/chromium/chrome/browser/extensions/
Duser_script_master_unittest.cc29 shared_memory_(NULL) { in UserScriptMasterTest()
54 shared_memory_ = Details<base::SharedMemory>(details).ptr(); in Observe()
70 base::SharedMemory* shared_memory_; member in UserScriptMasterTest
82 ASSERT_TRUE(shared_memory_ != NULL); in TEST_F()
101 ASSERT_TRUE(shared_memory_ != NULL); in TEST_F()
Duser_script_master.h39 return shared_memory_.get(); in GetSharedMemory()
46 bool ScriptsReady() const { return shared_memory_.get() != NULL; } in ScriptsReady()
142 scoped_ptr<base::SharedMemory> shared_memory_; variable
/external/chromium_org/base/memory/
Dshared_memory.h304 : shared_memory_(shared_memory) { in SharedMemoryAutoLock()
305 shared_memory_->Lock(); in SharedMemoryAutoLock()
309 shared_memory_->Unlock(); in ~SharedMemoryAutoLock()
313 SharedMemory* shared_memory_;
/external/chromium_org/ppapi/proxy/
Dgamepad_resource.cc109 shared_memory_.reset(new base::SharedMemory(handle, true)); in OnPluginMsgSendMemory()
110 CHECK(shared_memory_->Map(sizeof(ContentGamepadHardwareBuffer))); in OnPluginMsgSendMemory()
112 shared_memory_->memory()); in OnPluginMsgSendMemory()
/external/chromium_org/chrome/browser/extensions/
Duser_script_master.h48 return shared_memory_.get(); in GetSharedMemory()
55 bool ScriptsReady() const { return shared_memory_.get() != NULL; } in ScriptsReady()
148 scoped_ptr<base::SharedMemory> shared_memory_; variable
/external/chromium_org/content/renderer/device_orientation/
Ddevice_orientation_event_pump_unittest.cc63 EXPECT_TRUE(shared_memory_.CreateAndMapAnonymous( in DeviceOrientationEventPumpTest()
72 shared_memory_.memory()); in SetUp()
74 shared_memory_.ShareToProcess(base::kNullProcessHandle, &handle_); in SetUp()
91 base::SharedMemory shared_memory_; member in content::DeviceOrientationEventPumpTest
/external/chromium_org/chrome/renderer/extensions/
Duser_script_slave.cc151 shared_memory_.reset(new base::SharedMemory(shared_memory, true)); in UpdateScripts()
152 if (!shared_memory_.get()) in UpdateScripts()
156 if (!shared_memory_->Map(sizeof(Pickle::Header))) in UpdateScripts()
159 reinterpret_cast<Pickle::Header*>(shared_memory_->memory()); in UpdateScripts()
163 shared_memory_->Unmap(); in UpdateScripts()
164 if (!shared_memory_->Map(pickle_size)) in UpdateScripts()
169 Pickle pickle(reinterpret_cast<char*>(shared_memory_->memory()), in UpdateScripts()
/external/chromium_org/media/audio/
Daudio_output_device_unittest.cc119 SharedMemory shared_memory_; member in media::AudioOutputDeviceTest
172 ASSERT_TRUE(shared_memory_.CreateAndMapAnonymous(kMemorySize)); in CreateStream()
173 memset(shared_memory_.memory(), 0xff, kMemorySize); in CreateStream()
185 ASSERT_TRUE(shared_memory_.ShareToProcess(base::GetCurrentProcessHandle(), in CreateStream()

123