Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1308)

Unified Diff: gpu/command_buffer/service/gles2_cmd_validation_implementation_autogen.h

Issue 2025673003: command_buffer: expose SRC_ALPHA_SATURATE when on GLES 3 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Proper fix Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gpu/command_buffer/common/gles2_cmd_utils_implementation_autogen.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/service/gles2_cmd_validation_implementation_autogen.h
diff --git a/gpu/command_buffer/service/gles2_cmd_validation_implementation_autogen.h b/gpu/command_buffer/service/gles2_cmd_validation_implementation_autogen.h
index 3a3b84b461802d721dec672118c57f5ed3046d74..bcd3661541a0fa7dc23a91fc736e00a44c884f5e 100644
--- a/gpu/command_buffer/service/gles2_cmd_validation_implementation_autogen.h
+++ b/gpu/command_buffer/service/gles2_cmd_validation_implementation_autogen.h
@@ -199,6 +199,10 @@ static const GLenum valid_dst_blend_factor_table[] = {
GL_CONSTANT_ALPHA, GL_ONE_MINUS_CONSTANT_ALPHA,
};
+static const GLenum valid_dst_blend_factor_table_es3[] = {
+ GL_SRC_ALPHA_SATURATE,
+};
+
static const GLenum valid_equation_table[] = {
GL_FUNC_ADD, GL_FUNC_SUBTRACT, GL_FUNC_REVERSE_SUBTRACT,
};
@@ -1454,6 +1458,8 @@ void Validators::UpdateValuesES3() {
compressed_texture_format.AddValues(
valid_compressed_texture_format_table_es3,
arraysize(valid_compressed_texture_format_table_es3));
+ dst_blend_factor.AddValues(valid_dst_blend_factor_table_es3,
+ arraysize(valid_dst_blend_factor_table_es3));
equation.AddValues(valid_equation_table_es3,
arraysize(valid_equation_table_es3));
frame_buffer_parameter.AddValues(
« no previous file with comments | « gpu/command_buffer/common/gles2_cmd_utils_implementation_autogen.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698