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

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

Issue 2896173002: ozone: introduce OverlayCheckReturn_Params (Closed)
Patch Set: ozone: fix broken overlay promotion. Created 3 years, 6 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 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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 12 matching lines...) Expand all
23 namespace gfx { 23 namespace gfx {
24 class Point; 24 class Point;
25 class Rect; 25 class Rect;
26 } 26 }
27 27
28 namespace ui { 28 namespace ui {
29 class DrmThread; 29 class DrmThread;
30 struct DisplayMode_Params; 30 struct DisplayMode_Params;
31 struct DisplaySnapshot_Params; 31 struct DisplaySnapshot_Params;
32 struct OverlayCheck_Params; 32 struct OverlayCheck_Params;
33 struct OverlayCheckReturn_Params;
33 34
34 class DrmThreadMessageProxy : public IPC::MessageFilter, 35 class DrmThreadMessageProxy : public IPC::MessageFilter,
35 public InterThreadMessagingProxy { 36 public InterThreadMessagingProxy {
36 public: 37 public:
37 DrmThreadMessageProxy(); 38 DrmThreadMessageProxy();
38 39
39 // InterThreadMessagingProxy. 40 // InterThreadMessagingProxy.
40 void SetDrmThread(DrmThread* thread) override; 41 void SetDrmThread(DrmThread* thread) override;
41 42
42 // IPC::MessageFilter: 43 // IPC::MessageFilter:
(...skipping 30 matching lines...) Expand all
73 void OnGetHDCPState(int64_t display_id); 74 void OnGetHDCPState(int64_t display_id);
74 void OnSetHDCPState(int64_t display_id, display::HDCPState state); 75 void OnSetHDCPState(int64_t display_id, display::HDCPState state);
75 void OnSetColorCorrection( 76 void OnSetColorCorrection(
76 int64_t id, 77 int64_t id,
77 const std::vector<display::GammaRampRGBEntry>& degamma_lut, 78 const std::vector<display::GammaRampRGBEntry>& degamma_lut,
78 const std::vector<display::GammaRampRGBEntry>& gamma_lut, 79 const std::vector<display::GammaRampRGBEntry>& gamma_lut,
79 const std::vector<float>& correction_matrix); 80 const std::vector<float>& correction_matrix);
80 81
81 void OnCheckOverlayCapabilitiesCallback( 82 void OnCheckOverlayCapabilitiesCallback(
82 gfx::AcceleratedWidget widget, 83 gfx::AcceleratedWidget widget,
83 const std::vector<OverlayCheck_Params>& overlays) const; 84 const std::vector<OverlayCheck_Params>& overlays,
85 const std::vector<OverlayCheckReturn_Params>& returns) const;
84 void OnRefreshNativeDisplaysCallback( 86 void OnRefreshNativeDisplaysCallback(
85 const std::vector<DisplaySnapshot_Params>& displays) const; 87 const std::vector<DisplaySnapshot_Params>& displays) const;
86 void OnConfigureNativeDisplayCallback(int64_t display_id, bool success) const; 88 void OnConfigureNativeDisplayCallback(int64_t display_id, bool success) const;
87 void OnDisableNativeDisplayCallback(int64_t display_id, bool success) const; 89 void OnDisableNativeDisplayCallback(int64_t display_id, bool success) const;
88 void OnTakeDisplayControlCallback(bool success) const; 90 void OnTakeDisplayControlCallback(bool success) const;
89 void OnRelinquishDisplayControlCallback(bool success) const; 91 void OnRelinquishDisplayControlCallback(bool success) const;
90 void OnGetHDCPStateCallback(int64_t display_id, 92 void OnGetHDCPStateCallback(int64_t display_id,
91 bool success, 93 bool success,
92 display::HDCPState state) const; 94 display::HDCPState state) const;
93 void OnSetHDCPStateCallback(int64_t display_id, bool success) const; 95 void OnSetHDCPStateCallback(int64_t display_id, bool success) const;
94 96
95 DrmThread* drm_thread_; 97 DrmThread* drm_thread_;
96 98
97 IPC::Sender* sender_ = nullptr; 99 IPC::Sender* sender_ = nullptr;
98 100
99 base::WeakPtrFactory<DrmThreadMessageProxy> weak_ptr_factory_; 101 base::WeakPtrFactory<DrmThreadMessageProxy> weak_ptr_factory_;
100 102
101 DISALLOW_COPY_AND_ASSIGN(DrmThreadMessageProxy); 103 DISALLOW_COPY_AND_ASSIGN(DrmThreadMessageProxy);
102 }; 104 };
103 105
104 } // namespace ui 106 } // namespace ui
105 107
106 #endif // UI_OZONE_PLATFORM_DRM_GPU_DRM_THREAD_MESSAGE_PROXY_H_ 108 #endif // UI_OZONE_PLATFORM_DRM_GPU_DRM_THREAD_MESSAGE_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698