Index: content/common/gpu/client/gpu_memory_buffer_impl_ozone_native_pixmap.cc |
diff --git a/content/common/gpu/client/gpu_memory_buffer_impl_ozone_native_pixmap.cc b/content/common/gpu/client/gpu_memory_buffer_impl_ozone_native_pixmap.cc |
index 68b8fa43c233cde845d189b81e4d374e02b9b201..5a617652a9bee42880769401d695a420e953269f 100644 |
--- a/content/common/gpu/client/gpu_memory_buffer_impl_ozone_native_pixmap.cc |
+++ b/content/common/gpu/client/gpu_memory_buffer_impl_ozone_native_pixmap.cc |
@@ -38,11 +38,15 @@ GpuMemoryBufferImplOzoneNativePixmap::CreateFromHandle( |
} |
bool GpuMemoryBufferImplOzoneNativePixmap::Map(void** data) { |
- return pixmap_->Map(data); |
+ bool result = pixmap_->Map(data); |
+ DCHECK(result); |
+ mapped_ = true; |
+ return result; |
reveman
2015/08/12 22:32:25
nit: return true;
|
} |
void GpuMemoryBufferImplOzoneNativePixmap::Unmap() { |
pixmap_->Unmap(); |
+ mapped_ = false; |
} |
void GpuMemoryBufferImplOzoneNativePixmap::GetStride(int* stride) const { |