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 #include "components/exo/wayland/clients/client_base.h" | 5 #include "components/exo/wayland/clients/client_base.h" |
6 | 6 |
7 #include <fcntl.h> | 7 #include <fcntl.h> |
8 #include <linux-dmabuf-unstable-v1-client-protocol.h> | 8 #include <linux-dmabuf-unstable-v1-client-protocol.h> |
9 #include <presentation-time-client-protocol.h> | 9 #include <presentation-time-client-protocol.h> |
10 #include <wayland-client-core.h> | 10 #include <wayland-client-core.h> |
(...skipping 16 matching lines...) Expand all Loading... |
27 #include "ui/gl/gl_bindings.h" | 27 #include "ui/gl/gl_bindings.h" |
28 #include "ui/gl/gl_enums.h" | 28 #include "ui/gl/gl_enums.h" |
29 #include "ui/gl/gl_surface_egl.h" | 29 #include "ui/gl/gl_surface_egl.h" |
30 #include "ui/gl/init/gl_factory.h" | 30 #include "ui/gl/init/gl_factory.h" |
31 | 31 |
32 #if defined(OZONE_PLATFORM_GBM) | 32 #if defined(OZONE_PLATFORM_GBM) |
33 #include <drm_fourcc.h> | 33 #include <drm_fourcc.h> |
34 #include <gbm.h> | 34 #include <gbm.h> |
35 #include <xf86drm.h> | 35 #include <xf86drm.h> |
36 | 36 |
37 #include "ui/ozone/public/ozone_platform.h" | 37 #include "ui/ozone/public/ozone_platform.h" // nogncheck |
38 #endif | 38 #endif |
39 | 39 |
40 namespace exo { | 40 namespace exo { |
41 namespace wayland { | 41 namespace wayland { |
42 namespace clients { | 42 namespace clients { |
43 namespace switches { | 43 namespace switches { |
44 | 44 |
45 // Specifies the client buffer size. | 45 // Specifies the client buffer size. |
46 const char kSize[] = "size"; | 46 const char kSize[] = "size"; |
47 | 47 |
(...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
464 buffer->sk_surface = SkSurface::MakeRasterDirect( | 464 buffer->sk_surface = SkSurface::MakeRasterDirect( |
465 SkImageInfo::Make(width_, height_, kColorType, kOpaque_SkAlphaType), | 465 SkImageInfo::Make(width_, height_, kColorType, kOpaque_SkAlphaType), |
466 static_cast<uint8_t*>(buffer->shared_memory->memory()), stride); | 466 static_cast<uint8_t*>(buffer->shared_memory->memory()), stride); |
467 DCHECK(buffer->sk_surface); | 467 DCHECK(buffer->sk_surface); |
468 return buffer; | 468 return buffer; |
469 } | 469 } |
470 | 470 |
471 } // namespace clients | 471 } // namespace clients |
472 } // namespace wayland | 472 } // namespace wayland |
473 } // namespace exo | 473 } // namespace exo |
OLD | NEW |