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

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: Comments 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
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..e0ac1bc5b5062efeffb00e3d5f2f8441b4b6a414 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,7 @@ class GbmPixmap : public NativePixmap {
GbmSurfaceFactory* surface_manager_;
+ scoped_refptr<GbmPixmap> processed_pixmap_;
dnicoara 2016/01/14 19:30:02 nit: Would you mind adding a comment for this.
kalyank 2016/01/14 20:36:54 Done.
ProcessingCallback processing_callback_;
DISALLOW_COPY_AND_ASSIGN(GbmPixmap);

Powered by Google App Engine
This is Rietveld 408576698