| Index: ui/ozone/platform/drm/gpu/gbm_surfaceless.h
|
| diff --git a/ui/ozone/platform/drm/gpu/gbm_surfaceless.h b/ui/ozone/platform/drm/gpu/gbm_surfaceless.h
|
| index 99abc24e9853caede3f6267340c91af8b04021fb..661133234df222925640bf7cf34465fa7fd9f39a 100644
|
| --- a/ui/ozone/platform/drm/gpu/gbm_surfaceless.h
|
| +++ b/ui/ozone/platform/drm/gpu/gbm_surfaceless.h
|
| @@ -7,6 +7,8 @@
|
|
|
| #include <vector>
|
|
|
| +#include "base/memory/weak_ptr.h"
|
| +#include "ui/gfx/buffer_types.h"
|
| #include "ui/gfx/native_widget_types.h"
|
| #include "ui/ozone/platform/drm/gpu/overlay_plane.h"
|
| #include "ui/ozone/public/surface_ozone_egl.h"
|
| @@ -19,6 +21,7 @@ namespace ui {
|
|
|
| class DrmWindowProxy;
|
| class GbmSurfaceFactory;
|
| +struct OverlayCheck_Params;
|
|
|
| // In surfaceless mode drawing and displaying happens directly through
|
| // NativePixmap buffers. CC would call into SurfaceFactoryOzone to allocate the
|
| @@ -32,6 +35,19 @@ class GbmSurfaceless : public SurfaceOzoneEGL {
|
|
|
| void QueueOverlayPlane(const OverlayPlane& plane);
|
|
|
| + // Returns optimal buffer configuration which can be supported by the display
|
| + // on which |window_| is shown.
|
| + void EvaluateBufferConfiguration(const gfx::Rect& display_rect,
|
| + const gfx::RectF& crop_rect,
|
| + const gfx::Size& buffer_size,
|
| + gfx::BufferFormat buffer_format,
|
| + gfx::OverlayTransform transform,
|
| + uint32_t z_order,
|
| + gfx::Size* target_size,
|
| + gfx::BufferFormat* target_format);
|
| +
|
| + void GetOverlayBufferConfigurations(
|
| + const std::vector<OverlayCheck_Params>& params);
|
| // SurfaceOzoneEGL:
|
| intptr_t GetNativeWindow() override;
|
| bool ResizeNativeWindow(const gfx::Size& viewport_size) override;
|
| @@ -46,6 +62,9 @@ class GbmSurfaceless : public SurfaceOzoneEGL {
|
| GbmSurfaceFactory* surface_manager_;
|
|
|
| std::vector<OverlayPlane> planes_;
|
| + std::vector<OverlayCheck_Params> overlay_params_;
|
| +
|
| + base::WeakPtrFactory<GbmSurfaceless> weak_ptr_factory_;
|
|
|
| DISALLOW_COPY_AND_ASSIGN(GbmSurfaceless);
|
| };
|
|
|