Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(334)

Side by Side Diff: ui/ozone/platform/drm/common/client_native_pixmap_manager_gbm.cc

Issue 1128113011: ozone: Introduce ClientPixmap and ClientPixmapFactory for non-GPU processes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressed nits Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698