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

Side by Side Diff: ui/ozone/platform/dri/dri_window_delegate_impl.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 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_window_delegate_impl.h" 5 #include "ui/ozone/platform/dri/dri_window_delegate_impl.h"
6 6
7 #include "base/debug/trace_event.h"
8 #include "ui/ozone/platform/dri/screen_manager.h" 7 #include "ui/ozone/platform/dri/screen_manager.h"
9 8
10 namespace ui { 9 namespace ui {
11 10
12 DriWindowDelegateImpl::DriWindowDelegateImpl(gfx::AcceleratedWidget widget, 11 DriWindowDelegateImpl::DriWindowDelegateImpl(gfx::AcceleratedWidget widget,
13 ScreenManager* screen_manager) 12 ScreenManager* screen_manager)
14 : widget_(widget), screen_manager_(screen_manager) { 13 : widget_(widget), screen_manager_(screen_manager) {
15 } 14 }
16 15
17 DriWindowDelegateImpl::~DriWindowDelegateImpl() { 16 DriWindowDelegateImpl::~DriWindowDelegateImpl() {
18 } 17 }
19 18
20 void DriWindowDelegateImpl::Initialize() { 19 void DriWindowDelegateImpl::Initialize() {
21 TRACE_EVENT1("dri", "DriWindowDelegateImpl::Initialize", "widget", widget_);
22 } 20 }
23 21
24 void DriWindowDelegateImpl::Shutdown() { 22 void DriWindowDelegateImpl::Shutdown() {
25 TRACE_EVENT1("dri", "DriWindowDelegateImpl::Shutdown", "widget", widget_);
26 } 23 }
27 24
28 gfx::AcceleratedWidget DriWindowDelegateImpl::GetAcceleratedWidget() { 25 gfx::AcceleratedWidget DriWindowDelegateImpl::GetAcceleratedWidget() {
29 return widget_; 26 return widget_;
30 } 27 }
31 28
32 HardwareDisplayController* DriWindowDelegateImpl::GetController() { 29 HardwareDisplayController* DriWindowDelegateImpl::GetController() {
33 return controller_.get(); 30 return controller_.get();
34 } 31 }
35 32
36 void DriWindowDelegateImpl::OnBoundsChanged(const gfx::Rect& bounds) { 33 void DriWindowDelegateImpl::OnBoundsChanged(const gfx::Rect& bounds) {
37 TRACE_EVENT2("dri",
38 "DriWindowDelegateImpl::OnBoundsChanged",
39 "widget",
40 widget_,
41 "bounds",
42 bounds.ToString());
43 controller_ = screen_manager_->GetDisplayController(bounds); 34 controller_ = screen_manager_->GetDisplayController(bounds);
44 } 35 }
45 36
46 } // namespace ui 37 } // namespace ui
OLDNEW
« 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