From 70c908cadedbf286a352085620e6ed33883af539 Mon Sep 17 00:00:00 2001 From: "danakj@chromium.org" <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> Date: Sun, 12 Jan 2014 02:09:45 +0000 Subject: 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 --- content/browser/gpu/gpu_process_host.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'content/browser/gpu/gpu_process_host.cc') 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, -- cgit v1.1