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

Unified Diff: chrome/browser/ui/webui/gpu_internals_ui.cc

Issue 10909242: Add "panel_fitting" GPU feature type and use it for mirror mode. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fix compilation on non-Chrome OS Created 8 years, 2 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 | « chrome/browser/resources/gpu_internals/info_view.js ('k') | chromeos/display/output_configurator.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/gpu_internals_ui.cc
diff --git a/chrome/browser/ui/webui/gpu_internals_ui.cc b/chrome/browser/ui/webui/gpu_internals_ui.cc
index 4feab38f23864003c85d431f7eb967ec15d3b30c..e7e9f601582ef8178318743d073c33ea2d753a34 100644
--- a/chrome/browser/ui/webui/gpu_internals_ui.cc
+++ b/chrome/browser/ui/webui/gpu_internals_ui.cc
@@ -6,6 +6,9 @@
#include <string>
+#if defined(OS_CHROMEOS)
+#include "ash/ash_switches.h"
+#endif
#include "base/bind.h"
#include "base/bind_helpers.h"
#include "base/command_line.h"
@@ -300,6 +303,18 @@ Value* GetFeatureStatus() {
"Accelerated video presentation has been disabled, either via"
" about:flags or command line.",
true
+ },
+ {
+ "panel_fitting",
+ flags & content::GPU_FEATURE_TYPE_PANEL_FITTING,
+#if defined(OS_CHROMEOS)
+ command_line.HasSwitch(ash::switches::kAshDisablePanelFitting),
+#else
+ true,
+#endif
+ "Panel fitting is unavailable, either disabled at the command"
+ " line or not supported by the current system.",
+ false
}
};
const size_t kNumFeatures = sizeof(kGpuFeatureInfo) / sizeof(GpuFeatureInfo);
« no previous file with comments | « chrome/browser/resources/gpu_internals/info_view.js ('k') | chromeos/display/output_configurator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698