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

Unified Diff: ui/ozone/platform/dri/screen_manager.h

Issue 556263005: [Ozone-DRI] Fix blank screen on init (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/screen_manager.h
diff --git a/ui/ozone/platform/dri/screen_manager.h b/ui/ozone/platform/dri/screen_manager.h
index eeca56ae31e96174f868b931168226e099f67f09..72278dbac074dabfde2d45bd4c69b0da6bcc8bd2 100644
--- a/ui/ozone/platform/dri/screen_manager.h
+++ b/ui/ozone/platform/dri/screen_manager.h
@@ -57,6 +57,11 @@ class ScreenManager {
base::WeakPtr<HardwareDisplayController> GetDisplayController(
const gfx::Rect& bounds);
+ // On non CrOS builds there is no display configurator to look-up available
+ // displays and initialize the HDCs. In such cases this is called internally
+ // to initialize a display.
+ virtual void ForceInitializationOfPrimaryDisplay();
+
private:
typedef ScopedVector<HardwareDisplayController> HardwareDisplayControllers;
@@ -69,11 +74,6 @@ class ScreenManager {
HardwareDisplayControllers::iterator FindActiveDisplayControllerByLocation(
const gfx::Rect& bounds);
- // Returns an iterator to the first controller located at |origin|. The
- // controller may be disabled.
- HardwareDisplayControllers::iterator FindDisplayControllerByLocation(
- const gfx::Rect& bounds);
-
// Perform modesetting in |controller| using |origin| and |mode|.
bool ModesetDisplayController(HardwareDisplayController* controller,
const gfx::Point& origin,
@@ -87,11 +87,6 @@ class ScreenManager {
uint32_t crtc,
uint32_t connector);
- // On non CrOS builds there is no display configurator to look-up available
- // displays and initialize the HDCs. In such cases this is called internally
- // to initialize a display.
- virtual void ForceInitializationOfPrimaryDisplay();
-
DriWrapper* dri_; // Not owned.
ScanoutBufferGenerator* buffer_generator_; // Not owned.
// List of display controllers (active and disabled).
« no previous file with comments | « ui/ozone/platform/dri/chromeos/native_display_delegate_dri.cc ('k') | ui/ozone/platform/dri/screen_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698