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

Unified Diff: gpu/command_buffer/build_gles2_cmd_buffer.py

Issue 1218223005: command_buffer: Implement CHROMIUM_framebuffer_mixed_samples extension (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@new-05-path-fragment-input-gen
Patch Set: rebase for commit Created 5 years 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/GLES2/gl2extchromium.h ('k') | gpu/command_buffer/client/gles2_c_lib_autogen.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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,
« no previous file with comments | « gpu/GLES2/gl2extchromium.h ('k') | gpu/command_buffer/client/gles2_c_lib_autogen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698