summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornduca@chromium.org <nduca@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-05-25 01:49:47 +0000
committernduca@chromium.org <nduca@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-05-25 01:49:47 +0000
commit8ff7f34d4f9aa91e8e7165e15f1e50b3f48cc875 (patch)
treec02aa611ade6c149c74fe831d66a6533a82ddb0d
parent384eb7ec33671b5e87fcafc31c8f01cd6bcb5025 (diff)
downloadchromium_src-8ff7f34d4f9aa91e8e7165e15f1e50b3f48cc875.zip
chromium_src-8ff7f34d4f9aa91e8e7165e15f1e50b3f48cc875.tar.gz
chromium_src-8ff7f34d4f9aa91e8e7165e15f1e50b3f48cc875.tar.bz2
Add disable-gpu-vsync to about:flags
Review URL: http://codereview.chromium.org/7067041 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86544 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--chrome/app/generated_resources.grd7
-rw-r--r--chrome/browser/about_flags.cc8
2 files changed, 15 insertions, 0 deletions
diff --git a/chrome/app/generated_resources.grd b/chrome/app/generated_resources.grd
index 24f96cf..10024c7 100644
--- a/chrome/app/generated_resources.grd
+++ b/chrome/app/generated_resources.grd
@@ -4149,6 +4149,13 @@ Keep your key file in a safe place. You will need it to create new versions of y
<message name="IDS_FLAGS_IGNORE_GPU_BLACKLIST_DESCRIPTION" desc="Description of the 'Ignore GPU blacklist' lab.">
Overrides the built-in software rendering list and enables GPU-acceleration on unsupported system configurations.
</message>
+ <message name="IDS_FLAGS_DISABLE_GPU_VSYNC_NAME" desc="Name of the 'Disable GPU VSync' lab.">
+ Disable GPU VSync
+ </message>
+ <message name="IDS_FLAGS_DISABLE_GPU_VSYNC_DESCRIPTION" desc="Description of the 'Disable GPU VSync' lab.">
+ Disables synchronization with the display's vertical refresh rate when GPU rendering. This allows frame rates to exceed
+ 60 hertz. While useful for benchmarking purposes, this also results in visual tearing during rapid screen updates.
+ </message>
<message name="IDS_FLAGS_WEBAUDIO_NAME" desc="Name of the 'Web Audio' lab.">
Web Audio
</message>
diff --git a/chrome/browser/about_flags.cc b/chrome/browser/about_flags.cc
index 44b3f4c..a1291e3 100644
--- a/chrome/browser/about_flags.cc
+++ b/chrome/browser/about_flags.cc
@@ -23,6 +23,7 @@
#include "content/browser/user_metrics.h"
#include "grit/generated_resources.h"
#include "ui/base/l10n/l10n_util.h"
+#include "ui/gfx/gl/gl_switches.h"
namespace about_flags {
@@ -160,6 +161,13 @@ const Experiment kExperiments[] = {
kOsAll,
SINGLE_VALUE_TYPE(switches::kShowFPSCounter)
},
+ {
+ "disable-gpu-vsync",
+ IDS_FLAGS_DISABLE_GPU_VSYNC_NAME,
+ IDS_FLAGS_DISABLE_GPU_VSYNC_DESCRIPTION,
+ kOsAll,
+ SINGLE_VALUE_TYPE(switches::kDisableGpuVsync)
+ },
#if !defined(GOOGLE_CHROME_BUILD)
// Only expose this for Chromium builds where users may not have the PDF
// plugin. Do not give Google Chrome users the option to disable it here.