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

Unified Diff: ui/ozone/platform/dri/dri_window_delegate_impl.cc

Issue 522463005: [Ozone-GBM] Handle GPU crashes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Reland of: [Ozone-GBM] Handle GPU crashes 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/dri_window_delegate_impl.cc
diff --git a/ui/ozone/platform/dri/dri_window_delegate_impl.cc b/ui/ozone/platform/dri/dri_window_delegate_impl.cc
index cb5b7a17e14597328b13535cdc34164543574e0b..a95a8fc6663de38a75a46da72f4249d1e9bba42f 100644
--- a/ui/ozone/platform/dri/dri_window_delegate_impl.cc
+++ b/ui/ozone/platform/dri/dri_window_delegate_impl.cc
@@ -4,6 +4,7 @@
#include "ui/ozone/platform/dri/dri_window_delegate_impl.h"
+#include "base/debug/trace_event.h"
#include "ui/ozone/platform/dri/screen_manager.h"
namespace ui {
@@ -17,9 +18,11 @@ DriWindowDelegateImpl::~DriWindowDelegateImpl() {
}
void DriWindowDelegateImpl::Initialize() {
+ TRACE_EVENT1("dri", "DriWindowDelegateImpl::Initialize", "widget", widget_);
}
void DriWindowDelegateImpl::Shutdown() {
+ TRACE_EVENT1("dri", "DriWindowDelegateImpl::Shutdown", "widget", widget_);
}
gfx::AcceleratedWidget DriWindowDelegateImpl::GetAcceleratedWidget() {
@@ -31,6 +34,12 @@ HardwareDisplayController* DriWindowDelegateImpl::GetController() {
}
void DriWindowDelegateImpl::OnBoundsChanged(const gfx::Rect& bounds) {
+ TRACE_EVENT2("dri",
+ "DriWindowDelegateImpl::OnBoundsChanged",
+ "widget",
+ widget_,
+ "bounds",
+ bounds.ToString());
controller_ = screen_manager_->GetDisplayController(bounds);
}
« no previous file with comments | « ui/ozone/platform/dri/chromeos/native_display_delegate_proxy.cc ('k') | ui/ozone/platform/dri/dri_window_delegate_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698