OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #include "ui/ozone/platform/drm/common/client_native_pixmap_manager_gbm.h" | |
6 | |
7 #include "base/file_descriptor_posix.h" | |
8 #include "ui/ozone/public/client_native_pixmap_manager.h" | |
9 | |
10 namespace ui { | |
11 | |
12 namespace { | |
13 | |
14 class ClientNativePixmapManagerGbm : public ClientNativePixmapManager { | |
15 public: | |
16 ClientNativePixmapManagerGbm() {} | |
17 ~ClientNativePixmapManagerGbm() override {} | |
18 | |
19 // ClientNativePixmapManager: | |
20 std::vector<Configuration> GetSupportedConfigurations() const override { | |
21 std::vector<Configuration> configurations = { | |
dcheng
2015/07/31 18:09:52
Braced initialization of std::vector isn't allowed
dshwang
2015/07/31 18:59:29
as google-styleguide, braced initializer list is a
dcheng
2015/07/31 19:02:39
https://chromium-cpp.appspot.com/
dshwang
2015/08/03 12:51:48
I see. Thx. Done.
| |
22 {NATIVE_PIXMAP_FORMAT_BGRA_8888, NATIVE_PIXMAP_USAGE_SCANOUT}, | |
23 {NATIVE_PIXMAP_FORMAT_RGBX_8888, NATIVE_PIXMAP_USAGE_SCANOUT}}; | |
24 return configurations; | |
25 } | |
26 scoped_ptr<ClientNativePixmap> ImportNativePixmap( | |
27 const base::FileDescriptor& handle, | |
28 const gfx::Size& size, | |
29 NativePixmapFormat format, | |
30 NativePixmapUsage usage) override { | |
31 NOTIMPLEMENTED(); | |
32 return nullptr; | |
33 } | |
34 | |
35 private: | |
36 DISALLOW_COPY_AND_ASSIGN(ClientNativePixmapManagerGbm); | |
37 }; | |
38 | |
39 } // namespace | |
40 | |
41 ClientNativePixmapManager* CreateClientNativePixmapManagerGbm() { | |
42 return new ClientNativePixmapManagerGbm(); | |
43 } | |
44 | |
45 } // namespace ui | |
OLD | NEW |