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

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

Issue 1914343003: Reland: ash: reset color management when new screens are hotplugged (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add an error when trying to set a gamma table without driver support Created 4 years, 7 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_display.cc ('k') | ui/ozone/platform/drm/gpu/mock_drm_device.h » ('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 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 #ifndef UI_OZONE_PLATFORM_DRM_GPU_DRM_GPU_DISPLAY_MANAGER_H_ 5 #ifndef UI_OZONE_PLATFORM_DRM_GPU_DRM_GPU_DISPLAY_MANAGER_H_
6 #define UI_OZONE_PLATFORM_DRM_GPU_DRM_GPU_DISPLAY_MANAGER_H_ 6 #define UI_OZONE_PLATFORM_DRM_GPU_DRM_GPU_DISPLAY_MANAGER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 26 matching lines...) Expand all
37 // Takes/releases the control of the DRM devices. 37 // Takes/releases the control of the DRM devices.
38 bool TakeDisplayControl(); 38 bool TakeDisplayControl();
39 void RelinquishDisplayControl(); 39 void RelinquishDisplayControl();
40 40
41 bool ConfigureDisplay(int64_t id, 41 bool ConfigureDisplay(int64_t id,
42 const DisplayMode_Params& mode, 42 const DisplayMode_Params& mode,
43 const gfx::Point& origin); 43 const gfx::Point& origin);
44 bool DisableDisplay(int64_t id); 44 bool DisableDisplay(int64_t id);
45 bool GetHDCPState(int64_t display_id, HDCPState* state); 45 bool GetHDCPState(int64_t display_id, HDCPState* state);
46 bool SetHDCPState(int64_t display_id, HDCPState state); 46 bool SetHDCPState(int64_t display_id, HDCPState state);
47 void SetGammaRamp(int64_t id, const std::vector<GammaRampRGBEntry>& lut);
48 void SetColorCorrection(int64_t id, 47 void SetColorCorrection(int64_t id,
49 const std::vector<GammaRampRGBEntry>& degamma_lut, 48 const std::vector<GammaRampRGBEntry>& degamma_lut,
50 const std::vector<GammaRampRGBEntry>& gamma_lut, 49 const std::vector<GammaRampRGBEntry>& gamma_lut,
51 const std::vector<float>& correction_matrix); 50 const std::vector<float>& correction_matrix);
52 51
53 private: 52 private:
54 DrmDisplay* FindDisplay(int64_t display_id); 53 DrmDisplay* FindDisplay(int64_t display_id);
55 54
56 // Notify ScreenManager of all the displays that were present before the 55 // Notify ScreenManager of all the displays that were present before the
57 // update but are gone after the update. 56 // update but are gone after the update.
58 void NotifyScreenManager( 57 void NotifyScreenManager(
59 const std::vector<std::unique_ptr<DrmDisplay>>& new_displays, 58 const std::vector<std::unique_ptr<DrmDisplay>>& new_displays,
60 const std::vector<std::unique_ptr<DrmDisplay>>& old_displays) const; 59 const std::vector<std::unique_ptr<DrmDisplay>>& old_displays) const;
61 60
62 ScreenManager* screen_manager_; // Not owned. 61 ScreenManager* screen_manager_; // Not owned.
63 DrmDeviceManager* drm_device_manager_; // Not owned. 62 DrmDeviceManager* drm_device_manager_; // Not owned.
64 63
65 std::vector<std::unique_ptr<DrmDisplay>> displays_; 64 std::vector<std::unique_ptr<DrmDisplay>> displays_;
66 65
67 DISALLOW_COPY_AND_ASSIGN(DrmGpuDisplayManager); 66 DISALLOW_COPY_AND_ASSIGN(DrmGpuDisplayManager);
68 }; 67 };
69 68
70 } // namespace ui 69 } // namespace ui
71 70
72 #endif // UI_OZONE_PLATFORM_DRM_GPU_DRM_GPU_DISPLAY_MANAGER_H_ 71 #endif // UI_OZONE_PLATFORM_DRM_GPU_DRM_GPU_DISPLAY_MANAGER_H_
OLDNEW
« no previous file with comments | « ui/ozone/platform/drm/gpu/drm_display.cc ('k') | ui/ozone/platform/drm/gpu/mock_drm_device.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698