Commit add0ef14 by Kenneth Russell

Remove deprecated ShShaderOutput versions.

These aren't referenced from Chromium code any more. BUG=chromium:550487 Change-Id: Ie4094667ec5f739efd9f1253ffdb779deaf3cebc Reviewed-on: https://chromium-review.googlesource.com/319162Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org> Reviewed-by: 's avatarGeoff Lang <geofflang@chromium.org> Tested-by: 's avatarKenneth Russell <kbr@chromium.org>
parent 5aeed4cc
...@@ -48,7 +48,7 @@ typedef unsigned int GLenum; ...@@ -48,7 +48,7 @@ typedef unsigned int GLenum;
// Version number for shader translation API. // Version number for shader translation API.
// It is incremented every time the API changes. // It is incremented every time the API changes.
#define ANGLE_SH_VERSION 140 #define ANGLE_SH_VERSION 141
typedef enum { typedef enum {
SH_GLES2_SPEC = 0x8B40, SH_GLES2_SPEC = 0x8B40,
...@@ -82,13 +82,8 @@ typedef enum { ...@@ -82,13 +82,8 @@ typedef enum {
typedef enum { typedef enum {
SH_ESSL_OUTPUT = 0x8B45, SH_ESSL_OUTPUT = 0x8B45,
// SH_GLSL_OUTPUT is deprecated. This is to not break the build.
SH_GLSL_OUTPUT = 0x8B46,
SH_GLSL_COMPATIBILITY_OUTPUT = 0x8B46, SH_GLSL_COMPATIBILITY_OUTPUT = 0x8B46,
// SH_GLSL_CORE_OUTPUT is deprecated. //Note: GL introduced core profiles in 1.5.
SH_GLSL_CORE_OUTPUT = 0x8B47,
//Note: GL introduced core profiles in 1.5. However, for compatiblity with Chromium, we treat SH_GLSL_CORE_OUTPUT as GLSL_130_OUTPUT.
//TODO: Remove SH_GLSL_CORE_OUTPUT
SH_GLSL_130_OUTPUT = 0x8B47, SH_GLSL_130_OUTPUT = 0x8B47,
SH_GLSL_140_OUTPUT = 0x8B80, SH_GLSL_140_OUTPUT = 0x8B80,
SH_GLSL_150_CORE_OUTPUT = 0x8B81, SH_GLSL_150_CORE_OUTPUT = 0x8B81,
......
...@@ -146,7 +146,7 @@ class EXTBlendFuncExtendedTest ...@@ -146,7 +146,7 @@ class EXTBlendFuncExtendedTest
{ {
DestroyCompiler(); DestroyCompiler();
mCompiler = ShConstructCompiler(GL_FRAGMENT_SHADER, testing::get<0>(GetParam()), mCompiler = ShConstructCompiler(GL_FRAGMENT_SHADER, testing::get<0>(GetParam()),
SH_GLSL_OUTPUT, &mResources); SH_GLSL_COMPATIBILITY_OUTPUT, &mResources);
ASSERT_TRUE(mCompiler != NULL) << "Compiler could not be constructed."; ASSERT_TRUE(mCompiler != NULL) << "Compiler could not be constructed.";
} }
......
...@@ -41,8 +41,8 @@ class FragDepthTest : public testing::TestWithParam<bool> ...@@ -41,8 +41,8 @@ class FragDepthTest : public testing::TestWithParam<bool>
void InitializeCompiler() void InitializeCompiler()
{ {
DestroyCompiler(); DestroyCompiler();
mCompiler = mCompiler = ShConstructCompiler(GL_FRAGMENT_SHADER, SH_GLES3_SPEC,
ShConstructCompiler(GL_FRAGMENT_SHADER, SH_GLES3_SPEC, SH_GLSL_OUTPUT, &mResources); SH_GLSL_COMPATIBILITY_OUTPUT, &mResources);
ASSERT_TRUE(mCompiler != nullptr) << "Compiler could not be constructed."; ASSERT_TRUE(mCompiler != nullptr) << "Compiler could not be constructed.";
} }
......
...@@ -20,8 +20,8 @@ class ShCompileTest : public testing::Test ...@@ -20,8 +20,8 @@ class ShCompileTest : public testing::Test
void SetUp() override void SetUp() override
{ {
ShInitBuiltInResources(&mResources); ShInitBuiltInResources(&mResources);
mCompiler = mCompiler = ShConstructCompiler(GL_FRAGMENT_SHADER, SH_WEBGL_SPEC,
ShConstructCompiler(GL_FRAGMENT_SHADER, SH_WEBGL_SPEC, SH_GLSL_OUTPUT, &mResources); SH_GLSL_COMPATIBILITY_OUTPUT, &mResources);
ASSERT_TRUE(mCompiler != nullptr) << "Compiler could not be constructed."; ASSERT_TRUE(mCompiler != nullptr) << "Compiler could not be constructed.";
} }
......
...@@ -73,7 +73,8 @@ class ShaderExtensionTest : public testing::Test ...@@ -73,7 +73,8 @@ class ShaderExtensionTest : public testing::Test
void InitializeCompiler() void InitializeCompiler()
{ {
DestroyCompiler(); DestroyCompiler();
mCompiler = ShConstructCompiler(GL_FRAGMENT_SHADER, SH_WEBGL_SPEC, SH_GLSL_OUTPUT, &mResources); mCompiler = ShConstructCompiler(GL_FRAGMENT_SHADER, SH_WEBGL_SPEC,
SH_GLSL_COMPATIBILITY_OUTPUT, &mResources);
ASSERT_TRUE(mCompiler != NULL) << "Compiler could not be constructed."; ASSERT_TRUE(mCompiler != NULL) << "Compiler could not be constructed.";
} }
......
...@@ -230,7 +230,8 @@ TEST(ShaderVariableTest, InvariantDoubleDeleteBug) ...@@ -230,7 +230,8 @@ TEST(ShaderVariableTest, InvariantDoubleDeleteBug)
ShBuiltInResources resources; ShBuiltInResources resources;
ShInitBuiltInResources(&resources); ShInitBuiltInResources(&resources);
ShHandle compiler = ShConstructCompiler(GL_VERTEX_SHADER, SH_GLES2_SPEC, SH_GLSL_OUTPUT, &resources); ShHandle compiler = ShConstructCompiler(GL_VERTEX_SHADER, SH_GLES2_SPEC,
SH_GLSL_COMPATIBILITY_OUTPUT, &resources);
EXPECT_NE(static_cast<ShHandle>(0), compiler); EXPECT_NE(static_cast<ShHandle>(0), compiler);
const char *program[] = const char *program[] =
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment