| 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/hardware_display_controller.h" | 5 #include "ui/ozone/platform/drm/gpu/hardware_display_controller.h" |
| 6 | 6 |
| 7 #include <drm.h> | 7 #include <drm.h> |
| 8 #include <string.h> | 8 #include <string.h> |
| 9 #include <xf86drm.h> | 9 #include <xf86drm.h> |
| 10 #include <utility> | 10 #include <utility> |
| 11 | 11 |
| 12 #include "base/logging.h" | 12 #include "base/logging.h" |
| 13 #include "base/memory/ptr_util.h" | 13 #include "base/memory/ptr_util.h" |
| 14 #include "base/trace_event/trace_event.h" | 14 #include "base/trace_event/trace_event.h" |
| 15 #include "third_party/skia/include/core/SkCanvas.h" | 15 #include "third_party/skia/include/core/SkCanvas.h" |
| 16 #include "ui/gfx/geometry/point.h" | 16 #include "ui/gfx/geometry/point.h" |
| 17 #include "ui/gfx/geometry/size.h" | 17 #include "ui/gfx/geometry/size.h" |
| 18 #include "ui/gfx/native_pixmap.h" |
| 18 #include "ui/gfx/swap_result.h" | 19 #include "ui/gfx/swap_result.h" |
| 19 #include "ui/ozone/platform/drm/gpu/crtc_controller.h" | 20 #include "ui/ozone/platform/drm/gpu/crtc_controller.h" |
| 20 #include "ui/ozone/platform/drm/gpu/drm_buffer.h" | 21 #include "ui/ozone/platform/drm/gpu/drm_buffer.h" |
| 21 #include "ui/ozone/platform/drm/gpu/drm_device.h" | 22 #include "ui/ozone/platform/drm/gpu/drm_device.h" |
| 22 #include "ui/ozone/platform/drm/gpu/page_flip_request.h" | 23 #include "ui/ozone/platform/drm/gpu/page_flip_request.h" |
| 23 #include "ui/ozone/public/native_pixmap.h" | |
| 24 | 24 |
| 25 namespace ui { | 25 namespace ui { |
| 26 | 26 |
| 27 namespace { | 27 namespace { |
| 28 | 28 |
| 29 void EmptyFlipCallback(gfx::SwapResult) {} | 29 void EmptyFlipCallback(gfx::SwapResult) {} |
| 30 | 30 |
| 31 } // namespace | 31 } // namespace |
| 32 | 32 |
| 33 HardwareDisplayController::HardwareDisplayController( | 33 HardwareDisplayController::HardwareDisplayController( |
| (...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 295 | 295 |
| 296 scoped_refptr<DrmDevice> HardwareDisplayController::GetAllocationDrmDevice() | 296 scoped_refptr<DrmDevice> HardwareDisplayController::GetAllocationDrmDevice() |
| 297 const { | 297 const { |
| 298 DCHECK(!crtc_controllers_.empty()); | 298 DCHECK(!crtc_controllers_.empty()); |
| 299 // TODO(dnicoara) When we support mirroring across DRM devices, figure out | 299 // TODO(dnicoara) When we support mirroring across DRM devices, figure out |
| 300 // which device should be used for allocations. | 300 // which device should be used for allocations. |
| 301 return crtc_controllers_[0]->drm(); | 301 return crtc_controllers_[0]->drm(); |
| 302 } | 302 } |
| 303 | 303 |
| 304 } // namespace ui | 304 } // namespace ui |
| OLD | NEW |