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

Side by Side Diff: ui/ozone/platform/dri/screen_manager.h

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 #ifndef UI_OZONE_PLATFORM_DRI_SCREEN_MANAGER_H_ 5 #ifndef UI_OZONE_PLATFORM_DRI_SCREEN_MANAGER_H_
6 #define UI_OZONE_PLATFORM_DRI_SCREEN_MANAGER_H_ 6 #define UI_OZONE_PLATFORM_DRI_SCREEN_MANAGER_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/scoped_vector.h" 9 #include "base/memory/scoped_vector.h"
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 11 matching lines...) Expand all
22 22
23 class DriWrapper; 23 class DriWrapper;
24 class ScanoutBufferGenerator; 24 class ScanoutBufferGenerator;
25 25
26 // Responsible for keeping track of active displays and configuring them. 26 // Responsible for keeping track of active displays and configuring them.
27 class ScreenManager { 27 class ScreenManager {
28 public: 28 public:
29 ScreenManager(DriWrapper* dri, ScanoutBufferGenerator* surface_generator); 29 ScreenManager(DriWrapper* dri, ScanoutBufferGenerator* surface_generator);
30 virtual ~ScreenManager(); 30 virtual ~ScreenManager();
31 31
32 // Register a display controller. This must be called before trying to
33 // configure it.
34 void AddDisplayController(uint32_t crtc, uint32_t connector);
35
36 // Remove a display controller from the list of active controllers. The 32 // Remove a display controller from the list of active controllers. The
37 // controller is removed since it was disconnected. 33 // controller is removed since it was disconnected.
38 void RemoveDisplayController(uint32_t crtc); 34 void RemoveDisplayController(uint32_t crtc);
39 35
40 // Configure a display controller. The display controller is identified by 36 // Configure (and add if not present) a display controller. The display
41 // (|crtc|, |connector|) and the controller is modeset using |mode|. 37 // controller is identified by (|crtc|, |connector|) and the controller is
38 // modeset using |mode|.
42 bool ConfigureDisplayController(uint32_t crtc, 39 bool ConfigureDisplayController(uint32_t crtc,
43 uint32_t connector, 40 uint32_t connector,
44 const gfx::Point& origin, 41 const gfx::Point& origin,
45 const drmModeModeInfo& mode); 42 const drmModeModeInfo& mode);
46 43
47 // Disable the display controller identified by |crtc|. Note, the controller 44 // Disable the display controller identified by |crtc|. Note, the controller
48 // may still be connected, so this does not remove the controller. 45 // may still be connected, so this does not remove the controller.
49 bool DisableDisplayController(uint32_t crtc); 46 bool DisableDisplayController(uint32_t crtc);
50 47
51 // Returns a reference to the display controller configured to display within 48 // Returns a reference to the display controller configured to display within
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 ScanoutBufferGenerator* buffer_generator_; // Not owned. 88 ScanoutBufferGenerator* buffer_generator_; // Not owned.
92 // List of display controllers (active and disabled). 89 // List of display controllers (active and disabled).
93 HardwareDisplayControllers controllers_; 90 HardwareDisplayControllers controllers_;
94 91
95 DISALLOW_COPY_AND_ASSIGN(ScreenManager); 92 DISALLOW_COPY_AND_ASSIGN(ScreenManager);
96 }; 93 };
97 94
98 } // namespace ui 95 } // namespace ui
99 96
100 #endif // UI_OZONE_PLATFORM_DRI_SCREEN_MANAGER_H_ 97 #endif // UI_OZONE_PLATFORM_DRI_SCREEN_MANAGER_H_
OLDNEW
« no previous file with comments | « ui/ozone/platform/dri/gpu_platform_support_host_gbm.cc ('k') | ui/ozone/platform/dri/screen_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698