angle/util
Olli Etuaho 624fbdcf55 Refactor CompileProgram utility
Tests often need to call gl functions to set up program related state
after glCreateProgram has been called but prior to glLinkProgram is
called. Add a callback function to the CompileProgram utility function
to fulfill this need. This reduces code duplication considerably in
several tests.

An alternative way to improve CompileProgram would be to split it into
several different utility functions. This might be slightly easier to
read, but would also be a larger refactoring and require more checks
at the call site.

This will make it easier to implement EXT_blend_func_extended tests,
which need to bind fragment outputs to different slots.

BUG=angleproject:1085
TEST=angle_end2end_tests

Change-Id: I3ac8b7bdc21c6a1f14517bc7df0cf6f35abd7612
Reviewed-on: https://chromium-review.googlesource.com/1254062
Commit-Queue: Olli Etuaho <oetuaho@nvidia.com>
Reviewed-by: Corentin Wallez <cwallez@chromium.org>
2018-10-01 20:03:38 +00:00
..
android Compile deqp_gles2 on Android 2016-08-24 00:25:40 +00:00
linux Move some file utils to common. 2017-01-05 23:41:59 +00:00
osx Move some file utils to common. 2017-01-05 23:41:59 +00:00
ozone Initial Chrome OS support. 2016-05-12 17:37:35 +00:00
posix Remove angle::Library and its usages 2018-02-09 22:58:38 +00:00
windows Remove angle::Library and its usages 2018-02-09 22:58:38 +00:00
x11 Refactoring: replace NULL by nullptr for pointers (3rd CL). 2017-04-25 14:32:47 +00:00
EGLWindow.cpp Clean up PlatformMethods attribute enum 2018-08-30 22:20:00 +00:00
EGLWindow.h WGL: Support unvirtualized contexts and unsafe multithreading. 2018-06-21 20:21:27 +00:00
Event.h Fix text trailing after preprocessor macro warning in util/Event.h 2015-05-04 17:23:58 +00:00
Matrix.cpp common: Add a vector arithmetic helper classes 2016-12-02 15:28:39 +00:00
Matrix.h common: Add a vector arithmetic helper classes 2016-12-02 15:28:39 +00:00
OSPixmap.h Change angle_util to be a shared library 2016-08-30 20:50:59 +00:00
OSWindow.cpp Apply Chromium style fixes. 2017-11-22 06:34:40 +00:00
OSWindow.h Apply Chromium style fixes. 2017-11-22 06:34:40 +00:00
Timer.h Change angle_util to be a shared library 2016-08-30 20:50:59 +00:00
com_utils.h Add extension EGL_ANGLE_device_d3d 2015-04-14 17:37:48 +00:00
geometry_utils.cpp Apply Chromium style fixes. 2017-11-22 06:34:40 +00:00
geometry_utils.h Apply Chromium style fixes. 2017-11-22 06:34:40 +00:00
keyboard.h Add a util project to share between samples and tests. 2014-08-21 20:41:09 +00:00
mouse.h Add a util project to share between samples and tests. 2014-08-21 20:41:09 +00:00
random_utils.cpp Reland "GLES1: Entry points for lighting and materials" 2018-05-25 17:07:04 +00:00
random_utils.h Fix build on Windows using Visual Studio 2018-06-11 17:22:22 +00:00
shader_utils.cpp Refactor CompileProgram utility 2018-10-01 20:03:38 +00:00
shader_utils.h Refactor CompileProgram utility 2018-10-01 20:03:38 +00:00
system_utils.h Remove angle::Library and its usages 2018-02-09 22:58:38 +00:00
util.gni Avoid rebase_path() in BUILD.gn. 2018-08-30 18:45:22 +00:00