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

Side by Side Diff: ui/ozone/platform/drm/host/drm_native_display_delegate.h

Issue 1028563003: Load and apply a vcgt table from an ICC file to the internal display (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use a vectore of tuples of RGB components for IPC Created 5 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
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_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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698