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

Side by Side Diff: ui/gl/gl_bindings_autogen_mock.cc

Issue 1523233003: Add bindings for GL_[ARB/EXT]_shader_image_load_store (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 unified diff | Download patch
« no previous file with comments | « ui/gl/gl_bindings_autogen_mock.h ('k') | ui/gl/gl_mock_autogen_gl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 // 4 //
5 // This file is auto-generated from 5 // This file is auto-generated from
6 // ui/gl/generate_bindings.py 6 // ui/gl/generate_bindings.py
7 // It's formatted by clang-format using chromium coding style: 7 // It's formatted by clang-format using chromium coding style:
8 // clang-format -i -style=chromium filename 8 // clang-format -i -style=chromium filename
9 // DO NOT EDIT! 9 // DO NOT EDIT!
10 10
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 MakeFunctionUnique("glBindFramebuffer"); 131 MakeFunctionUnique("glBindFramebuffer");
132 interface_->BindFramebufferEXT(target, framebuffer); 132 interface_->BindFramebufferEXT(target, framebuffer);
133 } 133 }
134 134
135 void GL_BINDING_CALL 135 void GL_BINDING_CALL
136 MockGLInterface::Mock_glBindFramebufferEXT(GLenum target, GLuint framebuffer) { 136 MockGLInterface::Mock_glBindFramebufferEXT(GLenum target, GLuint framebuffer) {
137 MakeFunctionUnique("glBindFramebufferEXT"); 137 MakeFunctionUnique("glBindFramebufferEXT");
138 interface_->BindFramebufferEXT(target, framebuffer); 138 interface_->BindFramebufferEXT(target, framebuffer);
139 } 139 }
140 140
141 void GL_BINDING_CALL MockGLInterface::Mock_glBindImageTexture(GLuint index,
142 GLuint texture,
143 GLint level,
144 GLboolean layered,
145 GLint layer,
146 GLenum access,
147 GLint format) {
148 MakeFunctionUnique("glBindImageTexture");
149 interface_->BindImageTextureEXT(index, texture, level, layered, layer, access,
150 format);
151 }
152
153 void GL_BINDING_CALL
154 MockGLInterface::Mock_glBindImageTextureEXT(GLuint index,
155 GLuint texture,
156 GLint level,
157 GLboolean layered,
158 GLint layer,
159 GLenum access,
160 GLint format) {
161 MakeFunctionUnique("glBindImageTextureEXT");
162 interface_->BindImageTextureEXT(index, texture, level, layered, layer, access,
163 format);
164 }
165
141 void GL_BINDING_CALL 166 void GL_BINDING_CALL
142 MockGLInterface::Mock_glBindRenderbuffer(GLenum target, GLuint renderbuffer) { 167 MockGLInterface::Mock_glBindRenderbuffer(GLenum target, GLuint renderbuffer) {
143 MakeFunctionUnique("glBindRenderbuffer"); 168 MakeFunctionUnique("glBindRenderbuffer");
144 interface_->BindRenderbufferEXT(target, renderbuffer); 169 interface_->BindRenderbufferEXT(target, renderbuffer);
145 } 170 }
146 171
147 void GL_BINDING_CALL 172 void GL_BINDING_CALL
148 MockGLInterface::Mock_glBindRenderbufferEXT(GLenum target, 173 MockGLInterface::Mock_glBindRenderbufferEXT(GLenum target,
149 GLuint renderbuffer) { 174 GLuint renderbuffer) {
150 MakeFunctionUnique("glBindRenderbufferEXT"); 175 MakeFunctionUnique("glBindRenderbufferEXT");
(...skipping 1725 matching lines...) Expand 10 before | Expand all | Expand 10 after
1876 interface_->MatrixLoadIdentityEXT(matrixMode); 1901 interface_->MatrixLoadIdentityEXT(matrixMode);
1877 } 1902 }
1878 1903
1879 void GL_BINDING_CALL MockGLInterface::Mock_glMatrixLoadfEXT(GLenum matrixMode, 1904 void GL_BINDING_CALL MockGLInterface::Mock_glMatrixLoadfEXT(GLenum matrixMode,
1880 const GLfloat* m) { 1905 const GLfloat* m) {
1881 MakeFunctionUnique("glMatrixLoadfEXT"); 1906 MakeFunctionUnique("glMatrixLoadfEXT");
1882 interface_->MatrixLoadfEXT(matrixMode, m); 1907 interface_->MatrixLoadfEXT(matrixMode, m);
1883 } 1908 }
1884 1909
1885 void GL_BINDING_CALL 1910 void GL_BINDING_CALL
1911 MockGLInterface::Mock_glMemoryBarrier(GLbitfield barriers) {
1912 MakeFunctionUnique("glMemoryBarrier");
1913 interface_->MemoryBarrierEXT(barriers);
1914 }
1915
1916 void GL_BINDING_CALL
1917 MockGLInterface::Mock_glMemoryBarrierEXT(GLbitfield barriers) {
1918 MakeFunctionUnique("glMemoryBarrierEXT");
1919 interface_->MemoryBarrierEXT(barriers);
1920 }
1921
1922 void GL_BINDING_CALL
1886 MockGLInterface::Mock_glPathCommandsNV(GLuint path, 1923 MockGLInterface::Mock_glPathCommandsNV(GLuint path,
1887 GLsizei numCommands, 1924 GLsizei numCommands,
1888 const GLubyte* commands, 1925 const GLubyte* commands,
1889 GLsizei numCoords, 1926 GLsizei numCoords,
1890 GLenum coordType, 1927 GLenum coordType,
1891 const GLvoid* coords) { 1928 const GLvoid* coords) {
1892 MakeFunctionUnique("glPathCommandsNV"); 1929 MakeFunctionUnique("glPathCommandsNV");
1893 interface_->PathCommandsNV(path, numCommands, commands, numCoords, coordType, 1930 interface_->PathCommandsNV(path, numCommands, commands, numCoords, coordType,
1894 coords); 1931 coords);
1895 } 1932 }
(...skipping 993 matching lines...) Expand 10 before | Expand all | Expand 10 after
2889 if (strcmp(name, "glBindFragDataLocationEXT") == 0) 2926 if (strcmp(name, "glBindFragDataLocationEXT") == 0)
2890 return reinterpret_cast<void*>(Mock_glBindFragDataLocationEXT); 2927 return reinterpret_cast<void*>(Mock_glBindFragDataLocationEXT);
2891 if (strcmp(name, "glBindFragDataLocationIndexed") == 0) 2928 if (strcmp(name, "glBindFragDataLocationIndexed") == 0)
2892 return reinterpret_cast<void*>(Mock_glBindFragDataLocationIndexed); 2929 return reinterpret_cast<void*>(Mock_glBindFragDataLocationIndexed);
2893 if (strcmp(name, "glBindFragDataLocationIndexedEXT") == 0) 2930 if (strcmp(name, "glBindFragDataLocationIndexedEXT") == 0)
2894 return reinterpret_cast<void*>(Mock_glBindFragDataLocationIndexedEXT); 2931 return reinterpret_cast<void*>(Mock_glBindFragDataLocationIndexedEXT);
2895 if (strcmp(name, "glBindFramebuffer") == 0) 2932 if (strcmp(name, "glBindFramebuffer") == 0)
2896 return reinterpret_cast<void*>(Mock_glBindFramebuffer); 2933 return reinterpret_cast<void*>(Mock_glBindFramebuffer);
2897 if (strcmp(name, "glBindFramebufferEXT") == 0) 2934 if (strcmp(name, "glBindFramebufferEXT") == 0)
2898 return reinterpret_cast<void*>(Mock_glBindFramebufferEXT); 2935 return reinterpret_cast<void*>(Mock_glBindFramebufferEXT);
2936 if (strcmp(name, "glBindImageTexture") == 0)
2937 return reinterpret_cast<void*>(Mock_glBindImageTexture);
2938 if (strcmp(name, "glBindImageTextureEXT") == 0)
2939 return reinterpret_cast<void*>(Mock_glBindImageTextureEXT);
2899 if (strcmp(name, "glBindRenderbuffer") == 0) 2940 if (strcmp(name, "glBindRenderbuffer") == 0)
2900 return reinterpret_cast<void*>(Mock_glBindRenderbuffer); 2941 return reinterpret_cast<void*>(Mock_glBindRenderbuffer);
2901 if (strcmp(name, "glBindRenderbufferEXT") == 0) 2942 if (strcmp(name, "glBindRenderbufferEXT") == 0)
2902 return reinterpret_cast<void*>(Mock_glBindRenderbufferEXT); 2943 return reinterpret_cast<void*>(Mock_glBindRenderbufferEXT);
2903 if (strcmp(name, "glBindSampler") == 0) 2944 if (strcmp(name, "glBindSampler") == 0)
2904 return reinterpret_cast<void*>(Mock_glBindSampler); 2945 return reinterpret_cast<void*>(Mock_glBindSampler);
2905 if (strcmp(name, "glBindTexture") == 0) 2946 if (strcmp(name, "glBindTexture") == 0)
2906 return reinterpret_cast<void*>(Mock_glBindTexture); 2947 return reinterpret_cast<void*>(Mock_glBindTexture);
2907 if (strcmp(name, "glBindTransformFeedback") == 0) 2948 if (strcmp(name, "glBindTransformFeedback") == 0)
2908 return reinterpret_cast<void*>(Mock_glBindTransformFeedback); 2949 return reinterpret_cast<void*>(Mock_glBindTransformFeedback);
(...skipping 455 matching lines...) Expand 10 before | Expand all | Expand 10 after
3364 if (strcmp(name, "glMapBufferOES") == 0) 3405 if (strcmp(name, "glMapBufferOES") == 0)
3365 return reinterpret_cast<void*>(Mock_glMapBufferOES); 3406 return reinterpret_cast<void*>(Mock_glMapBufferOES);
3366 if (strcmp(name, "glMapBufferRange") == 0) 3407 if (strcmp(name, "glMapBufferRange") == 0)
3367 return reinterpret_cast<void*>(Mock_glMapBufferRange); 3408 return reinterpret_cast<void*>(Mock_glMapBufferRange);
3368 if (strcmp(name, "glMapBufferRangeEXT") == 0) 3409 if (strcmp(name, "glMapBufferRangeEXT") == 0)
3369 return reinterpret_cast<void*>(Mock_glMapBufferRangeEXT); 3410 return reinterpret_cast<void*>(Mock_glMapBufferRangeEXT);
3370 if (strcmp(name, "glMatrixLoadIdentityEXT") == 0) 3411 if (strcmp(name, "glMatrixLoadIdentityEXT") == 0)
3371 return reinterpret_cast<void*>(Mock_glMatrixLoadIdentityEXT); 3412 return reinterpret_cast<void*>(Mock_glMatrixLoadIdentityEXT);
3372 if (strcmp(name, "glMatrixLoadfEXT") == 0) 3413 if (strcmp(name, "glMatrixLoadfEXT") == 0)
3373 return reinterpret_cast<void*>(Mock_glMatrixLoadfEXT); 3414 return reinterpret_cast<void*>(Mock_glMatrixLoadfEXT);
3415 if (strcmp(name, "glMemoryBarrier") == 0)
3416 return reinterpret_cast<void*>(Mock_glMemoryBarrier);
3417 if (strcmp(name, "glMemoryBarrierEXT") == 0)
3418 return reinterpret_cast<void*>(Mock_glMemoryBarrierEXT);
3374 if (strcmp(name, "glPathCommandsNV") == 0) 3419 if (strcmp(name, "glPathCommandsNV") == 0)
3375 return reinterpret_cast<void*>(Mock_glPathCommandsNV); 3420 return reinterpret_cast<void*>(Mock_glPathCommandsNV);
3376 if (strcmp(name, "glPathParameterfNV") == 0) 3421 if (strcmp(name, "glPathParameterfNV") == 0)
3377 return reinterpret_cast<void*>(Mock_glPathParameterfNV); 3422 return reinterpret_cast<void*>(Mock_glPathParameterfNV);
3378 if (strcmp(name, "glPathParameteriNV") == 0) 3423 if (strcmp(name, "glPathParameteriNV") == 0)
3379 return reinterpret_cast<void*>(Mock_glPathParameteriNV); 3424 return reinterpret_cast<void*>(Mock_glPathParameteriNV);
3380 if (strcmp(name, "glPathStencilFuncNV") == 0) 3425 if (strcmp(name, "glPathStencilFuncNV") == 0)
3381 return reinterpret_cast<void*>(Mock_glPathStencilFuncNV); 3426 return reinterpret_cast<void*>(Mock_glPathStencilFuncNV);
3382 if (strcmp(name, "glPauseTransformFeedback") == 0) 3427 if (strcmp(name, "glPauseTransformFeedback") == 0)
3383 return reinterpret_cast<void*>(Mock_glPauseTransformFeedback); 3428 return reinterpret_cast<void*>(Mock_glPauseTransformFeedback);
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
3611 if (strcmp(name, "glVertexAttribPointer") == 0) 3656 if (strcmp(name, "glVertexAttribPointer") == 0)
3612 return reinterpret_cast<void*>(Mock_glVertexAttribPointer); 3657 return reinterpret_cast<void*>(Mock_glVertexAttribPointer);
3613 if (strcmp(name, "glViewport") == 0) 3658 if (strcmp(name, "glViewport") == 0)
3614 return reinterpret_cast<void*>(Mock_glViewport); 3659 return reinterpret_cast<void*>(Mock_glViewport);
3615 if (strcmp(name, "glWaitSync") == 0) 3660 if (strcmp(name, "glWaitSync") == 0)
3616 return reinterpret_cast<void*>(Mock_glWaitSync); 3661 return reinterpret_cast<void*>(Mock_glWaitSync);
3617 return reinterpret_cast<void*>(&MockInvalidFunction); 3662 return reinterpret_cast<void*>(&MockInvalidFunction);
3618 } 3663 }
3619 3664
3620 } // namespace gfx 3665 } // namespace gfx
OLDNEW
« no previous file with comments | « ui/gl/gl_bindings_autogen_mock.h ('k') | ui/gl/gl_mock_autogen_gl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698