Index: gpu/command_buffer/build_gles2_cmd_buffer.py |
diff --git a/gpu/command_buffer/build_gles2_cmd_buffer.py b/gpu/command_buffer/build_gles2_cmd_buffer.py |
index 1cab6c8a1220967de66152f4e486f0a6390cb3c6..313c0370c95f697f6eb76a58570ba04115d105f4 100755 |
--- a/gpu/command_buffer/build_gles2_cmd_buffer.py |
+++ b/gpu/command_buffer/build_gles2_cmd_buffer.py |
@@ -150,6 +150,18 @@ _STATES = { |
{'name': 'stencil_clear', 'type': 'GLint', 'default': '0'}, |
], |
}, |
+ 'CoverageModulationCHROMIUM': { |
+ 'type': 'Normal', |
+ 'func': 'CoverageModulationNV', |
+ 'extension_flag': 'chromium_framebuffer_mixed_samples', |
+ 'states': [ |
+ { 'enum': 'GL_COVERAGE_MODULATION_CHROMIUM', |
+ 'name': 'coverage_modulation', |
+ 'type': 'GLenum', |
+ 'default': 'GL_NONE', |
+ }, |
+ ] |
+ }, |
'BlendColor': { |
'type': 'Normal', |
'func': 'BlendColor', |
@@ -653,6 +665,12 @@ _NAMED_TYPE_INFO = { |
'GL_LINEAR_MIPMAP_LINEAR', |
], |
}, |
+ 'CoverageModulationComponents': { |
+ 'type': 'GLenum', |
+ 'valid': [ |
+ 'GL_RGB', 'GL_RGBA', 'GL_ALPHA', 'GL_NONE' |
+ ], |
+ }, |
'FrameBufferTarget': { |
'type': 'GLenum', |
'valid': [ |
@@ -2445,6 +2463,14 @@ _FUNCTION_INFO = { |
'CopyBufferSubData': { |
'unsafe': True, |
}, |
+ 'CoverageModulationCHROMIUM': { |
+ 'type': 'StateSet', |
+ 'state': 'CoverageModulationCHROMIUM', |
+ 'decoder_func': 'glCoverageModulationNV', |
+ 'chromium': True, |
+ 'extension': 'CHROMIUM_framebuffer_mixed_samples', |
+ 'extension_flag': 'chromium_framebuffer_mixed_samples', |
+ }, |
'CreateAndConsumeTextureCHROMIUM': { |
'decoder_func': 'DoCreateAndConsumeTextureCHROMIUM', |
'impl_func': False, |