From f7752782bffc044e83e542b588be43ad586f8904 Mon Sep 17 00:00:00 2001 From: "backer@chromium.org" Date: Mon, 21 Mar 2011 13:17:45 +0000 Subject: 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 --- ui/gfx/gl/gl_switches.cc | 20 ++++++++++++++++++++ ui/gfx/gl/gl_switches.h | 18 ++++++++++++++++++ ui/ui_gfx.gypi | 2 ++ 3 files changed, 40 insertions(+) create mode 100644 ui/gfx/gl/gl_switches.cc create mode 100644 ui/gfx/gl/gl_switches.h (limited to 'ui') 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', -- cgit v1.1