summaryrefslogtreecommitdiffstats
path: root/gpu/command_buffer/build_gles2_cmd_buffer.py
diff options
context:
space:
mode:
authorkkinnunen <kkinnunen@nvidia.com>2015-12-21 09:23:44 -0800
committerCommit bot <commit-bot@chromium.org>2015-12-21 17:25:04 +0000
commita9d27e7cf8e6e08c5cbf56b3f600d02e150313be (patch)
treedc0cf690f7246407981c2275af67901329a139f0 /gpu/command_buffer/build_gles2_cmd_buffer.py
parent1ed82985c317377bff21e3f66a20d4ef87ec69b1 (diff)
downloadchromium_src-a9d27e7cf8e6e08c5cbf56b3f600d02e150313be.zip
chromium_src-a9d27e7cf8e6e08c5cbf56b3f600d02e150313be.tar.gz
chromium_src-a9d27e7cf8e6e08c5cbf56b3f600d02e150313be.tar.bz2
command_buffer: Implement CHROMIUM_framebuffer_mixed_samples extension
Implement a pseudo-extension that allows using attachments of different sample counts in framebuffers. The extension is implemented by the means of GL_NV_framebuffer_mixed_samples. At the present form, should be usable in Skia to implement mixed samples. BUG=506765 TBR=jam@chromium.org Review URL: https://codereview.chromium.org/1218223005 Cr-Commit-Position: refs/heads/master@{#366403}
Diffstat (limited to 'gpu/command_buffer/build_gles2_cmd_buffer.py')
-rwxr-xr-xgpu/command_buffer/build_gles2_cmd_buffer.py26
1 files changed, 26 insertions, 0 deletions
diff --git a/gpu/command_buffer/build_gles2_cmd_buffer.py b/gpu/command_buffer/build_gles2_cmd_buffer.py
index 1cab6c8..313c037 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,