Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(410)

Unified Diff: content/renderer/media/renderer_gpu_video_accelerator_factories.cc

Issue 2010563004: content: Not all memory creation failures are out of memory errors. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/child/child_thread_impl.cc ('k') | content/renderer/render_thread_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/renderer_gpu_video_accelerator_factories.cc
diff --git a/content/renderer/media/renderer_gpu_video_accelerator_factories.cc b/content/renderer/media/renderer_gpu_video_accelerator_factories.cc
index e4d1975b3b84e28599e8e73dac7dfc9a582a5747..613e21504cafc9884246dde9d8a8bbb408afc408 100644
--- a/content/renderer/media/renderer_gpu_video_accelerator_factories.cc
+++ b/content/renderer/media/renderer_gpu_video_accelerator_factories.cc
@@ -264,8 +264,8 @@ RendererGpuVideoAcceleratorFactories::GetGLContextLock() {
std::unique_ptr<base::SharedMemory>
RendererGpuVideoAcceleratorFactories::CreateSharedMemory(size_t size) {
- std::unique_ptr<base::SharedMemory> mem(
- ChildThreadImpl::AllocateSharedMemory(size, thread_safe_sender_.get()));
+ std::unique_ptr<base::SharedMemory> mem(ChildThreadImpl::AllocateSharedMemory(
+ size, thread_safe_sender_.get(), nullptr));
if (mem && !mem->Map(size))
return nullptr;
return mem;
« no previous file with comments | « content/child/child_thread_impl.cc ('k') | content/renderer/render_thread_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698