diff options
author | kbr@google.com <kbr@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-30 18:35:49 +0000 |
---|---|---|
committer | kbr@google.com <kbr@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-30 18:35:49 +0000 |
commit | 8db89020f48b2cba994f7ee48176250dad6e91c7 (patch) | |
tree | 374fb6f5d5960bc7c9d5f4550d7b5d4af3beebc6 /chrome/common | |
parent | 149fd6df098f406fcb8bcabc12c9a8fefda49058 (diff) | |
download | chromium_src-8db89020f48b2cba994f7ee48176250dad6e91c7.zip chromium_src-8db89020f48b2cba994f7ee48176250dad6e91c7.tar.gz chromium_src-8db89020f48b2cba994f7ee48176250dad6e91c7.tar.bz2 |
Added command line argument --enable-webgl to facilitate turning on
ENABLE_3D_CANVAS in development builds. Currently this argument also
requires disabling the sandbox.
BUG=http://crbug.com/21852
TEST=none (runs preexisting WebGL layout tests; more coming)
Review URL: http://codereview.chromium.org/246042
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@27637 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common')
-rw-r--r-- | chrome/common/chrome_switches.cc | 3 | ||||
-rw-r--r-- | chrome/common/chrome_switches.h | 2 | ||||
-rw-r--r-- | chrome/common/render_messages.h | 4 |
3 files changed, 8 insertions, 1 deletions
diff --git a/chrome/common/chrome_switches.cc b/chrome/common/chrome_switches.cc index 72d6a5f..b619517 100644 --- a/chrome/common/chrome_switches.cc +++ b/chrome/common/chrome_switches.cc @@ -615,4 +615,7 @@ const wchar_t kExplicitlyAllowedPorts[] = L"explicitly-allowed-ports"; // is launched on the command line (e.g. by Selenium). Only needed on Mac. const wchar_t kActivateOnLaunch[] = L"activate-on-launch"; +// Enable experimental WebGL support. +const wchar_t kEnableExperimentalWebGL[] = L"enable-webgl"; + } // namespace switches diff --git a/chrome/common/chrome_switches.h b/chrome/common/chrome_switches.h index 79b185e..f6cb10d 100644 --- a/chrome/common/chrome_switches.h +++ b/chrome/common/chrome_switches.h @@ -248,6 +248,8 @@ extern const wchar_t kExplicitlyAllowedPorts[]; extern const wchar_t kActivateOnLaunch[]; +extern const wchar_t kEnableExperimentalWebGL[]; + } // namespace switches #endif // CHROME_COMMON_CHROME_SWITCHES_H_ diff --git a/chrome/common/render_messages.h b/chrome/common/render_messages.h index 99a4a68..90fd465 100644 --- a/chrome/common/render_messages.h +++ b/chrome/common/render_messages.h @@ -1650,6 +1650,7 @@ struct ParamTraits<WebPreferences> { WriteParam(m, p.databases_enabled); WriteParam(m, p.session_storage_enabled); WriteParam(m, p.application_cache_enabled); + WriteParam(m, p.experimental_webgl_enabled); } static bool Read(const Message* m, void** iter, param_type* p) { return @@ -1684,7 +1685,8 @@ struct ParamTraits<WebPreferences> { ReadParam(m, iter, &p->local_storage_enabled) && ReadParam(m, iter, &p->databases_enabled) && ReadParam(m, iter, &p->session_storage_enabled) && - ReadParam(m, iter, &p->application_cache_enabled); + ReadParam(m, iter, &p->application_cache_enabled) && + ReadParam(m, iter, &p->experimental_webgl_enabled); } static void Log(const param_type& p, std::wstring* l) { l->append(L"<WebPreferences>"); |