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

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

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 #include "ui/ozone/platform/drm/host/drm_display_host.h" 5 #include "ui/ozone/platform/drm/host/drm_display_host.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/location.h" 8 #include "base/location.h"
9 #include "base/memory/ptr_util.h" 9 #include "base/memory/ptr_util.h"
10 #include "base/threading/thread_task_runner_handle.h" 10 #include "base/threading/thread_task_runner_handle.h"
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 } 104 }
105 105
106 void DrmDisplayHost::SetColorCorrection( 106 void DrmDisplayHost::SetColorCorrection(
107 const std::vector<GammaRampRGBEntry>& degamma_lut, 107 const std::vector<GammaRampRGBEntry>& degamma_lut,
108 const std::vector<GammaRampRGBEntry>& gamma_lut, 108 const std::vector<GammaRampRGBEntry>& gamma_lut,
109 const std::vector<float>& correction_matrix) { 109 const std::vector<float>& correction_matrix) {
110 sender_->GpuSetColorCorrection(snapshot_->display_id(), degamma_lut, 110 sender_->GpuSetColorCorrection(snapshot_->display_id(), degamma_lut,
111 gamma_lut, correction_matrix); 111 gamma_lut, correction_matrix);
112 } 112 }
113 113
114 void DrmDisplayHost::OnGpuProcessLaunched() {}
115
114 void DrmDisplayHost::OnGpuThreadReady() { 116 void DrmDisplayHost::OnGpuThreadReady() {
115 is_dummy_ = false; 117 is_dummy_ = false;
116 118
117 // Note: These responses are done here since the OnChannelDestroyed() is 119 // Note: These responses are done here since the OnChannelDestroyed() is
118 // called after OnChannelEstablished(). 120 // called after OnChannelEstablished().
119 ClearCallbacks(); 121 ClearCallbacks();
120 } 122 }
121 123
122 void DrmDisplayHost::OnGpuThreadRetired() {} 124 void DrmDisplayHost::OnGpuThreadRetired() {}
123 125
124 void DrmDisplayHost::ClearCallbacks() { 126 void DrmDisplayHost::ClearCallbacks() {
125 if (!configure_callback_.is_null()) 127 if (!configure_callback_.is_null())
126 OnDisplayConfigured(false); 128 OnDisplayConfigured(false);
127 if (!get_hdcp_callback_.is_null()) 129 if (!get_hdcp_callback_.is_null())
128 OnHDCPStateReceived(false, HDCP_STATE_UNDESIRED); 130 OnHDCPStateReceived(false, HDCP_STATE_UNDESIRED);
129 if (!set_hdcp_callback_.is_null()) 131 if (!set_hdcp_callback_.is_null())
130 OnHDCPStateUpdated(false); 132 OnHDCPStateUpdated(false);
131 } 133 }
132 134
133 } // namespace ui 135 } // namespace ui
OLDNEW
« no previous file with comments | « ui/ozone/platform/drm/host/drm_display_host.h ('k') | ui/ozone/platform/drm/host/drm_display_host_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698