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

Side by Side Diff: components/exo/wayland/clients/client_base.h

Issue 2804643003: exo: advertise supported formats to linux_dmabuf clients
Patch Set: indent fixup Created 3 years, 8 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
« no previous file with comments | « no previous file | components/exo/wayland/clients/client_base.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef COMPONENTS_EXO_WAYLAND_CLIENTS_CLIENT_BASE_H_ 5 #ifndef COMPONENTS_EXO_WAYLAND_CLIENTS_CLIENT_BASE_H_
6 #define COMPONENTS_EXO_WAYLAND_CLIENTS_CLIENT_BASE_H_ 6 #define COMPONENTS_EXO_WAYLAND_CLIENTS_CLIENT_BASE_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 25 matching lines...) Expand all
36 std::string title = "Wayland Client"; 36 std::string title = "Wayland Client";
37 size_t num_buffers = 8; 37 size_t num_buffers = 8;
38 size_t width = 256; 38 size_t width = 256;
39 size_t height = 256; 39 size_t height = 256;
40 int scale = 1; 40 int scale = 1;
41 bool fullscreen = false; 41 bool fullscreen = false;
42 bool transparent_background = false; 42 bool transparent_background = false;
43 bool use_drm = false; 43 bool use_drm = false;
44 std::string use_drm_value; 44 std::string use_drm_value;
45 int32_t drm_format = 0; 45 int32_t drm_format = 0;
46 zwp_linux_dmabuf_v1_listener dmabuf_listener;
46 }; 47 };
47 48
48 struct Globals { 49 struct Globals {
49 Globals(); 50 Globals();
50 ~Globals(); 51 ~Globals();
51 52
52 std::unique_ptr<wl_compositor> compositor; 53 std::unique_ptr<wl_compositor> compositor;
53 std::unique_ptr<wl_shm> shm; 54 std::unique_ptr<wl_shm> shm;
54 std::unique_ptr<wp_presentation> presentation; 55 std::unique_ptr<wp_presentation> presentation;
55 std::unique_ptr<zwp_linux_dmabuf_v1> linux_dmabuf; 56 std::unique_ptr<zwp_linux_dmabuf_v1> linux_dmabuf;
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 std::unique_ptr<Buffer> CreateBuffer(int32_t drm_format); 107 std::unique_ptr<Buffer> CreateBuffer(int32_t drm_format);
107 108
108 DISALLOW_COPY_AND_ASSIGN(ClientBase); 109 DISALLOW_COPY_AND_ASSIGN(ClientBase);
109 }; 110 };
110 111
111 } // namespace clients 112 } // namespace clients
112 } // namespace wayland 113 } // namespace wayland
113 } // namespace exo 114 } // namespace exo
114 115
115 #endif // COMPONENTS_EXO_WAYLAND_CLIENTS_CLIENT_BASE_H_ 116 #endif // COMPONENTS_EXO_WAYLAND_CLIENTS_CLIENT_BASE_H_
OLDNEW
« no previous file with comments | « no previous file | components/exo/wayland/clients/client_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698