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

Side by Side Diff: ui/ozone/platform/drm/gpu/drm_display.h

Issue 1182063002: Add support for more advanced color correction (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@qcms-fixed-point-gamma
Patch Set: Rebase after quirks changes Created 4 years, 8 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 | « ui/ozone/platform/drm/gpu/drm_device.cc ('k') | ui/ozone/platform/drm/gpu/drm_display.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « ui/ozone/platform/drm/gpu/drm_device.cc ('k') | ui/ozone/platform/drm/gpu/drm_display.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698