OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "ui/ozone/platform/drm/gpu/gbm_buffer.h" | 5 #include "ui/ozone/platform/drm/gpu/gbm_buffer.h" |
6 | 6 |
7 #include <drm.h> | 7 #include <drm.h> |
8 #include <fcntl.h> | 8 #include <fcntl.h> |
9 #include <gbm.h> | 9 #include <gbm.h> |
10 #include <xf86drm.h> | 10 #include <xf86drm.h> |
11 #include <utility> | 11 #include <utility> |
12 | 12 |
13 #include "base/logging.h" | 13 #include "base/logging.h" |
14 #include "base/posix/eintr_wrapper.h" | 14 #include "base/posix/eintr_wrapper.h" |
15 #include "base/trace_event/trace_event.h" | 15 #include "base/trace_event/trace_event.h" |
16 #include "ui/gfx/buffer_format_util.h" | 16 #include "ui/gfx/buffer_format_util.h" |
17 #include "ui/gfx/geometry/size_conversions.h" | 17 #include "ui/gfx/geometry/size_conversions.h" |
18 #include "ui/gfx/native_pixmap_handle_ozone.h" | 18 #include "ui/gfx/native_pixmap_handle.h" |
19 #include "ui/ozone/platform/drm/common/drm_util.h" | 19 #include "ui/ozone/platform/drm/common/drm_util.h" |
20 #include "ui/ozone/platform/drm/gpu/drm_window.h" | 20 #include "ui/ozone/platform/drm/gpu/drm_window.h" |
21 #include "ui/ozone/platform/drm/gpu/gbm_device.h" | 21 #include "ui/ozone/platform/drm/gpu/gbm_device.h" |
22 #include "ui/ozone/platform/drm/gpu/gbm_surface_factory.h" | 22 #include "ui/ozone/platform/drm/gpu/gbm_surface_factory.h" |
23 #include "ui/ozone/platform/drm/gpu/gbm_surfaceless.h" | 23 #include "ui/ozone/platform/drm/gpu/gbm_surfaceless.h" |
24 #include "ui/ozone/public/ozone_platform.h" | 24 #include "ui/ozone/public/ozone_platform.h" |
25 #include "ui/ozone/public/surface_factory_ozone.h" | 25 #include "ui/ozone/public/surface_factory_ozone.h" |
26 | 26 |
27 namespace ui { | 27 namespace ui { |
28 | 28 |
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
302 DCHECK(!processing_callback_.is_null()); | 302 DCHECK(!processing_callback_.is_null()); |
303 if (!processing_callback_.Run(this, processed_pixmap_)) { | 303 if (!processing_callback_.Run(this, processed_pixmap_)) { |
304 LOG(ERROR) << "Failed processing NativePixmap"; | 304 LOG(ERROR) << "Failed processing NativePixmap"; |
305 return nullptr; | 305 return nullptr; |
306 } | 306 } |
307 | 307 |
308 return processed_pixmap_->buffer(); | 308 return processed_pixmap_->buffer(); |
309 } | 309 } |
310 | 310 |
311 } // namespace ui | 311 } // namespace ui |
OLD | NEW |