Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1112)

Unified Diff: ui/ozone/platform/drm/gpu/drm_util.cc

Issue 991963002: [Ozone-Drm] More LOG cleanup (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/ozone/platform/drm/gpu/drm_gpu_display_manager.cc ('k') | ui/ozone/platform/drm/gpu/gbm_buffer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/platform/drm/gpu/drm_util.cc
diff --git a/ui/ozone/platform/drm/gpu/drm_util.cc b/ui/ozone/platform/drm/gpu/drm_util.cc
index e0db47d7a7045c11b22b9645bac5930ce9da87b4..01b82a2a54711343aa45c13c9c74d0dd212a1dc1 100644
--- a/ui/ozone/platform/drm/gpu/drm_util.cc
+++ b/ui/ozone/platform/drm/gpu/drm_util.cc
@@ -129,7 +129,7 @@ bool MapDumbBuffer(int fd, uint32_t handle, uint32_t size, void** pixels) {
void ForceInitializationOfPrimaryDisplay(const scoped_refptr<DrmDevice>& drm,
ScreenManager* screen_manager) {
- LOG(WARNING) << "Forcing initialization of primary display.";
+ VLOG(2) << "Forcing initialization of primary display.";
ScopedVector<HardwareDisplayControllerInfo> displays =
GetAvailableDisplayControllerInfos(drm->get_fd());
@@ -159,8 +159,10 @@ base::FilePath GetPrimaryDisplayCardPath() {
break;
int fd = open(card_path.c_str(), O_RDWR | O_CLOEXEC);
- if (fd < 0)
+ if (fd < 0) {
+ VPLOG(1) << "Failed to open '" << card_path << "'";
continue;
+ }
memset(&res, 0, sizeof(struct drm_mode_card_res));
int ret = drmIoctl(fd, DRM_IOCTL_MODE_GETRESOURCES, &res);
@@ -168,6 +170,8 @@ base::FilePath GetPrimaryDisplayCardPath() {
if (ret == 0 && res.count_crtcs > 0) {
return base::FilePath(card_path);
}
+
+ VPLOG_IF(1, ret) << "Failed to get DRM resources for '" << card_path << "'";
}
return base::FilePath();
« no previous file with comments | « ui/ozone/platform/drm/gpu/drm_gpu_display_manager.cc ('k') | ui/ozone/platform/drm/gpu/gbm_buffer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698