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

Unified Diff: chromeos/display/output_util.cc

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.h ('k') | chromeos/display/real_output_configurator_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/display/output_util.cc
diff --git a/chromeos/display/output_util.cc b/chromeos/display/output_util.cc
index d9d291319d54d61a6773c511e42d17c080bff773..4800a2d30843ac3015f4d25fe6efa4c3d97ee604 100644
--- a/chromeos/display/output_util.cc
+++ b/chromeos/display/output_util.cc
@@ -331,8 +331,8 @@ bool IsInternalOutputName(const std::string& name) {
name.find(kInternal_DSI) == 0;
}
-const XRRModeInfo* FindModeInfo(const XRRScreenResources* screen_resources,
- XID current_mode) {
+const XRRModeInfo* FindXRRModeInfo(const XRRScreenResources* screen_resources,
+ XID current_mode) {
for (int m = 0; m < screen_resources->nmode; m++) {
XRRModeInfo *mode = &screen_resources->modes[m];
if (mode->id == current_mode)
@@ -353,7 +353,7 @@ RRMode FindOutputModeMatchingSize(
bool non_interlaced_found = false;
for (int i = 0; i < output_info->nmode; ++i) {
RRMode mode = output_info->modes[i];
- const XRRModeInfo* info = FindModeInfo(screen_resources, mode);
+ const XRRModeInfo* info = FindXRRModeInfo(screen_resources, mode);
if (info->width == width && info->height == height) {
float rate = GetRefreshRate(info);
« no previous file with comments | « chromeos/display/output_util.h ('k') | chromeos/display/real_output_configurator_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698