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

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: Addressed review comments of Patch Set 2 Created 8 years, 3 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
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 4d79705e01a53f6b98c9cb47e76c0bf5122b756c..4eae479862c8c0d3b543cd7589e8cb1dab306560 100644
--- a/chrome/browser/ui/webui/gpu_internals_ui.cc
+++ b/chrome/browser/ui/webui/gpu_internals_ui.cc
@@ -6,6 +6,7 @@
#include <string>
+#include "ash/ash_switches.h"
#include "base/bind.h"
#include "base/bind_helpers.h"
#include "base/command_line.h"
@@ -283,6 +284,14 @@ Value* GetFeatureStatus() {
"Accelerated video decode has been disabled, either via about:flags"
" or command line.",
true
+ },
+ {
+ "panel_fitting",
+ flags & content::GPU_FEATURE_TYPE_PANEL_FITTING,
+ command_line.HasSwitch(ash::switches::kAshDisablePanelFitting),
+ "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);

Powered by Google App Engine
This is Rietveld 408576698