| 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/drm_device.h" | 5 #include "ui/ozone/platform/drm/gpu/drm_device.h" |
| 6 | 6 |
| 7 #include <fcntl.h> | 7 #include <fcntl.h> |
| 8 #include <sys/mman.h> | 8 #include <sys/mman.h> |
| 9 #include <unistd.h> | 9 #include <unistd.h> |
| 10 #include <xf86drm.h> | 10 #include <xf86drm.h> |
| 11 #include <xf86drmMode.h> | 11 #include <xf86drmMode.h> |
| 12 #include <utility> | 12 #include <utility> |
| 13 | 13 |
| 14 #include "base/logging.h" | 14 #include "base/logging.h" |
| 15 #include "base/macros.h" | 15 #include "base/macros.h" |
| 16 #include "base/memory/free_deleter.h" | 16 #include "base/memory/free_deleter.h" |
| 17 #include "base/message_loop/message_loop.h" | 17 #include "base/message_loop/message_loop.h" |
| 18 #include "base/posix/safe_strerror.h" | 18 #include "base/posix/safe_strerror.h" |
| 19 #include "base/task_runner.h" | 19 #include "base/task_runner.h" |
| 20 #include "base/thread_task_runner_handle.h" | 20 #include "base/threading/thread_task_runner_handle.h" |
| 21 #include "base/trace_event/trace_event.h" | 21 #include "base/trace_event/trace_event.h" |
| 22 #include "third_party/skia/include/core/SkImageInfo.h" | 22 #include "third_party/skia/include/core/SkImageInfo.h" |
| 23 #include "ui/display/types/gamma_ramp_rgb_entry.h" | 23 #include "ui/display/types/gamma_ramp_rgb_entry.h" |
| 24 #include "ui/ozone/platform/drm/common/drm_util.h" | 24 #include "ui/ozone/platform/drm/common/drm_util.h" |
| 25 #include "ui/ozone/platform/drm/gpu/hardware_display_plane_manager_legacy.h" | 25 #include "ui/ozone/platform/drm/gpu/hardware_display_plane_manager_legacy.h" |
| 26 | 26 |
| 27 #if defined(USE_DRM_ATOMIC) | 27 #if defined(USE_DRM_ATOMIC) |
| 28 #include "ui/ozone/platform/drm/gpu/hardware_display_plane_manager_atomic.h" | 28 #include "ui/ozone/platform/drm/gpu/hardware_display_plane_manager_atomic.h" |
| 29 #endif | 29 #endif |
| 30 | 30 |
| (...skipping 768 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 799 reinterpret_cast<unsigned char*>(ctm_blob_data.get()), | 799 reinterpret_cast<unsigned char*>(ctm_blob_data.get()), |
| 800 sizeof(DrmColorCtm))) | 800 sizeof(DrmColorCtm))) |
| 801 return false; | 801 return false; |
| 802 } | 802 } |
| 803 } | 803 } |
| 804 | 804 |
| 805 return true; | 805 return true; |
| 806 } | 806 } |
| 807 | 807 |
| 808 } // namespace ui | 808 } // namespace ui |
| OLD | NEW |