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

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

Issue 1422563002: [Ozone] Enables overlay render format setting path and by default use UYVY (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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_device.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 a8edaad083cbebac7580353dac2d686cba0c70c1..d63963d8a041d8479475194bd00cc3e1723130e1 100644
--- a/ui/ozone/platform/drm/gpu/gbm_buffer.h
+++ b/ui/ozone/platform/drm/gpu/gbm_buffer.h
@@ -44,13 +44,17 @@ class GbmPixmap : public NativePixmap {
explicit GbmPixmap(GbmSurfaceFactory* surface_manager);
void Initialize(base::ScopedFD dma_buf, int dma_buf_pitch);
bool InitializeFromBuffer(const scoped_refptr<GbmBuffer>& buffer);
- void SetScalingCallback(const ScalingCallback& scaling_callback) override;
- scoped_refptr<NativePixmap> GetScaledPixmap(gfx::Size new_size) override;
+ void SetProcessingCallback(
+ const ProcessingCallback& processing_callback) override;
+ scoped_refptr<NativePixmap> GetProcessedPixmap(
+ gfx::Size target_size,
+ gfx::BufferFormat target_format) override;
// NativePixmap:
void* GetEGLClientBuffer() override;
int GetDmaBufFd() override;
int GetDmaBufPitch() override;
+ gfx::BufferFormat GetBufferFormat() override;
bool ScheduleOverlayPlane(gfx::AcceleratedWidget widget,
int plane_z_order,
gfx::OverlayTransform plane_transform,
@@ -62,9 +66,10 @@ class GbmPixmap : public NativePixmap {
private:
~GbmPixmap() override;
- bool ShouldApplyScaling(const gfx::Rect& display_bounds,
- const gfx::RectF& crop_rect,
- gfx::Size* required_size);
+ bool ShouldApplyProcessing(const gfx::Rect& display_bounds,
+ const gfx::RectF& crop_rect,
+ gfx::Size* target_size,
+ gfx::BufferFormat* target_format);
scoped_refptr<GbmBuffer> buffer_;
base::ScopedFD dma_buf_;
@@ -72,7 +77,7 @@ class GbmPixmap : public NativePixmap {
GbmSurfaceFactory* surface_manager_;
- ScalingCallback scaling_callback_;
+ ProcessingCallback processing_callback_;
DISALLOW_COPY_AND_ASSIGN(GbmPixmap);
};
« no previous file with comments | « ui/ozone/platform/drm/gpu/drm_device.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