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

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

Issue 1426993003: Ozone: Dont hardcode format to YUV when using Overlay Composition. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review fixes Created 4 years, 11 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/gpu/gbm_buffer.cc ('k') | ui/ozone/platform/drm/gpu/gbm_buffer_base.cc » ('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_base.h
diff --git a/ui/ozone/platform/drm/gpu/gbm_buffer_base.h b/ui/ozone/platform/drm/gpu/gbm_buffer_base.h
index 0539cc3d3c0df9e46a8ae001e15bdeae18e3df65..61f00aea4902c20a780d4ecf57d926843c74a63b 100644
--- a/ui/ozone/platform/drm/gpu/gbm_buffer_base.h
+++ b/ui/ozone/platform/drm/gpu/gbm_buffer_base.h
@@ -14,7 +14,7 @@ struct gbm_bo;
namespace ui {
-class DrmDevice;
+class GbmDevice;
// Wrapper for a GBM buffer. The base class provides common functionality
// required to prepare the buffer for scanout. It does not provide any ownership
@@ -23,6 +23,7 @@ class DrmDevice;
class GbmBufferBase : public ScanoutBuffer {
public:
gbm_bo* bo() const { return bo_; }
+ const scoped_refptr<GbmDevice>& drm() const { return drm_; }
// ScanoutBuffer:
uint32_t GetFramebufferId() const override;
@@ -32,14 +33,14 @@ class GbmBufferBase : public ScanoutBuffer {
bool RequiresGlFinish() const override;
protected:
- GbmBufferBase(const scoped_refptr<DrmDevice>& drm,
+ GbmBufferBase(const scoped_refptr<GbmDevice>& drm,
gbm_bo* bo,
gfx::BufferFormat format,
gfx::BufferUsage usage);
~GbmBufferBase() override;
private:
- scoped_refptr<DrmDevice> drm_;
+ scoped_refptr<GbmDevice> drm_;
gbm_bo* bo_;
uint32_t framebuffer_ = 0;
uint32_t framebuffer_pixel_format_ = 0;
« no previous file with comments | « ui/ozone/platform/drm/gpu/gbm_buffer.cc ('k') | ui/ozone/platform/drm/gpu/gbm_buffer_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698