Chromium Code Reviews| Index: ui/ozone/platform/drm/gpu/native_pixmap_client_gbm.cc |
| diff --git a/ui/ozone/platform/drm/gpu/native_pixmap_client_gbm.cc b/ui/ozone/platform/drm/gpu/native_pixmap_client_gbm.cc |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..4b8a46071e9860475267b252d4e0ccc129ed49c0 |
| --- /dev/null |
| +++ b/ui/ozone/platform/drm/gpu/native_pixmap_client_gbm.cc |
| @@ -0,0 +1,41 @@ |
| +// 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/gpu/native_pixmap_client_gbm.h" |
| + |
| +#include "ui/ozone/public/native_pixmap_client.h" |
| + |
| +namespace ui { |
| + |
| +namespace { |
| + |
| +class NativePixmapClientGbm : public NativePixmapClient { |
| + public: |
| + NativePixmapClientGbm() {} |
| + ~NativePixmapClientGbm() override {} |
| + |
| + // NativePixmapClient: |
| + void Initialize() override { |
| + // TODO(dshwang): get VGEM fd. crbug.com/475633 |
|
dshwang
2015/06/03 14:11:51
This method will get VGEM fd from DrmDisplayHostMa
|
| + } |
| + |
| + std::vector<Configuration> GetSupportedNativePixmapConfigurations() |
| + const override { |
| + std::vector<Configuration> configurations = { |
| + {SurfaceFactoryOzone::BGRA_8888, SurfaceFactoryOzone::SCANOUT}, |
| + {SurfaceFactoryOzone::RGBX_8888, SurfaceFactoryOzone::SCANOUT}}; |
| + return configurations; |
| + } |
| + |
| + private: |
| + DISALLOW_COPY_AND_ASSIGN(NativePixmapClientGbm); |
| +}; |
| + |
| +} // namespace |
| + |
| +NativePixmapClient* CreateNativePixmapClientGbm() { |
| + return new NativePixmapClientGbm; |
| +} |
| + |
| +} // namespace ui |