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

Side by Side Diff: ui/ozone/platform/drm/gpu/drm_gpu_display_manager.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: Refactor for glevin@ and load VCGT always Created 5 years, 1 month 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
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 "base/memory/scoped_vector.h" 8 #include "base/memory/scoped_vector.h"
9 #include "ui/ozone/common/gpu/ozone_gpu_message_params.h" 9 #include "ui/ozone/common/gpu/ozone_gpu_message_params.h"
10 10
(...skipping 19 matching lines...) Expand all
30 bool TakeDisplayControl(); 30 bool TakeDisplayControl();
31 void RelinquishDisplayControl(); 31 void RelinquishDisplayControl();
32 32
33 bool ConfigureDisplay(int64_t id, 33 bool ConfigureDisplay(int64_t id,
34 const DisplayMode_Params& mode, 34 const DisplayMode_Params& mode,
35 const gfx::Point& origin); 35 const gfx::Point& origin);
36 bool DisableDisplay(int64_t id); 36 bool DisableDisplay(int64_t id);
37 bool GetHDCPState(int64_t display_id, HDCPState* state); 37 bool GetHDCPState(int64_t display_id, HDCPState* state);
38 bool SetHDCPState(int64_t display_id, HDCPState state); 38 bool SetHDCPState(int64_t display_id, HDCPState state);
39 void SetGammaRamp(int64_t id, const std::vector<GammaRampRGBEntry>& lut); 39 void SetGammaRamp(int64_t id, const std::vector<GammaRampRGBEntry>& lut);
40 void SetColorCorrection(int64_t id,
41 const std::vector<GammaRampRGBEntry>& degamma_lut,
42 const std::vector<GammaRampRGBEntry>& gamma_lut,
43 const float correction_matrix[9]);
40 44
41 private: 45 private:
42 DrmDisplay* FindDisplay(int64_t display_id); 46 DrmDisplay* FindDisplay(int64_t display_id);
43 47
44 // Notify ScreenManager of all the displays that were present before the 48 // Notify ScreenManager of all the displays that were present before the
45 // update but are gone after the update. 49 // update but are gone after the update.
46 void NotifyScreenManager(const std::vector<DrmDisplay*>& new_displays, 50 void NotifyScreenManager(const std::vector<DrmDisplay*>& new_displays,
47 const std::vector<DrmDisplay*>& old_displays) const; 51 const std::vector<DrmDisplay*>& old_displays) const;
48 52
49 ScreenManager* screen_manager_; // Not owned. 53 ScreenManager* screen_manager_; // Not owned.
50 DrmDeviceManager* drm_device_manager_; // Not owned. 54 DrmDeviceManager* drm_device_manager_; // Not owned.
51 55
52 ScopedVector<DrmDisplay> displays_; 56 ScopedVector<DrmDisplay> displays_;
53 57
54 DISALLOW_COPY_AND_ASSIGN(DrmGpuDisplayManager); 58 DISALLOW_COPY_AND_ASSIGN(DrmGpuDisplayManager);
55 }; 59 };
56 60
57 } // namespace ui 61 } // namespace ui
58 62
59 #endif // UI_OZONE_PLATFORM_DRM_GPU_DRM_GPU_DISPLAY_MANAGER_H_ 63 #endif // UI_OZONE_PLATFORM_DRM_GPU_DRM_GPU_DISPLAY_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698