| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |