OLD | NEW |
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/location.h" | 7 #include "base/location.h" |
8 #include "base/memory/ptr_util.h" | 8 #include "base/memory/ptr_util.h" |
9 #include "base/thread_task_runner_handle.h" | 9 #include "base/threading/thread_task_runner_handle.h" |
10 #include "ui/ozone/common/display_snapshot_proxy.h" | 10 #include "ui/ozone/common/display_snapshot_proxy.h" |
11 #include "ui/ozone/common/display_util.h" | 11 #include "ui/ozone/common/display_util.h" |
12 #include "ui/ozone/platform/drm/host/gpu_thread_adapter.h" | 12 #include "ui/ozone/platform/drm/host/gpu_thread_adapter.h" |
13 | 13 |
14 namespace ui { | 14 namespace ui { |
15 | 15 |
16 DrmDisplayHost::DrmDisplayHost(GpuThreadAdapter* sender, | 16 DrmDisplayHost::DrmDisplayHost(GpuThreadAdapter* sender, |
17 const DisplaySnapshot_Params& params, | 17 const DisplaySnapshot_Params& params, |
18 bool is_dummy) | 18 bool is_dummy) |
19 : sender_(sender), | 19 : sender_(sender), |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 void DrmDisplayHost::ClearCallbacks() { | 123 void DrmDisplayHost::ClearCallbacks() { |
124 if (!configure_callback_.is_null()) | 124 if (!configure_callback_.is_null()) |
125 OnDisplayConfigured(false); | 125 OnDisplayConfigured(false); |
126 if (!get_hdcp_callback_.is_null()) | 126 if (!get_hdcp_callback_.is_null()) |
127 OnHDCPStateReceived(false, HDCP_STATE_UNDESIRED); | 127 OnHDCPStateReceived(false, HDCP_STATE_UNDESIRED); |
128 if (!set_hdcp_callback_.is_null()) | 128 if (!set_hdcp_callback_.is_null()) |
129 OnHDCPStateUpdated(false); | 129 OnHDCPStateUpdated(false); |
130 } | 130 } |
131 | 131 |
132 } // namespace ui | 132 } // namespace ui |
OLD | NEW |