diff options
Diffstat (limited to 'ui/ozone/platform/drm/gpu/gbm_buffer.h')
-rw-r--r-- | ui/ozone/platform/drm/gpu/gbm_buffer.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ui/ozone/platform/drm/gpu/gbm_buffer.h b/ui/ozone/platform/drm/gpu/gbm_buffer.h index 3f0c5d7..4f420e7 100644 --- a/ui/ozone/platform/drm/gpu/gbm_buffer.h +++ b/ui/ozone/platform/drm/gpu/gbm_buffer.h @@ -39,6 +39,8 @@ class GbmPixmap : public NativePixmap { GbmPixmap(const scoped_refptr<GbmBuffer>& buffer, ScreenManager* screen_manager); bool Initialize(); + void SetScalingCallback(const ScalingCallback& scaling_callback) override; + scoped_refptr<NativePixmap> GetScaledPixmap(gfx::Size new_size) override; // NativePixmap: void* GetEGLClientBuffer() override; @@ -54,12 +56,17 @@ class GbmPixmap : public NativePixmap { private: ~GbmPixmap() override; + bool ShouldApplyScaling(const gfx::Rect& display_bounds, + const gfx::RectF& crop_rect, + gfx::Size* required_size); scoped_refptr<GbmBuffer> buffer_; int dma_buf_ = -1; ScreenManager* screen_manager_; // Not owned. + ScalingCallback scaling_callback_; + DISALLOW_COPY_AND_ASSIGN(GbmPixmap); }; |