From 8cefb231216c2777281f37a30e3fb8e67513ee2b Mon Sep 17 00:00:00 2001 From: kkinnunen Date: Fri, 4 Dec 2015 01:36:31 -0800 Subject: command_buffer: Implement EXT_blend_func_extended Implement EXT_blend_func_extended for command buffer ES 2.0 and ES 3.0 contexts. For the ES 2.0 context, the extension supports dual-source blending with pre-defined gl_SecondaryFragColorEXT and gl_SecondaryFragDataEXT variables. Currently EXT_blend_func_extended is only exposed if the service context supports program interface query. This means OpenGL context or OpenGL ES 3.1 context. This is to simplify the unit test expectation conditions. Theoretically also ES 2.0 and ES 3.0 service contexts could support EXT_blend_func_extended, but probably there will never be such a driver. BUG=506765 Review URL: https://codereview.chromium.org/1309743005 Cr-Commit-Position: refs/heads/master@{#363175} --- gpu/command_buffer/client/gles2_interface_stub_autogen.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'gpu/command_buffer/client/gles2_interface_stub_autogen.h') diff --git a/gpu/command_buffer/client/gles2_interface_stub_autogen.h b/gpu/command_buffer/client/gles2_interface_stub_autogen.h index 5469525..489afa2 100644 --- a/gpu/command_buffer/client/gles2_interface_stub_autogen.h +++ b/gpu/command_buffer/client/gles2_interface_stub_autogen.h @@ -859,4 +859,12 @@ void ProgramPathFragmentInputGenCHROMIUM(GLuint program, GLenum GetGraphicsResetStatusKHR() override; void BlendBarrierKHR() override; void ApplyScreenSpaceAntialiasingCHROMIUM() override; +void BindFragDataLocationIndexedEXT(GLuint program, + GLuint colorNumber, + GLuint index, + const char* name) override; +void BindFragDataLocationEXT(GLuint program, + GLuint colorNumber, + const char* name) override; +GLint GetFragDataIndexEXT(GLuint program, const char* name) override; #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_INTERFACE_STUB_AUTOGEN_H_ -- cgit v1.1