diff options
author | danakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-01-12 02:09:45 +0000 |
---|---|---|
committer | danakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-01-12 02:09:45 +0000 |
commit | 70c908cadedbf286a352085620e6ed33883af539 (patch) | |
tree | 17d296cc20667c0bbe50059684203b4328d6d336 /content/browser/gpu/gpu_process_host.cc | |
parent | 6396b29769ef2593823152d4ed0e0fe5b556958f (diff) | |
download | chromium_src-70c908cadedbf286a352085620e6ed33883af539.zip chromium_src-70c908cadedbf286a352085620e6ed33883af539.tar.gz chromium_src-70c908cadedbf286a352085620e6ed33883af539.tar.bz2 |
Allow tests to stub out GL draw calls.
This allows us to use real GL bindings but without drawing when we
don't care about pixel output, allowing for faster execution. In
particular this will allow us to use OSMesa instead of a completely
fake GL implementation in the compositor for browser tests.
We add a new kDisableGLDrawingForTests command line flag that can
be set to prevent the GL draw calls from doing any work. We will be
able to set this flag in the browser test environment for any tests
that don't require real pixel output.
R=piman, sievers
BUG=270918
Review URL: https://codereview.chromium.org/132473009
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@244405 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/gpu/gpu_process_host.cc')
-rw-r--r-- | content/browser/gpu/gpu_process_host.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/content/browser/gpu/gpu_process_host.cc b/content/browser/gpu/gpu_process_host.cc index e533225..28265ed 100644 --- a/content/browser/gpu/gpu_process_host.cc +++ b/content/browser/gpu/gpu_process_host.cc @@ -1119,6 +1119,7 @@ bool GpuProcessHost::LaunchGpuProcess(const std::string& channel_id) { static const char* const kSwitchNames[] = { switches::kDisableAcceleratedVideoDecode, switches::kDisableBreakpad, + switches::kDisableGLDrawingForTests, switches::kDisableGLMultisampling, switches::kDisableGpuSandbox, switches::kDisableGpuWatchdog, |