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

Unified Diff: chromeos/display/real_output_configurator_delegate.h

Issue 22871010: chromeos: Include mode details in OutputSnapshot. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 7 years, 4 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
« no previous file with comments | « chromeos/display/output_util.cc ('k') | chromeos/display/real_output_configurator_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/display/real_output_configurator_delegate.h
diff --git a/chromeos/display/real_output_configurator_delegate.h b/chromeos/display/real_output_configurator_delegate.h
index 9f083cf59bb338f5e6f08740dedf12378dfbef24..2753ae55ffb19c778613eab77193abb8467c1699 100644
--- a/chromeos/display/real_output_configurator_delegate.h
+++ b/chromeos/display/real_output_configurator_delegate.h
@@ -39,11 +39,6 @@ class RealOutputConfiguratorDelegate : public OutputConfigurator::Delegate {
virtual void ForceDPMSOn() OVERRIDE;
virtual std::vector<OutputConfigurator::OutputSnapshot> GetOutputs(
const OutputConfigurator::StateController* state_controller) OVERRIDE;
- virtual bool GetModeDetails(
- RRMode mode,
- int* width,
- int* height,
- bool* interlaced) OVERRIDE;
virtual bool ConfigureCrtc(
RRCrtc crtc,
RRMode mode,
@@ -60,6 +55,19 @@ class RealOutputConfiguratorDelegate : public OutputConfigurator::Delegate {
virtual void SendProjectingStateToPowerManager(bool projecting) OVERRIDE;
private:
+ // Gets details corresponding to |mode|. Parameters may be NULL. Returns
+ // true on success.
+ bool GetModeDetails(RRMode mode, int* width, int* height, bool* interlaced);
+
+ // Helper method for GetOutputs() that returns an OutputSnapshot struct based
+ // on the passed-in information. Further initialization is required (e.g.
+ // |selected_mode|, |mirror_mode|, and |touch_device_id|).
+ OutputConfigurator::OutputSnapshot InitOutputSnapshot(
+ RROutput id,
+ XRROutputInfo* info,
+ RRCrtc* last_used_crtc,
+ int index);
+
// Destroys unused CRTCs and parks used CRTCs in a way which allows a
// framebuffer resize. This is faster than turning them off, resizing,
// then turning them back on.
« no previous file with comments | « chromeos/display/output_util.cc ('k') | chromeos/display/real_output_configurator_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698