| Index: ui/ozone/platform/drm/common/client_native_pixmap_manager_gbm.cc
|
| diff --git a/ui/ozone/platform/drm/common/client_native_pixmap_manager_gbm.cc b/ui/ozone/platform/drm/common/client_native_pixmap_manager_gbm.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..c73c4ddf10dce5c586d30b1d7a9247457d6e6756
|
| --- /dev/null
|
| +++ b/ui/ozone/platform/drm/common/client_native_pixmap_manager_gbm.cc
|
| @@ -0,0 +1,45 @@
|
| +// 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.
|
| +
|
| +#include "ui/ozone/platform/drm/common/client_native_pixmap_manager_gbm.h"
|
| +
|
| +#include "base/file_descriptor_posix.h"
|
| +#include "ui/ozone/public/client_native_pixmap_manager.h"
|
| +
|
| +namespace ui {
|
| +
|
| +namespace {
|
| +
|
| +class ClientNativePixmapManagerGbm : public ClientNativePixmapManager {
|
| + public:
|
| + ClientNativePixmapManagerGbm() {}
|
| + ~ClientNativePixmapManagerGbm() override {}
|
| +
|
| + // ClientNativePixmapManager:
|
| + std::vector<Configuration> GetSupportedConfigurations() const override {
|
| + std::vector<Configuration> configurations = {
|
| + {NATIVE_PIXMAP_FORMAT_BGRA_8888, NATIVE_PIXMAP_USAGE_SCANOUT},
|
| + {NATIVE_PIXMAP_FORMAT_RGBX_8888, NATIVE_PIXMAP_USAGE_SCANOUT}};
|
| + return configurations;
|
| + }
|
| + scoped_ptr<ClientNativePixmap> ImportClientNativePixmap(
|
| + base::FileDescriptor handle,
|
| + gfx::Size size,
|
| + NativePixmapFormat format,
|
| + NativePixmapUsage usage) override {
|
| + NOTIMPLEMENTED();
|
| + return nullptr;
|
| + }
|
| +
|
| + private:
|
| + DISALLOW_COPY_AND_ASSIGN(ClientNativePixmapManagerGbm);
|
| +};
|
| +
|
| +} // namespace
|
| +
|
| +ClientNativePixmapManager* CreateClientNativePixmapManagerGbm() {
|
| + return new ClientNativePixmapManagerGbm();
|
| +}
|
| +
|
| +} // namespace ui
|
|
|