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

Unified Diff: content/common/gpu/client/gpu_memory_buffer_impl_io_surface.cc

Issue 1486873002: Mac: Require child AllocateGpuMemoryBuffer to not fail (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add GPU proc as well Created 5 years, 1 month 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
Index: content/common/gpu/client/gpu_memory_buffer_impl_io_surface.cc
diff --git a/content/common/gpu/client/gpu_memory_buffer_impl_io_surface.cc b/content/common/gpu/client/gpu_memory_buffer_impl_io_surface.cc
index 9794bbfa47dedff6ba239452bb39143554ecfac5..d7fc2a492d75bc93f4e221e7f66d88e2b1a05a0f 100644
--- a/content/common/gpu/client/gpu_memory_buffer_impl_io_surface.cc
+++ b/content/common/gpu/client/gpu_memory_buffer_impl_io_surface.cc
@@ -55,8 +55,7 @@ GpuMemoryBufferImplIOSurface::CreateFromHandle(
const DestructionCallback& callback) {
base::ScopedCFTypeRef<IOSurfaceRef> io_surface(
gfx::IOSurfaceManager::GetInstance()->AcquireIOSurface(handle.id));
- if (!io_surface)
- return nullptr;
+ CHECK(io_surface);
reveman 2015/12/01 20:49:04 I think this needs to be able to fail without cras
return make_scoped_ptr(
new GpuMemoryBufferImplIOSurface(handle.id, size, format, callback,

Powered by Google App Engine
This is Rietveld 408576698