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

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

Issue 2576263002: ozone: Allocate scanout buffer according to KMS modifiers (Closed)
Patch Set: ozone: Allocate scanout buffer according to KMS modifiers Created 4 years 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: ui/ozone/platform/drm/gpu/drm_buffer.cc
diff --git a/ui/ozone/platform/drm/gpu/drm_buffer.cc b/ui/ozone/platform/drm/gpu/drm_buffer.cc
index 3acbe62c93e76eebf296c0188185d3a2c1dad08b..0a0d27c8e7a0f625b0fb0241136792969c187209 100644
--- a/ui/ozone/platform/drm/gpu/drm_buffer.cc
+++ b/ui/ozone/platform/drm/gpu/drm_buffer.cc
@@ -71,7 +71,7 @@ bool DrmBuffer::Initialize(const SkImageInfo& info,
uint32_t offsets[4] = {0};
fb_pixel_format_ = GetFourCCCodeForSkColorType(info.colorType());
if (!drm_->AddFramebuffer2(info.width(), info.height(), fb_pixel_format_,
- handles, strides, offsets, &framebuffer_, 0)) {
+ handles, strides, offsets, NULL, &framebuffer_, 0)) {
Daniele Castagna 2016/12/16 00:27:41 nit: nullptr
hoegsberg1 2016/12/17 01:10:49 Acknowledged.
PLOG(ERROR) << "DrmBuffer: AddFramebuffer2: handle " << handle_;
return false;
}

Powered by Google App Engine
This is Rietveld 408576698