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

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

Issue 1134993003: ozone: Implement zero/one-copy texture for Ozone GBM. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: check that the configuration is returned by GetSupportedConfigurations() Created 5 years, 4 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
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 40500a604f8a10ed40790cccb67a61348d455023..7ac3bac51b5e9206993346ea06125f8bf91430c1 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
@@ -36,11 +36,15 @@ GpuMemoryBufferImplOzoneNativePixmap::CreateFromHandle(
}
bool GpuMemoryBufferImplOzoneNativePixmap::Map(void** data) {
- return pixmap_->Map(data);
+ bool result = pixmap_->Map(data);
+ if (result)
reveman 2015/08/11 20:15:16 can we DCHECK(result) instead?
dshwang 2015/08/12 08:57:35 Yes, done.
+ mapped_ = true;
+ return result;
}
void GpuMemoryBufferImplOzoneNativePixmap::Unmap() {
pixmap_->Unmap();
+ mapped_ = false;
}
void GpuMemoryBufferImplOzoneNativePixmap::GetStride(int* stride) const {
« no previous file with comments | « no previous file | ui/ozone/platform/drm/BUILD.gn » ('j') | ui/ozone/platform/drm/common/client_native_pixmap_factory_gbm.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698