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

Unified Diff: ui/ozone/platform/drm/gpu/gbm_buffer.cc

Issue 2298353002: gfx: Use unsigned strides for gpu memory buffers. (Closed)
Patch Set: . Created 4 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
« no previous file with comments | « ui/ozone/platform/drm/common/client_native_pixmap_dmabuf.cc ('k') | ui/ozone/public/client_native_pixmap.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/platform/drm/gpu/gbm_buffer.cc
diff --git a/ui/ozone/platform/drm/gpu/gbm_buffer.cc b/ui/ozone/platform/drm/gpu/gbm_buffer.cc
index 2235b707906932e5a9d4b7550b0d330c4cb41734..41cfdb7dbea1ff563cfb7ede1a2af90f2709584e 100644
--- a/ui/ozone/platform/drm/gpu/gbm_buffer.cc
+++ b/ui/ozone/platform/drm/gpu/gbm_buffer.cc
@@ -152,7 +152,7 @@ scoped_refptr<GbmBuffer> GbmBuffer::CreateBufferFromFds(
TRACE_EVENT2("drm", "GbmBuffer::CreateBufferFromFD", "device",
gbm->device_path().value(), "size", size.ToString());
DCHECK_LE(fds.size(), planes.size());
- DCHECK_EQ(planes[0].offset, 0);
+ DCHECK_EQ(planes[0].offset, 0u);
uint32_t fourcc_format = GetFourCCFormatFromBufferFormat(format);
« no previous file with comments | « ui/ozone/platform/drm/common/client_native_pixmap_dmabuf.cc ('k') | ui/ozone/public/client_native_pixmap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698