| 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/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 606 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 617 } | 617 } |
| 618 | 618 |
| 619 XRRCrtcGamma* NativeDisplayDelegateX11::CreateGammaRampForProfile( | 619 XRRCrtcGamma* NativeDisplayDelegateX11::CreateGammaRampForProfile( |
| 620 const DisplaySnapshotX11& x11_output, | 620 const DisplaySnapshotX11& x11_output, |
| 621 ColorCalibrationProfile new_profile) { | 621 ColorCalibrationProfile new_profile) { |
| 622 // TODO(mukai|marcheu): Creates the appropriate gamma ramp data from the | 622 // TODO(mukai|marcheu): Creates the appropriate gamma ramp data from the |
| 623 // profile enum. It would be served by the vendor. | 623 // profile enum. It would be served by the vendor. |
| 624 return NULL; | 624 return NULL; |
| 625 } | 625 } |
| 626 | 626 |
| 627 bool NativeDisplayDelegateX11::SetGammaRamp( | 627 bool NativeDisplayDelegateX11::SetColorCorrection( |
| 628 const ui::DisplaySnapshot& output, | 628 const ui::DisplaySnapshot& output, |
| 629 const std::vector<GammaRampRGBEntry>& lut) { | 629 const std::vector<GammaRampRGBEntry>& degamma_lut, |
| 630 const std::vector<GammaRampRGBEntry>& gamma_lut, |
| 631 const std::vector<float>& correction_matrix) { |
| 630 NOTIMPLEMENTED(); | 632 NOTIMPLEMENTED(); |
| 631 return false; | 633 return false; |
| 632 } | 634 } |
| 633 | 635 |
| 634 void NativeDisplayDelegateX11::DrawBackground() { | 636 void NativeDisplayDelegateX11::DrawBackground() { |
| 635 if (!background_color_argb_) | 637 if (!background_color_argb_) |
| 636 return; | 638 return; |
| 637 // Configuring CRTCs/Framebuffer clears the boot screen image. Paint the | 639 // Configuring CRTCs/Framebuffer clears the boot screen image. Paint the |
| 638 // same background color after updating framebuffer to minimize the | 640 // same background color after updating framebuffer to minimize the |
| 639 // duration of black screen at boot time. | 641 // duration of black screen at boot time. |
| (...skipping 10 matching lines...) Expand all Loading... |
| 650 XSetForeground(display_, gc, color.pixel); | 652 XSetForeground(display_, gc, color.pixel); |
| 651 XSetFillStyle(display_, gc, FillSolid); | 653 XSetFillStyle(display_, gc, FillSolid); |
| 652 int width = DisplayWidth(display_, DefaultScreen(display_)); | 654 int width = DisplayWidth(display_, DefaultScreen(display_)); |
| 653 int height = DisplayHeight(display_, DefaultScreen(display_)); | 655 int height = DisplayHeight(display_, DefaultScreen(display_)); |
| 654 XFillRectangle(display_, window_, gc, 0, 0, width, height); | 656 XFillRectangle(display_, window_, gc, 0, 0, width, height); |
| 655 XFreeGC(display_, gc); | 657 XFreeGC(display_, gc); |
| 656 XFreeColors(display_, colormap, &color.pixel, 1, 0); | 658 XFreeColors(display_, colormap, &color.pixel, 1, 0); |
| 657 } | 659 } |
| 658 | 660 |
| 659 } // namespace ui | 661 } // namespace ui |
| OLD | NEW |