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 <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
(...skipping 23 matching lines...) Expand all Loading... | |
34 uint32_t connector() const { return connector_; } | 34 uint32_t connector() const { return connector_; } |
35 const std::vector<drmModeModeInfo>& modes() const { return modes_; } | 35 const std::vector<drmModeModeInfo>& modes() const { return modes_; } |
36 | 36 |
37 DisplaySnapshot_Params Update(HardwareDisplayControllerInfo* info, | 37 DisplaySnapshot_Params Update(HardwareDisplayControllerInfo* info, |
38 size_t device_index); | 38 size_t device_index); |
39 | 39 |
40 bool Configure(const drmModeModeInfo* mode, const gfx::Point& origin); | 40 bool Configure(const drmModeModeInfo* mode, const gfx::Point& origin); |
41 bool GetHDCPState(HDCPState* state); | 41 bool GetHDCPState(HDCPState* state); |
42 bool SetHDCPState(HDCPState state); | 42 bool SetHDCPState(HDCPState state); |
43 void SetGammaRamp(const std::vector<GammaRampRGBEntry>& lut); | 43 void SetGammaRamp(const std::vector<GammaRampRGBEntry>& lut); |
44 void SetColorCorrection(const std::vector<GammaRampRGBEntry>& degamma_lut, | |
45 const std::vector<GammaRampRGBEntry>& gamma_lut, | |
46 const float correction_matrix[9]); | |
spang
2015/11/09 19:40:47
This declaration just turns into const float*, the
robert.bradford
2016/02/04 18:52:28
Done.
| |
44 | 47 |
45 private: | 48 private: |
46 ScreenManager* screen_manager_; // Not owned. | 49 ScreenManager* screen_manager_; // Not owned. |
47 | 50 |
48 int64_t display_id_ = -1; | 51 int64_t display_id_ = -1; |
49 scoped_refptr<DrmDevice> drm_; | 52 scoped_refptr<DrmDevice> drm_; |
50 uint32_t crtc_ = 0; | 53 uint32_t crtc_ = 0; |
51 uint32_t connector_ = 0; | 54 uint32_t connector_ = 0; |
52 std::vector<drmModeModeInfo> modes_; | 55 std::vector<drmModeModeInfo> modes_; |
53 gfx::Point origin_; | 56 gfx::Point origin_; |
54 | 57 |
55 DISALLOW_COPY_AND_ASSIGN(DrmDisplay); | 58 DISALLOW_COPY_AND_ASSIGN(DrmDisplay); |
56 }; | 59 }; |
57 | 60 |
58 } // namespace ui | 61 } // namespace ui |
59 | 62 |
60 #endif // UI_OZONE_PLATFORM_DRM_GPU_DRM_DISPLAY_H_ | 63 #endif // UI_OZONE_PLATFORM_DRM_GPU_DRM_DISPLAY_H_ |
OLD | NEW |