OLD | NEW |
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_HOST_NATIVE_DISPLAY_DELEGATE_HOST_H_ | 5 #ifndef UI_OZONE_PLATFORM_DRM_HOST_NATIVE_DISPLAY_DELEGATE_HOST_H_ |
6 #define UI_OZONE_PLATFORM_DRM_HOST_NATIVE_DISPLAY_DELEGATE_HOST_H_ | 6 #define UI_OZONE_PLATFORM_DRM_HOST_NATIVE_DISPLAY_DELEGATE_HOST_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 | 9 |
10 #include "base/files/file.h" | 10 #include "base/files/file.h" |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 const DisplayMode* mode, | 49 const DisplayMode* mode, |
50 const gfx::Point& origin, | 50 const gfx::Point& origin, |
51 const ConfigureCallback& callback) override; | 51 const ConfigureCallback& callback) override; |
52 void CreateFrameBuffer(const gfx::Size& size) override; | 52 void CreateFrameBuffer(const gfx::Size& size) override; |
53 bool GetHDCPState(const DisplaySnapshot& output, HDCPState* state) override; | 53 bool GetHDCPState(const DisplaySnapshot& output, HDCPState* state) override; |
54 bool SetHDCPState(const DisplaySnapshot& output, HDCPState state) override; | 54 bool SetHDCPState(const DisplaySnapshot& output, HDCPState state) override; |
55 std::vector<ColorCalibrationProfile> GetAvailableColorCalibrationProfiles( | 55 std::vector<ColorCalibrationProfile> GetAvailableColorCalibrationProfiles( |
56 const DisplaySnapshot& output) override; | 56 const DisplaySnapshot& output) override; |
57 bool SetColorCalibrationProfile(const DisplaySnapshot& output, | 57 bool SetColorCalibrationProfile(const DisplaySnapshot& output, |
58 ColorCalibrationProfile new_profile) override; | 58 ColorCalibrationProfile new_profile) override; |
| 59 bool SetGammaRamp(const ui::DisplaySnapshot& output, |
| 60 const std::vector<uint16_t>& r, |
| 61 const std::vector<uint16_t>& g, |
| 62 const std::vector<uint16_t>& b) override; |
59 void AddObserver(NativeDisplayObserver* observer) override; | 63 void AddObserver(NativeDisplayObserver* observer) override; |
60 void RemoveObserver(NativeDisplayObserver* observer) override; | 64 void RemoveObserver(NativeDisplayObserver* observer) override; |
61 | 65 |
62 // DeviceEventObserver overrides: | 66 // DeviceEventObserver overrides: |
63 void OnDeviceEvent(const DeviceEvent& event) override; | 67 void OnDeviceEvent(const DeviceEvent& event) override; |
64 | 68 |
65 // GpuPlatformSupportHost: | 69 // GpuPlatformSupportHost: |
66 void OnChannelEstablished( | 70 void OnChannelEstablished( |
67 int host_id, | 71 int host_id, |
68 scoped_refptr<base::SingleThreadTaskRunner> send_runner, | 72 scoped_refptr<base::SingleThreadTaskRunner> send_runner, |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 std::map<int64_t, ConfigureCallback> configure_callback_map_; | 107 std::map<int64_t, ConfigureCallback> configure_callback_map_; |
104 | 108 |
105 base::WeakPtrFactory<DrmNativeDisplayDelegate> weak_ptr_factory_; | 109 base::WeakPtrFactory<DrmNativeDisplayDelegate> weak_ptr_factory_; |
106 | 110 |
107 DISALLOW_COPY_AND_ASSIGN(DrmNativeDisplayDelegate); | 111 DISALLOW_COPY_AND_ASSIGN(DrmNativeDisplayDelegate); |
108 }; | 112 }; |
109 | 113 |
110 } // namespace ui | 114 } // namespace ui |
111 | 115 |
112 #endif // UI_OZONE_PLATFORM_DRM_HOST_NATIVE_DISPLAY_DELEGATE_HOST_H_ | 116 #endif // UI_OZONE_PLATFORM_DRM_HOST_NATIVE_DISPLAY_DELEGATE_HOST_H_ |
OLD | NEW |