| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 #ifndef UI_OZONE_PLATFORM_DRM_GPU_DRM_DISPLAY_H_ | 5 #ifndef UI_OZONE_PLATFORM_DRM_GPU_DRM_DISPLAY_H_ |
| 6 #define UI_OZONE_PLATFORM_DRM_GPU_DRM_DISPLAY_H_ | 6 #define UI_OZONE_PLATFORM_DRM_GPU_DRM_DISPLAY_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 uint32_t crtc() const { return crtc_; } | 37 uint32_t crtc() const { return crtc_; } |
| 38 uint32_t connector() const { return connector_; } | 38 uint32_t connector() const { return connector_; } |
| 39 const std::vector<drmModeModeInfo>& modes() const { return modes_; } | 39 const std::vector<drmModeModeInfo>& modes() const { return modes_; } |
| 40 | 40 |
| 41 DisplaySnapshot_Params Update(HardwareDisplayControllerInfo* info, | 41 DisplaySnapshot_Params Update(HardwareDisplayControllerInfo* info, |
| 42 size_t device_index); | 42 size_t device_index); |
| 43 | 43 |
| 44 bool Configure(const drmModeModeInfo* mode, const gfx::Point& origin); | 44 bool Configure(const drmModeModeInfo* mode, const gfx::Point& origin); |
| 45 bool GetHDCPState(HDCPState* state); | 45 bool GetHDCPState(HDCPState* state); |
| 46 bool SetHDCPState(HDCPState state); | 46 bool SetHDCPState(HDCPState state); |
| 47 void SetGammaRamp(const std::vector<GammaRampRGBEntry>& lut); | 47 void SetColorCorrection(const std::vector<GammaRampRGBEntry>& degamma_lut, |
| 48 const std::vector<GammaRampRGBEntry>& gamma_lut, |
| 49 const std::vector<float>& correction_matrix); |
| 48 | 50 |
| 49 private: | 51 private: |
| 50 ScreenManager* screen_manager_; // Not owned. | 52 ScreenManager* screen_manager_; // Not owned. |
| 51 | 53 |
| 52 int64_t display_id_ = -1; | 54 int64_t display_id_ = -1; |
| 53 scoped_refptr<DrmDevice> drm_; | 55 scoped_refptr<DrmDevice> drm_; |
| 54 uint32_t crtc_ = 0; | 56 uint32_t crtc_ = 0; |
| 55 uint32_t connector_ = 0; | 57 uint32_t connector_ = 0; |
| 56 std::vector<drmModeModeInfo> modes_; | 58 std::vector<drmModeModeInfo> modes_; |
| 57 gfx::Point origin_; | 59 gfx::Point origin_; |
| 58 | 60 |
| 59 DISALLOW_COPY_AND_ASSIGN(DrmDisplay); | 61 DISALLOW_COPY_AND_ASSIGN(DrmDisplay); |
| 60 }; | 62 }; |
| 61 | 63 |
| 62 } // namespace ui | 64 } // namespace ui |
| 63 | 65 |
| 64 #endif // UI_OZONE_PLATFORM_DRM_GPU_DRM_DISPLAY_H_ | 66 #endif // UI_OZONE_PLATFORM_DRM_GPU_DRM_DISPLAY_H_ |
| OLD | NEW |