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

Side by Side Diff: chromeos/display/output_configurator.h

Issue 12079002: Minimize black screen during the boot with multi displays (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « ash/shell.cc ('k') | chromeos/display/output_configurator.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CHROMEOS_DISPLAY_OUTPUT_CONFIGURATOR_H_ 5 #ifndef CHROMEOS_DISPLAY_OUTPUT_CONFIGURATOR_H_
6 #define CHROMEOS_DISPLAY_OUTPUT_CONFIGURATOR_H_ 6 #define CHROMEOS_DISPLAY_OUTPUT_CONFIGURATOR_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 64
65 OutputConfigurator(); 65 OutputConfigurator();
66 virtual ~OutputConfigurator(); 66 virtual ~OutputConfigurator();
67 67
68 int connected_output_count() const { return connected_output_count_; } 68 int connected_output_count() const { return connected_output_count_; }
69 69
70 OutputState output_state() const { return output_state_; } 70 OutputState output_state() const { return output_state_; }
71 71
72 // Initialization, must be called right after constructor. 72 // Initialization, must be called right after constructor.
73 // |is_panel_fitting_enabled| indicates hardware panel fitting support. 73 // |is_panel_fitting_enabled| indicates hardware panel fitting support.
74 void Init(bool is_panel_fitting_enabled); 74 // If |background_color_argb| is non zero and there are multiple displays,
75 // OutputConfigurator sets the background color of X's RootWindow to this
76 // color.
77 void Init(bool is_panel_fitting_enabled, uint32 background_color_argb);
75 78
76 // Called when the user hits ctrl-F4 to request a display mode change. 79 // Called when the user hits ctrl-F4 to request a display mode change.
77 // This method should only return false if it was called in a single-head or 80 // This method should only return false if it was called in a single-head or
78 // headless mode. 81 // headless mode.
79 bool CycleDisplayMode(); 82 bool CycleDisplayMode();
80 83
81 // Called when powerd notifies us that some set of displays should be turned 84 // Called when powerd notifies us that some set of displays should be turned
82 // on or off. This requires enabling or disabling the CRTC associated with 85 // on or off. This requires enabling or disabling the CRTC associated with
83 // the display(s) in question so that the low power state is engaged. 86 // the display(s) in question so that the low power state is engaged.
84 bool ScreenPowerSet(bool power_on, bool all_displays); 87 bool ScreenPowerSet(bool power_on, bool all_displays);
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 212
210 // Indicates the time at which |output_state_| was entered. 213 // Indicates the time at which |output_state_| was entered.
211 base::TimeTicks last_enter_state_time_; 214 base::TimeTicks last_enter_state_time_;
212 215
213 DISALLOW_COPY_AND_ASSIGN(OutputConfigurator); 216 DISALLOW_COPY_AND_ASSIGN(OutputConfigurator);
214 }; 217 };
215 218
216 } // namespace chromeos 219 } // namespace chromeos
217 220
218 #endif // CHROMEOS_DISPLAY_OUTPUT_CONFIGURATOR_H_ 221 #endif // CHROMEOS_DISPLAY_OUTPUT_CONFIGURATOR_H_
OLDNEW
« no previous file with comments | « ash/shell.cc ('k') | chromeos/display/output_configurator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698