OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/dri/dri_gpu_platform_support.h" | 5 #include "ui/ozone/platform/dri/dri_gpu_platform_support.h" |
6 | 6 |
7 #include "ipc/ipc_message_macros.h" | 7 #include "ipc/ipc_message_macros.h" |
8 #include "ui/display/types/display_mode.h" | 8 #include "ui/display/types/display_mode.h" |
9 #include "ui/display/types/display_snapshot.h" | 9 #include "ui/display/types/display_snapshot.h" |
10 #include "ui/ozone/common/display_util.h" | 10 #include "ui/ozone/common/display_util.h" |
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
207 } | 207 } |
208 | 208 |
209 void DriGpuPlatformSupport::OnTakeDisplayControl() { | 209 void DriGpuPlatformSupport::OnTakeDisplayControl() { |
210 ndd_->TakeDisplayControl(); | 210 ndd_->TakeDisplayControl(); |
211 } | 211 } |
212 | 212 |
213 void DriGpuPlatformSupport::OnRelinquishDisplayControl() { | 213 void DriGpuPlatformSupport::OnRelinquishDisplayControl() { |
214 ndd_->RelinquishDisplayControl(); | 214 ndd_->RelinquishDisplayControl(); |
215 } | 215 } |
216 | 216 |
| 217 void DriGpuPlatformSupport::RelinquishGpuResources( |
| 218 const base::Closure& callback) { |
| 219 callback.Run(); |
| 220 } |
| 221 |
217 } // namespace ui | 222 } // namespace ui |
OLD | NEW |