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

Unified Diff: ui/ozone/platform/drm/gpu/gbm_buffer.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/drm_window_unittest.cc ('k') | ui/ozone/platform/drm/gpu/gbm_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/gbm_buffer.h
diff --git a/ui/ozone/platform/drm/gpu/gbm_buffer.h b/ui/ozone/platform/drm/gpu/gbm_buffer.h
index 2be65dda871734260230a9f0d683a85bfb5008e6..62bae8b926f8b64db01956b6b397a77ee2f3b45b 100644
--- a/ui/ozone/platform/drm/gpu/gbm_buffer.h
+++ b/ui/ozone/platform/drm/gpu/gbm_buffer.h
@@ -70,10 +70,8 @@ class GbmPixmap : public NativePixmap {
private:
~GbmPixmap() override;
- bool ShouldApplyProcessing(const gfx::Rect& display_bounds,
- const gfx::RectF& crop_rect,
- gfx::Size* target_size,
- gfx::BufferFormat* target_format);
+ scoped_refptr<ScanoutBuffer> ProcessBuffer(const gfx::Size& size,
+ uint32_t format);
scoped_refptr<GbmBuffer> buffer_;
base::ScopedFD dma_buf_;
@@ -81,6 +79,9 @@ class GbmPixmap : public NativePixmap {
GbmSurfaceFactory* surface_manager_;
+ // OverlayValidator can request scaling or format conversions as needed for
+ // this Pixmap. This holds the processed buffer.
+ scoped_refptr<GbmPixmap> processed_pixmap_;
ProcessingCallback processing_callback_;
DISALLOW_COPY_AND_ASSIGN(GbmPixmap);
« no previous file with comments | « ui/ozone/platform/drm/gpu/drm_window_unittest.cc ('k') | ui/ozone/platform/drm/gpu/gbm_buffer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698