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 /ui/gl/gl_bindings.h | |
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 'ui/gl/gl_bindings.h')
-rw-r--r-- | ui/gl/gl_bindings.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ui/gl/gl_bindings.h b/ui/gl/gl_bindings.h index debb074..abde8c8 100644 --- a/ui/gl/gl_bindings.h +++ b/ui/gl/gl_bindings.h @@ -228,6 +228,7 @@ struct GL_EXPORT DriverGL { void Initialize(); void InitializeExtensions(GLContext* context); void InitializeDebugBindings(); + void InitializeNullDrawBindings(); void ClearBindings(); void UpdateDebugExtensionBindings(); |