Refactor OpenGLVersion out of OpenGLFunctions.

We need the ability to parse the GL version irrespective of
GL extension handling, so pull it out into its own class.

BUG=dawn:580
Change-Id: I620267146159ba8e4fa8cba5f6ebff57e981add0
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/33540
Reviewed-by: Austin Eng <enga@chromium.org>
Commit-Queue: Stephen White <senorblanco@chromium.org>
This commit is contained in:
Stephen White
2020-11-23 18:50:42 +00:00
committed by Commit Bot service account
parent 66f753b5ed
commit 03badec5d7
7 changed files with 147 additions and 50 deletions

View File

@@ -12,6 +12,9 @@
//* See the License for the specific language governing permissions and
//* limitations under the License.
#ifndef DAWNNATIVE_OPENGL_OPENGLFUNCTIONSBASE_H_
#define DAWNNATIVE_OPENGL_OPENGLFUNCTIONSBASE_H_
#include "dawn_native/Error.h"
#include "dawn_native/opengl/opengl_platform.h"
@@ -38,3 +41,5 @@ namespace dawn_native { namespace opengl {
};
}} // namespace dawn_native::opengl
#endif // DAWNNATIVE_OPENGL_OPENGLFUNCTIONSBASE_H_