diff options
author | kkinnunen <kkinnunen@nvidia.com> | 2015-12-21 09:23:44 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-12-21 17:25:04 +0000 |
commit | a9d27e7cf8e6e08c5cbf56b3f600d02e150313be (patch) | |
tree | dc0cf690f7246407981c2275af67901329a139f0 /mojo | |
parent | 1ed82985c317377bff21e3f66a20d4ef87ec69b1 (diff) | |
download | chromium_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 'mojo')
-rw-r--r-- | mojo/gpu/mojo_gles2_impl_autogen.cc | 4 | ||||
-rw-r--r-- | mojo/gpu/mojo_gles2_impl_autogen.h | 1 | ||||
-rw-r--r-- | mojo/public/c/gles2/gles2_call_visitor_chromium_extension_autogen.h | 4 |
3 files changed, 9 insertions, 0 deletions
diff --git a/mojo/gpu/mojo_gles2_impl_autogen.cc b/mojo/gpu/mojo_gles2_impl_autogen.cc index 5818a65..7821ba8 100644 --- a/mojo/gpu/mojo_gles2_impl_autogen.cc +++ b/mojo/gpu/mojo_gles2_impl_autogen.cc @@ -1908,6 +1908,10 @@ void MojoGLES2Impl::ProgramPathFragmentInputGenCHROMIUM(GLuint program, glProgramPathFragmentInputGenCHROMIUM(program, location, genMode, components, coeffs); } +void MojoGLES2Impl::CoverageModulationCHROMIUM(GLenum components) { + MojoGLES2MakeCurrent(context_); + glCoverageModulationCHROMIUM(components); +} GLenum MojoGLES2Impl::GetGraphicsResetStatusKHR() { MojoGLES2MakeCurrent(context_); return glGetGraphicsResetStatusKHR(); diff --git a/mojo/gpu/mojo_gles2_impl_autogen.h b/mojo/gpu/mojo_gles2_impl_autogen.h index 4197089..ce84596 100644 --- a/mojo/gpu/mojo_gles2_impl_autogen.h +++ b/mojo/gpu/mojo_gles2_impl_autogen.h @@ -890,6 +890,7 @@ class MojoGLES2Impl : public gpu::gles2::GLES2Interface { GLenum genMode, GLint components, const GLfloat* coeffs) override; + void CoverageModulationCHROMIUM(GLenum components) override; GLenum GetGraphicsResetStatusKHR() override; void BlendBarrierKHR() override; void ApplyScreenSpaceAntialiasingCHROMIUM() override; diff --git a/mojo/public/c/gles2/gles2_call_visitor_chromium_extension_autogen.h b/mojo/public/c/gles2/gles2_call_visitor_chromium_extension_autogen.h index b2d8e24..3344493 100644 --- a/mojo/public/c/gles2/gles2_call_visitor_chromium_extension_autogen.h +++ b/mojo/public/c/gles2/gles2_call_visitor_chromium_extension_autogen.h @@ -577,6 +577,10 @@ VISIT_GL_CALL(ProgramPathFragmentInputGenCHROMIUM, GLint components, const GLfloat* coeffs), (program, location, genMode, components, coeffs)) +VISIT_GL_CALL(CoverageModulationCHROMIUM, + void, + (GLenum components), + (components)) VISIT_GL_CALL(GetGraphicsResetStatusKHR, GLenum, (), ()) VISIT_GL_CALL(BlendBarrierKHR, void, (), ()) VISIT_GL_CALL(ApplyScreenSpaceAntialiasingCHROMIUM, void, (), ()) |