| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 // Implementation of a client that produces output in the form of RGBA | 5 // Implementation of a client that produces output in the form of RGBA |
| 6 // buffers when receiving pointer/touch events. RGB contains the lower | 6 // buffers when receiving pointer/touch events. RGB contains the lower |
| 7 // 24 bits of the event timestamp and A is 0xff. | 7 // 24 bits of the event timestamp and A is 0xff. |
| 8 | 8 |
| 9 #include <fcntl.h> | 9 #include <fcntl.h> |
| 10 #include <linux-dmabuf-unstable-v1-client-protocol.h> | 10 #include <linux-dmabuf-unstable-v1-client-protocol.h> |
| (...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 338 const size_t height_; | 338 const size_t height_; |
| 339 const int scale_; | 339 const int scale_; |
| 340 const size_t num_rects_; | 340 const size_t num_rects_; |
| 341 const size_t max_frames_pending_; | 341 const size_t max_frames_pending_; |
| 342 const bool fullscreen_; | 342 const bool fullscreen_; |
| 343 const bool show_fps_counter_; | 343 const bool show_fps_counter_; |
| 344 const size_t num_benchmark_runs_; | 344 const size_t num_benchmark_runs_; |
| 345 const base::TimeDelta benchmark_interval_; | 345 const base::TimeDelta benchmark_interval_; |
| 346 const std::string* use_drm_; | 346 const std::string* use_drm_; |
| 347 | 347 |
| 348 std::unique_ptr<wl_display> display_; |
| 348 Globals globals_; | 349 Globals globals_; |
| 349 std::unique_ptr<wl_display> display_; | |
| 350 | 350 |
| 351 #if defined(OZONE_PLATFORM_GBM) | 351 #if defined(OZONE_PLATFORM_GBM) |
| 352 base::ScopedFD drm_fd_; | 352 base::ScopedFD drm_fd_; |
| 353 std::unique_ptr<gbm_device> device_; | 353 std::unique_ptr<gbm_device> device_; |
| 354 #endif | 354 #endif |
| 355 | 355 |
| 356 scoped_refptr<gl::GLSurface> gl_surface_; | 356 scoped_refptr<gl::GLSurface> gl_surface_; |
| 357 scoped_refptr<gl::GLContext> gl_context_; | 357 scoped_refptr<gl::GLContext> gl_context_; |
| 358 std::unique_ptr<ui::ScopedMakeCurrent> make_current_; | 358 std::unique_ptr<ui::ScopedMakeCurrent> make_current_; |
| 359 | 359 |
| (...skipping 539 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 899 new std::string(command_line->GetSwitchValueASCII(switches::kUseDrm))); | 899 new std::string(command_line->GetSwitchValueASCII(switches::kUseDrm))); |
| 900 } | 900 } |
| 901 | 901 |
| 902 exo::wayland::clients::MotionEvents client( | 902 exo::wayland::clients::MotionEvents client( |
| 903 width, height, scale, num_rects, max_frames_pending, | 903 width, height, scale, num_rects, max_frames_pending, |
| 904 command_line->HasSwitch(switches::kFullscreen), | 904 command_line->HasSwitch(switches::kFullscreen), |
| 905 command_line->HasSwitch(switches::kShowFpsCounter), num_benchmark_runs, | 905 command_line->HasSwitch(switches::kShowFpsCounter), num_benchmark_runs, |
| 906 base::TimeDelta::FromMilliseconds(benchmark_interval_ms), use_drm.get()); | 906 base::TimeDelta::FromMilliseconds(benchmark_interval_ms), use_drm.get()); |
| 907 return client.Run(); | 907 return client.Run(); |
| 908 } | 908 } |
| OLD | NEW |