| Index: ui/ozone/platform/drm/common/native_pixmap_manager_gbm.h
|
| diff --git a/ui/ozone/platform/drm/common/native_pixmap_manager_gbm.h b/ui/ozone/platform/drm/common/native_pixmap_manager_gbm.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..a5f6aa28b0de08011cc0d810ffb20ceb891c33a1
|
| --- /dev/null
|
| +++ b/ui/ozone/platform/drm/common/native_pixmap_manager_gbm.h
|
| @@ -0,0 +1,34 @@
|
| +// Copyright 2015 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef UI_OZONE_PLATFORM_DRM_COMMON_NATIVE_PIXMAP_MANAGER_GBM_H_
|
| +#define UI_OZONE_PLATFORM_DRM_COMMON_NATIVE_PIXMAP_MANAGER_GBM_H_
|
| +
|
| +#include "base/files/scoped_file.h"
|
| +#include "ui/ozone/public/native_pixmap_manager.h"
|
| +
|
| +namespace ui {
|
| +
|
| +// Constructor hook for use in constructor_list.cc
|
| +NativePixmapManager* CreateNativePixmapManagerGbm();
|
| +
|
| +class NativePixmapManagerGbm : public NativePixmapManager {
|
| + public:
|
| + NativePixmapManagerGbm();
|
| + ~NativePixmapManagerGbm() override;
|
| +
|
| + // NativePixmapManager:
|
| + void Initialize(const base::FileDescriptor& device_fd) override;
|
| + std::vector<Configuration> GetSupportedNativePixmapConfigurations()
|
| + const override;
|
| +
|
| + private:
|
| + base::ScopedFD vgem_fd_;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(NativePixmapManagerGbm);
|
| +};
|
| +
|
| +} // namespace ui
|
| +
|
| +#endif // UI_OZONE_PLATFORM_DRM_COMMON_NATIVE_PIXMAP_MANAGER_GBM_H_
|
|
|