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

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

Issue 1314553002: Move Format checks to HardwareDisplayPlane (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review fixes Created 5 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 | « no previous file | ui/ozone/platform/drm/gpu/drm_buffer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/platform/drm/gpu/drm_buffer.h
diff --git a/ui/ozone/platform/drm/gpu/drm_buffer.h b/ui/ozone/platform/drm/gpu/drm_buffer.h
index 676ed30e71dbac9d4850eb8aa82303a7e4bd7171..76027b64a35f3b0b4418cdc23d0cb9bc9fbb62e4 100644
--- a/ui/ozone/platform/drm/gpu/drm_buffer.h
+++ b/ui/ozone/platform/drm/gpu/drm_buffer.h
@@ -32,9 +32,9 @@ class OZONE_EXPORT DrmBuffer : public ScanoutBuffer {
// ScanoutBuffer:
uint32_t GetFramebufferId() const override;
+ uint32_t GetFramebufferPixelFormat() const override;
uint32_t GetHandle() const override;
gfx::Size GetSize() const override;
- uint32_t GetFormat() const override;
protected:
~DrmBuffer() override;
@@ -57,6 +57,9 @@ class OZONE_EXPORT DrmBuffer : public ScanoutBuffer {
// registered with the CRTC.
uint32_t framebuffer_ = 0;
+ // Pixel format of |framebuffer_|
+ uint32_t fb_pixel_format_ = 0;
+
// Wrapper around the native pixel memory.
skia::RefPtr<SkSurface> surface_;
« no previous file with comments | « no previous file | ui/ozone/platform/drm/gpu/drm_buffer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698