| 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_display_snapshot.h" | 5 #include "ui/ozone/platform/drm/gpu/drm_display_snapshot.h" |
| 6 | 6 |
| 7 #include <stdint.h> | 7 #include <stdint.h> |
| 8 #include <stdlib.h> | 8 #include <stdlib.h> |
| 9 #include <xf86drmMode.h> | 9 #include <xf86drmMode.h> |
| 10 | 10 |
| 11 #include "base/format_macros.h" | 11 #include "base/format_macros.h" |
| 12 #include "base/logging.h" | 12 #include "base/logging.h" |
| 13 #include "base/strings/stringprintf.h" | 13 #include "base/strings/stringprintf.h" |
| 14 #include "ui/display/util/edid_parser.h" | 14 #include "ui/display/util/edid_parser.h" |
| 15 #include "ui/ozone/platform/drm/common/drm_util.h" |
| 15 #include "ui/ozone/platform/drm/gpu/drm_device.h" | 16 #include "ui/ozone/platform/drm/gpu/drm_device.h" |
| 16 #include "ui/ozone/platform/drm/gpu/drm_display_mode.h" | 17 #include "ui/ozone/platform/drm/gpu/drm_display_mode.h" |
| 17 #include "ui/ozone/platform/drm/gpu/drm_util.h" | |
| 18 | 18 |
| 19 #if !defined(DRM_MODE_CONNECTOR_DSI) | 19 #if !defined(DRM_MODE_CONNECTOR_DSI) |
| 20 #define DRM_MODE_CONNECTOR_DSI 16 | 20 #define DRM_MODE_CONNECTOR_DSI 16 |
| 21 #endif | 21 #endif |
| 22 | 22 |
| 23 namespace ui { | 23 namespace ui { |
| 24 | 24 |
| 25 namespace { | 25 namespace { |
| 26 | 26 |
| 27 DisplayConnectionType GetDisplayType(drmModeConnector* connector) { | 27 DisplayConnectionType GetDisplayType(drmModeConnector* connector) { |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 std::string DrmDisplaySnapshot::ToString() const { | 124 std::string DrmDisplaySnapshot::ToString() const { |
| 125 return base::StringPrintf( | 125 return base::StringPrintf( |
| 126 "[type=%d, connector=%" PRIu32 ", crtc=%" PRIu32 | 126 "[type=%d, connector=%" PRIu32 ", crtc=%" PRIu32 |
| 127 ", origin=%s, mode=%s, dim=%s]", | 127 ", origin=%s, mode=%s, dim=%s]", |
| 128 type_, connector_, crtc_, origin_.ToString().c_str(), | 128 type_, connector_, crtc_, origin_.ToString().c_str(), |
| 129 current_mode_ ? current_mode_->ToString().c_str() : "NULL", | 129 current_mode_ ? current_mode_->ToString().c_str() : "NULL", |
| 130 physical_size_.ToString().c_str()); | 130 physical_size_.ToString().c_str()); |
| 131 } | 131 } |
| 132 | 132 |
| 133 } // namespace ui | 133 } // namespace ui |
| OLD | NEW |