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

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

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/gbm_buffer.h
diff --git a/ui/ozone/platform/drm/gpu/gbm_buffer.h b/ui/ozone/platform/drm/gpu/gbm_buffer.h
index e38a50f75734788539dfb9eff1d5ed197c57ba28..74a2f0c0a7df624bd79fdf03d5810ae4ac21d519 100644
--- a/ui/ozone/platform/drm/gpu/gbm_buffer.h
+++ b/ui/ozone/platform/drm/gpu/gbm_buffer.h
@@ -28,6 +28,12 @@ class GbmBuffer : public GbmBufferBase {
uint32_t format,
const gfx::Size& size,
uint32_t usage);
+ static scoped_refptr<GbmBuffer> CreateBufferWithModifiers(
Daniele Castagna 2016/12/16 00:27:41 Why do we need CreateBufferWithModifiers? Can't we
hoegsberg1 2016/12/17 01:10:49 Hm, I suppose we could just do that. It's a little
dnicoara 2016/12/19 19:44:46 Should |flags| be removed from the definition then
+ const scoped_refptr<GbmDevice>& gbm,
+ uint32_t format,
+ const gfx::Size& size,
+ uint32_t flags,
+ const uint64_t *modifiers, uint32_t nmodifiers);
static scoped_refptr<GbmBuffer> CreateBufferFromFds(
const scoped_refptr<GbmDevice>& gbm,
uint32_t format,
@@ -50,6 +56,7 @@ class GbmBuffer : public GbmBufferBase {
gbm_bo* bo,
uint32_t format,
uint32_t flags,
+ uint64_t modifier,
std::vector<base::ScopedFD>&& fds,
const gfx::Size& size,
const std::vector<gfx::NativePixmapPlane>&& planes);
@@ -57,6 +64,7 @@ class GbmBuffer : public GbmBufferBase {
uint32_t format_;
uint32_t flags_;
+ uint64_t modifier_;
std::vector<base::ScopedFD> fds_;
gfx::Size size_;

Powered by Google App Engine
This is Rietveld 408576698