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

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

Issue 1945353004: Revert of ash: reset color management when new screens are hotplugged (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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);
47 void SetColorCorrection(int64_t id, 48 void SetColorCorrection(int64_t id,
48 const std::vector<GammaRampRGBEntry>& degamma_lut, 49 const std::vector<GammaRampRGBEntry>& degamma_lut,
49 const std::vector<GammaRampRGBEntry>& gamma_lut, 50 const std::vector<GammaRampRGBEntry>& gamma_lut,
50 const std::vector<float>& correction_matrix); 51 const std::vector<float>& correction_matrix);
51 52
52 private: 53 private:
53 DrmDisplay* FindDisplay(int64_t display_id); 54 DrmDisplay* FindDisplay(int64_t display_id);
54 55
55 // Notify ScreenManager of all the displays that were present before the 56 // Notify ScreenManager of all the displays that were present before the
56 // update but are gone after the update. 57 // update but are gone after the update.
57 void NotifyScreenManager( 58 void NotifyScreenManager(
58 const std::vector<std::unique_ptr<DrmDisplay>>& new_displays, 59 const std::vector<std::unique_ptr<DrmDisplay>>& new_displays,
59 const std::vector<std::unique_ptr<DrmDisplay>>& old_displays) const; 60 const std::vector<std::unique_ptr<DrmDisplay>>& old_displays) const;
60 61
61 ScreenManager* screen_manager_; // Not owned. 62 ScreenManager* screen_manager_; // Not owned.
62 DrmDeviceManager* drm_device_manager_; // Not owned. 63 DrmDeviceManager* drm_device_manager_; // Not owned.
63 64
64 std::vector<std::unique_ptr<DrmDisplay>> displays_; 65 std::vector<std::unique_ptr<DrmDisplay>> displays_;
65 66
66 DISALLOW_COPY_AND_ASSIGN(DrmGpuDisplayManager); 67 DISALLOW_COPY_AND_ASSIGN(DrmGpuDisplayManager);
67 }; 68 };
68 69
69 } // namespace ui 70 } // namespace ui
70 71
71 #endif // UI_OZONE_PLATFORM_DRM_GPU_DRM_GPU_DISPLAY_MANAGER_H_ 72 #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