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

Unified Diff: ui/ozone/platform/dri/chromeos/native_display_delegate_proxy.cc

Issue 548613002: Revert of [Ozone-GBM] Handle GPU crashes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 months 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 side-by-side diff with in-line comments
Download patch
Index: ui/ozone/platform/dri/chromeos/native_display_delegate_proxy.cc
diff --git a/ui/ozone/platform/dri/chromeos/native_display_delegate_proxy.cc b/ui/ozone/platform/dri/chromeos/native_display_delegate_proxy.cc
index 7230558e310b76ed74a28ba93ffe4547b6bba911..2219e4d2ff68025e755a9cc1f13705e8b2891303 100644
--- a/ui/ozone/platform/dri/chromeos/native_display_delegate_proxy.cc
+++ b/ui/ozone/platform/dri/chromeos/native_display_delegate_proxy.cc
@@ -113,21 +113,15 @@
if (event.action_type() == DeviceEvent::CHANGE) {
VLOG(1) << "Got display changed event";
- proxy_->Send(new OzoneGpuMsg_RefreshNativeDisplays(
- std::vector<DisplaySnapshot_Params>()));
+ proxy_->Send(new OzoneGpuMsg_RefreshNativeDisplays());
}
}
void NativeDisplayDelegateProxy::OnChannelEstablished(
int host_id, IPC::Sender* sender) {
- std::vector<DisplaySnapshot_Params> display_params;
- for (size_t i = 0; i < displays_.size(); ++i)
- display_params.push_back(GetDisplaySnapshotParams(*displays_[i]));
-
// Force an initial configure such that the browser process can get the actual
- // state. Pass in the current display state since the GPU process may have
- // crashed and we want to re-synchronize the state between processes.
- proxy_->Send(new OzoneGpuMsg_RefreshNativeDisplays(display_params));
+ // state.
+ proxy_->Send(new OzoneGpuMsg_RefreshNativeDisplays());
}
void NativeDisplayDelegateProxy::OnChannelDestroyed(int host_id) {
« no previous file with comments | « ui/ozone/platform/dri/chromeos/native_display_delegate_dri.cc ('k') | ui/ozone/platform/dri/dri_window_delegate_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698