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

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

Issue 2692423009: ozone: Remove useless logging about cursor dimensions. (Closed)
Patch Set: Created 3 years, 10 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/platform/drm/common/drm_util.cc
diff --git a/ui/ozone/platform/drm/common/drm_util.cc b/ui/ozone/platform/drm/common/drm_util.cc
index fff21503e8a43eb02c3506982058fd4e30a16d1e..eb0501cb107067485873d85cb524339e1fd8eec6 100644
--- a/ui/ozone/platform/drm/common/drm_util.cc
+++ b/ui/ozone/platform/drm/common/drm_util.cc
@@ -200,15 +200,12 @@ bool HasColorCorrectionMatrix(int fd, drmModeCrtc* crtc) {
gfx::Size GetMaximumCursorSize(int fd) {
uint64_t width = 0, height = 0;
- if (drmGetCap(fd, DRM_CAP_CURSOR_WIDTH, &width)) {
- VPLOG(1) << "Unable to get cursor width capability";
+ // Querying cursor dimensions is optional and is unsupported on older Chrome
+ // OS kernels.
+ if (drmGetCap(fd, DRM_CAP_CURSOR_WIDTH, &width) != 0 ||
+ drmGetCap(fd, DRM_CAP_CURSOR_HEIGHT, &height) != 0) {
return gfx::Size(kDefaultCursorWidth, kDefaultCursorHeight);
}
- if (drmGetCap(fd, DRM_CAP_CURSOR_HEIGHT, &height)) {
- VPLOG(1) << "Unable to get cursor height capability";
- return gfx::Size(kDefaultCursorWidth, kDefaultCursorHeight);
- }
-
return gfx::Size(width, height);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698