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

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

Issue 2459973002: Expedite discovery of primary DRM device. (Closed)
Patch Set: Add more comments. Created 4 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_HOST_DRM_DISPLAY_HOST_H_ 5 #ifndef UI_OZONE_PLATFORM_DRM_HOST_DRM_DISPLAY_HOST_H_
6 #define UI_OZONE_PLATFORM_DRM_HOST_DRM_DISPLAY_HOST_H_ 6 #define UI_OZONE_PLATFORM_DRM_HOST_DRM_DISPLAY_HOST_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 26 matching lines...) Expand all
37 const std::vector<GammaRampRGBEntry>& gamma_lut, 37 const std::vector<GammaRampRGBEntry>& gamma_lut,
38 const std::vector<float>& correction_matrix); 38 const std::vector<float>& correction_matrix);
39 39
40 // Called when the IPC from the GPU process arrives to answer the above 40 // Called when the IPC from the GPU process arrives to answer the above
41 // commands. 41 // commands.
42 void OnDisplayConfigured(bool status); 42 void OnDisplayConfigured(bool status);
43 void OnHDCPStateReceived(bool status, HDCPState state); 43 void OnHDCPStateReceived(bool status, HDCPState state);
44 void OnHDCPStateUpdated(bool status); 44 void OnHDCPStateUpdated(bool status);
45 45
46 // GpuThreadObserver: 46 // GpuThreadObserver:
47 void OnGpuProcessLaunched() override;
47 void OnGpuThreadReady() override; 48 void OnGpuThreadReady() override;
48 void OnGpuThreadRetired() override; 49 void OnGpuThreadRetired() override;
49 50
50 private: 51 private:
51 // Calls all the callbacks with failure. 52 // Calls all the callbacks with failure.
52 void ClearCallbacks(); 53 void ClearCallbacks();
53 54
54 GpuThreadAdapter* sender_; // Not owned. 55 GpuThreadAdapter* sender_; // Not owned.
55 56
56 std::unique_ptr<DisplaySnapshot> snapshot_; 57 std::unique_ptr<DisplaySnapshot> snapshot_;
57 58
58 // Used during startup to signify that any display configuration should be 59 // Used during startup to signify that any display configuration should be
59 // synchronous and succeed. 60 // synchronous and succeed.
60 bool is_dummy_; 61 bool is_dummy_;
61 62
62 ConfigureCallback configure_callback_; 63 ConfigureCallback configure_callback_;
63 GetHDCPStateCallback get_hdcp_callback_; 64 GetHDCPStateCallback get_hdcp_callback_;
64 SetHDCPStateCallback set_hdcp_callback_; 65 SetHDCPStateCallback set_hdcp_callback_;
65 66
66 DISALLOW_COPY_AND_ASSIGN(DrmDisplayHost); 67 DISALLOW_COPY_AND_ASSIGN(DrmDisplayHost);
67 }; 68 };
68 69
69 } // namespace ui 70 } // namespace ui
70 71
71 #endif // UI_OZONE_PLATFORM_DRM_HOST_DRM_DISPLAY_HOST_H_ 72 #endif // UI_OZONE_PLATFORM_DRM_HOST_DRM_DISPLAY_HOST_H_
OLDNEW
« no previous file with comments | « content/browser/gpu/gpu_process_host_ui_shim.cc ('k') | ui/ozone/platform/drm/host/drm_display_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698