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

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

Issue 2533163002: ozone: Create GbmBuffers from fourcc formats and gbm flags. (Closed)
Patch Set: Make ozone_unittests compile. Created 4 years, 1 month 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 f4ff68a24a8c31eb84de634f6340c528710a184d..e38a50f75734788539dfb9eff1d5ed197c57ba28 100644
--- a/ui/ozone/platform/drm/gpu/gbm_buffer.h
+++ b/ui/ozone/platform/drm/gpu/gbm_buffer.h
@@ -25,17 +25,17 @@ class GbmBuffer : public GbmBufferBase {
public:
static scoped_refptr<GbmBuffer> CreateBuffer(
const scoped_refptr<GbmDevice>& gbm,
- gfx::BufferFormat format,
+ uint32_t format,
const gfx::Size& size,
- gfx::BufferUsage usage);
+ uint32_t usage);
static scoped_refptr<GbmBuffer> CreateBufferFromFds(
const scoped_refptr<GbmDevice>& gbm,
- gfx::BufferFormat format,
+ uint32_t format,
const gfx::Size& size,
std::vector<base::ScopedFD>&& fds,
const std::vector<gfx::NativePixmapPlane>& planes);
- gfx::BufferFormat GetFormat() const { return format_; }
- gfx::BufferUsage GetUsage() const { return usage_; }
+ uint32_t GetFormat() const { return format_; }
+ uint32_t GetFlags() const { return flags_; }
bool AreFdsValid() const;
size_t GetFdCount() const;
int GetFd(size_t plane) const;
@@ -48,15 +48,15 @@ class GbmBuffer : public GbmBufferBase {
private:
GbmBuffer(const scoped_refptr<GbmDevice>& gbm,
gbm_bo* bo,
- gfx::BufferFormat format,
- gfx::BufferUsage usage,
+ uint32_t format,
+ uint32_t flags,
std::vector<base::ScopedFD>&& fds,
const gfx::Size& size,
const std::vector<gfx::NativePixmapPlane>&& planes);
~GbmBuffer() override;
- gfx::BufferFormat format_;
- gfx::BufferUsage usage_;
+ uint32_t format_;
+ uint32_t flags_;
std::vector<base::ScopedFD> fds_;
gfx::Size size_;

Powered by Google App Engine
This is Rietveld 408576698