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

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

Issue 138903025: Read compositor VSync information from platform, when possible (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: b5e5007a Updated. Created 6 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
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 <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 // Interface for classes that make decisions about which output state 166 // Interface for classes that make decisions about which output state
167 // should be used. 167 // should be used.
168 class StateController { 168 class StateController {
169 public: 169 public:
170 virtual ~StateController() {} 170 virtual ~StateController() {}
171 171
172 // Called when displays are detected. 172 // Called when displays are detected.
173 virtual OutputState GetStateForDisplayIds( 173 virtual OutputState GetStateForDisplayIds(
174 const std::vector<int64>& display_ids) const = 0; 174 const std::vector<int64>& display_ids) const = 0;
175 175
176 // Queries the resolution (|width|x|height|) in pixels 176 // Queries the resolution (|width|x|height|) in pixels and |refresh_rate| in
177 // to select output mode for the given display id. 177 // Hz to select output mode for the given display id.
oshima 2014/01/29 19:00:35 revert this change?
178 virtual bool GetResolutionForDisplayId(int64 display_id, 178 virtual bool GetResolutionForDisplayId(int64 display_id,
179 int* width, 179 int* width,
180 int* height) const = 0; 180 int* height) const = 0;
181 }; 181 };
182 182
183 // Interface for classes that implement software based mirroring. 183 // Interface for classes that implement software based mirroring.
184 class SoftwareMirroringController { 184 class SoftwareMirroringController {
185 public: 185 public:
186 virtual ~SoftwareMirroringController() {} 186 virtual ~SoftwareMirroringController() {}
187 187
(...skipping 373 matching lines...) Expand 10 before | Expand all | Expand 10 after
561 int casting_session_count_; 561 int casting_session_count_;
562 562
563 DISALLOW_COPY_AND_ASSIGN(OutputConfigurator); 563 DISALLOW_COPY_AND_ASSIGN(OutputConfigurator);
564 }; 564 };
565 565
566 typedef std::vector<OutputConfigurator::OutputSnapshot> OutputSnapshotList; 566 typedef std::vector<OutputConfigurator::OutputSnapshot> OutputSnapshotList;
567 567
568 } // namespace chromeos 568 } // namespace chromeos
569 569
570 #endif // CHROMEOS_DISPLAY_OUTPUT_CONFIGURATOR_H_ 570 #endif // CHROMEOS_DISPLAY_OUTPUT_CONFIGURATOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698