diff options
author | backer@chromium.org <backer@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-21 13:17:45 +0000 |
---|---|---|
committer | backer@chromium.org <backer@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-21 13:17:45 +0000 |
commit | f7752782bffc044e83e542b588be43ad586f8904 (patch) | |
tree | 434af54b4399be791997adf39b03edd3ae318fd5 /ui | |
parent | 089d1865ae298680c1e34120747d391f62482bb9 (diff) | |
download | chromium_src-f7752782bffc044e83e542b588be43ad586f8904.zip chromium_src-f7752782bffc044e83e542b588be43ad586f8904.tar.gz chromium_src-f7752782bffc044e83e542b588be43ad586f8904.tar.bz2 |
Move app/app_switches to ui/gfx/gl/gl_switches.
This is in preparation of moving app/gfx/gl to ui/gfx/gl.
All of the switches in app_switches are GL related.
Removed many includes that were unnecessary.
BUG=none
TEST=trybots
Review URL: http://codereview.chromium.org/6685089
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@78875 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui')
-rw-r--r-- | ui/gfx/gl/gl_switches.cc | 20 | ||||
-rw-r--r-- | ui/gfx/gl/gl_switches.h | 18 | ||||
-rw-r--r-- | ui/ui_gfx.gypi | 2 |
3 files changed, 40 insertions, 0 deletions
diff --git a/ui/gfx/gl/gl_switches.cc b/ui/gfx/gl/gl_switches.cc new file mode 100644 index 0000000..b11075d --- /dev/null +++ b/ui/gfx/gl/gl_switches.cc @@ -0,0 +1,20 @@ +// Copyright (c) 2011 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#include "ui/gfx/gl/gl_switches.h" + +namespace switches { + +// Stop the GPU from synchronizing on the vsync before presenting. +const char kDisableGpuVsync[] = "disable-gpu-vsync"; + +// Select which implementation of GL the GPU process should use. Options are: +// desktop: whatever desktop OpenGL the user has installed (Linux and Mac +// default). +// egl: whatever EGL / GLES2 the user has installed (Windows default - actually +// ANGLE). +// osmesa: The OSMesa software renderer. +const char kUseGL[] = "use-gl"; + +} // namespace switches diff --git a/ui/gfx/gl/gl_switches.h b/ui/gfx/gl/gl_switches.h new file mode 100644 index 0000000..b910fe9 --- /dev/null +++ b/ui/gfx/gl/gl_switches.h @@ -0,0 +1,18 @@ +// Copyright (c) 2011 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +// Defines all the command-line switches used by ui/gfx/gl. + +#ifndef UI_GFX_GL_GL_SWITCHES_H_ +#define UI_GFX_GL_GL_SWITCHES_H_ +#pragma once + +namespace switches { + +extern const char kDisableGpuVsync[]; +extern const char kUseGL[]; + +} // namespace switches + +#endif // UI_GFX_GL_GL_SWITCHES_H_ diff --git a/ui/ui_gfx.gypi b/ui/ui_gfx.gypi index 9d27543..d3c36d3 100644 --- a/ui/ui_gfx.gypi +++ b/ui/ui_gfx.gypi @@ -81,6 +81,8 @@ 'gfx/gfx_paths.h', 'gfx/gfx_module.cc', 'gfx/gfx_module.h', + 'gfx/gl/gl_switches.cc', + 'gfx/gl/gl_switches.h', 'gfx/image.cc', 'gfx/image.h', 'gfx/image_mac.mm', |