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, |