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

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: Remove obsolete code 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..74439215e89f3e5d2ee999e15adbec4b139f3221 100644
--- a/ui/ozone/platform/drm/gpu/gbm_buffer.h
+++ b/ui/ozone/platform/drm/gpu/gbm_buffer.h
@@ -10,6 +10,7 @@
#include "ui/gfx/buffer_types.h"
#include "ui/gfx/geometry/size.h"
#include "ui/ozone/platform/drm/gpu/gbm_buffer_base.h"
+#include "ui/ozone/platform/drm/gpu/overlay_plane.h"
#include "ui/ozone/public/native_pixmap.h"
struct gbm_bo;
@@ -70,10 +71,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);
+ bool CopyBuffer(const scoped_refptr<ScanoutBuffer>& source_buffer,
+ scoped_refptr<ScanoutBuffer>& target_buffer);
scoped_refptr<GbmBuffer> buffer_;
base::ScopedFD dma_buf_;
@@ -82,6 +81,7 @@ class GbmPixmap : public NativePixmap {
GbmSurfaceFactory* surface_manager_;
ProcessingCallback processing_callback_;
+ OverlayPlane::CopyBufferCallback copy_buffer_handler_;
DISALLOW_COPY_AND_ASSIGN(GbmPixmap);
};

Powered by Google App Engine
This is Rietveld 408576698