| 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 ecc385e34b53e986c43ba2d1d8a6e8e994257eb7..71bc73d5fa76b2037239962818806fc4832adbec 100644
|
| --- a/ui/ozone/platform/drm/gpu/gbm_buffer.h
|
| +++ b/ui/ozone/platform/drm/gpu/gbm_buffer.h
|
| @@ -10,13 +10,14 @@
|
| #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/screen_manager.h"
|
| #include "ui/ozone/public/native_pixmap.h"
|
|
|
| struct gbm_bo;
|
|
|
| namespace ui {
|
|
|
| +class DrmThread;
|
| +class DrmWindow;
|
| class GbmDevice;
|
|
|
| class GbmBuffer : public GbmBufferBase {
|
| @@ -41,8 +42,7 @@ class GbmBuffer : public GbmBufferBase {
|
|
|
| class GbmPixmap : public NativePixmap {
|
| public:
|
| - GbmPixmap(const scoped_refptr<GbmBuffer>& buffer,
|
| - ScreenManager* screen_manager);
|
| + GbmPixmap(const scoped_refptr<GbmBuffer>& buffer, DrmThread* drm_thread);
|
| bool Initialize();
|
| void SetScalingCallback(const ScalingCallback& scaling_callback) override;
|
| scoped_refptr<NativePixmap> GetScaledPixmap(gfx::Size new_size) override;
|
| @@ -69,10 +69,13 @@ class GbmPixmap : public NativePixmap {
|
| scoped_refptr<GbmBuffer> buffer_;
|
| int dma_buf_ = -1;
|
|
|
| - ScreenManager* screen_manager_; // Not owned.
|
| + DrmThread* drm_thread_; // Not owned.
|
|
|
| ScalingCallback scaling_callback_;
|
|
|
| + gfx::AcceleratedWidget cached_widget_ = gfx::kNullAcceleratedWidget;
|
| + base::WeakPtr<DrmWindow> cached_window_;
|
| +
|
| DISALLOW_COPY_AND_ASSIGN(GbmPixmap);
|
| };
|
|
|
|
|