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

Side by Side Diff: ui/ozone/platform/drm/gpu/drm_thread_message_proxy.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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_THREAD_MESSAGE_PROXY_H_ 5 #ifndef UI_OZONE_PLATFORM_DRM_GPU_DRM_THREAD_MESSAGE_PROXY_H_
6 #define UI_OZONE_PLATFORM_DRM_GPU_DRM_THREAD_MESSAGE_PROXY_H_ 6 #define UI_OZONE_PLATFORM_DRM_GPU_DRM_THREAD_MESSAGE_PROXY_H_
7 7
8 #include "base/memory/weak_ptr.h" 8 #include "base/memory/weak_ptr.h"
9 #include "ipc/message_filter.h" 9 #include "ipc/message_filter.h"
10 #include "ui/display/types/display_constants.h" 10 #include "ui/display/types/display_constants.h"
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 const gfx::Point& origin); 59 const gfx::Point& origin);
60 void OnDisableNativeDisplay(int64_t id); 60 void OnDisableNativeDisplay(int64_t id);
61 void OnTakeDisplayControl(); 61 void OnTakeDisplayControl();
62 void OnRelinquishDisplayControl(); 62 void OnRelinquishDisplayControl();
63 void OnAddGraphicsDevice(const base::FilePath& path, 63 void OnAddGraphicsDevice(const base::FilePath& path,
64 const base::FileDescriptor& fd); 64 const base::FileDescriptor& fd);
65 void OnRemoveGraphicsDevice(const base::FilePath& path); 65 void OnRemoveGraphicsDevice(const base::FilePath& path);
66 void OnGetHDCPState(int64_t display_id); 66 void OnGetHDCPState(int64_t display_id);
67 void OnSetHDCPState(int64_t display_id, HDCPState state); 67 void OnSetHDCPState(int64_t display_id, HDCPState state);
68 void OnSetGammaRamp(int64_t id, const std::vector<GammaRampRGBEntry>& lut); 68 void OnSetGammaRamp(int64_t id, const std::vector<GammaRampRGBEntry>& lut);
69 void OnSetColorCorrection(int64_t id,
70 const std::vector<GammaRampRGBEntry>& degamma_lut,
71 const std::vector<GammaRampRGBEntry>& gamma_lut,
72 const std::vector<float>& correction_matrix);
69 73
70 void OnCheckOverlayCapabilitiesCallback( 74 void OnCheckOverlayCapabilitiesCallback(
71 gfx::AcceleratedWidget widget, 75 gfx::AcceleratedWidget widget,
72 const std::vector<OverlayCheck_Params>& overlays) const; 76 const std::vector<OverlayCheck_Params>& overlays) const;
73 void OnRefreshNativeDisplaysCallback( 77 void OnRefreshNativeDisplaysCallback(
74 const std::vector<DisplaySnapshot_Params>& displays) const; 78 const std::vector<DisplaySnapshot_Params>& displays) const;
75 void OnConfigureNativeDisplayCallback(int64_t display_id, bool success) const; 79 void OnConfigureNativeDisplayCallback(int64_t display_id, bool success) const;
76 void OnDisableNativeDisplayCallback(int64_t display_id, bool success) const; 80 void OnDisableNativeDisplayCallback(int64_t display_id, bool success) const;
77 void OnTakeDisplayControlCallback(bool success) const; 81 void OnTakeDisplayControlCallback(bool success) const;
78 void OnRelinquishDisplayControlCallback(bool success) const; 82 void OnRelinquishDisplayControlCallback(bool success) const;
79 void OnGetHDCPStateCallback(int64_t display_id, 83 void OnGetHDCPStateCallback(int64_t display_id,
80 bool success, 84 bool success,
81 HDCPState state) const; 85 HDCPState state) const;
82 void OnSetHDCPStateCallback(int64_t display_id, bool success) const; 86 void OnSetHDCPStateCallback(int64_t display_id, bool success) const;
83 87
84 DrmThread* drm_thread_; 88 DrmThread* drm_thread_;
85 89
86 IPC::Sender* sender_ = nullptr; 90 IPC::Sender* sender_ = nullptr;
87 91
88 base::WeakPtrFactory<DrmThreadMessageProxy> weak_ptr_factory_; 92 base::WeakPtrFactory<DrmThreadMessageProxy> weak_ptr_factory_;
89 93
90 DISALLOW_COPY_AND_ASSIGN(DrmThreadMessageProxy); 94 DISALLOW_COPY_AND_ASSIGN(DrmThreadMessageProxy);
91 }; 95 };
92 96
93 } // namespace ui 97 } // namespace ui
94 98
95 #endif // UI_OZONE_PLATFORM_DRM_GPU_DRM_THREAD_MESSAGE_PROXY_H_ 99 #endif // UI_OZONE_PLATFORM_DRM_GPU_DRM_THREAD_MESSAGE_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698