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

Side by Side Diff: ui/ozone/platform/dri/dri_gpu_platform_support.cc

Issue 712343003: Infrastructure for temportarily relinquishing GPU resources. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Try trybots again. Maybe now I have access Created 6 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 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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698