OSDN Git Service

Allow Chromium to create an OpenGL ES3 context android-x86-7.1-r1 android-x86-7.1-r2
authorAlexis Hetu <sugoi@google.com>
Wed, 16 Aug 2017 21:15:48 +0000 (17:15 -0400)
committerAlexis Hétu <sugoi@google.com>
Thu, 17 Aug 2017 18:16:40 +0000 (18:16 +0000)
Removing the "STRICT_CONFORMANCE" restriction from Chromium.
This allows OpenGL ES3 context creation when using the flag
"--use-gl=swiftshader", which is the case when running layout
tests.
This does not allow WebGL 2 content to be used when using the
flag "--disable-gpu". This will require extra validation on the
Chromium side.

Change-Id: Ic4770c1acbc454a954e1ce813ebed9ed3aee5cd2
Reviewed-on: https://swiftshader-review.googlesource.com/11750
Tested-by: Alexis Hétu <sugoi@google.com>
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
Reviewed-by: Alexis Hétu <sugoi@google.com>
BUILD.gn

index 39f72cb..0ef68d9 100644 (file)
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -15,7 +15,7 @@
 import("//build/config/compiler/compiler.gni")
 
 config("swiftshader_config") {
 import("//build/config/compiler/compiler.gni")
 
 config("swiftshader_config") {
-  defines = [ "STRICT_CONFORMANCE" ]  # Disables OpenGL ES 3.0
+  defines = []
 
   if (is_win) {
     cflags = [
 
   if (is_win) {
     cflags = [