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

Side by Side Diff: ui/display/chromeos/x11/native_display_delegate_x11.cc

Issue 518553002: Print information on connected displays to VLOG(1) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/display/chromeos/x11/native_display_delegate_x11.h" 5 #include "ui/display/chromeos/x11/native_display_delegate_x11.h"
6 6
7 #include <X11/Xatom.h> 7 #include <X11/Xatom.h>
8 #include <X11/Xlib.h> 8 #include <X11/Xlib.h>
9 #include <X11/extensions/dpms.h> 9 #include <X11/extensions/dpms.h>
10 #include <X11/extensions/Xrandr.h> 10 #include <X11/extensions/Xrandr.h>
(...skipping 417 matching lines...) Expand 10 before | Expand all | Expand 10 after
428 IsOutputAspectPreservingScaling(output), 428 IsOutputAspectPreservingScaling(output),
429 has_overscan, 429 has_overscan,
430 GetDisplayName(output), 430 GetDisplayName(output),
431 display_modes, 431 display_modes,
432 current_mode, 432 current_mode,
433 native_mode, 433 native_mode,
434 output, 434 output,
435 crtc, 435 crtc,
436 index); 436 index);
437 437
438 VLOG(2) << "Found display " << cached_outputs_.size() << ":" 438 VLOG(1) << "Found display " << cached_outputs_.size() << ":"
439 << " output=" << output << " crtc=" << crtc 439 << " output=" << output << " crtc=" << crtc
440 << " current_mode=" << current_mode_id; 440 << " current_mode=" << current_mode_id;
441 441
442 return display_snapshot; 442 return display_snapshot;
443 } 443 }
444 444
445 bool NativeDisplayDelegateX11::GetHDCPState(const DisplaySnapshot& output, 445 bool NativeDisplayDelegateX11::GetHDCPState(const DisplaySnapshot& output,
446 HDCPState* state) { 446 HDCPState* state) {
447 unsigned char* values = NULL; 447 unsigned char* values = NULL;
448 int actual_format = 0; 448 int actual_format = 0;
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
694 XSetForeground(display_, gc, color.pixel); 694 XSetForeground(display_, gc, color.pixel);
695 XSetFillStyle(display_, gc, FillSolid); 695 XSetFillStyle(display_, gc, FillSolid);
696 int width = DisplayWidth(display_, DefaultScreen(display_)); 696 int width = DisplayWidth(display_, DefaultScreen(display_));
697 int height = DisplayHeight(display_, DefaultScreen(display_)); 697 int height = DisplayHeight(display_, DefaultScreen(display_));
698 XFillRectangle(display_, window_, gc, 0, 0, width, height); 698 XFillRectangle(display_, window_, gc, 0, 0, width, height);
699 XFreeGC(display_, gc); 699 XFreeGC(display_, gc);
700 XFreeColors(display_, colormap, &color.pixel, 1, 0); 700 XFreeColors(display_, colormap, &color.pixel, 1, 0);
701 } 701 }
702 702
703 } // namespace ui 703 } // namespace ui
OLDNEW
« 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