| OLD | NEW |
| 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 // gpu/command_buffer/build_gles2_cmd_buffer.py | 6 // gpu/command_buffer/build_gles2_cmd_buffer.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 |
| 11 #include "mojo/gpu/mojo_gles2_impl_autogen.h" | 11 #include "mojo/gpu/mojo_gles2_impl_autogen.h" |
| 12 | 12 |
| 13 #include "base/logging.h" | 13 #include "base/logging.h" |
| 14 #include "third_party/mojo/src/mojo/public/c/gles2/chromium_miscellaneous.h" |
| 15 #include "third_party/mojo/src/mojo/public/c/gles2/chromium_sub_image.h" |
| 14 #include "third_party/mojo/src/mojo/public/c/gles2/chromium_sync_point.h" | 16 #include "third_party/mojo/src/mojo/public/c/gles2/chromium_sync_point.h" |
| 15 #include "third_party/mojo/src/mojo/public/c/gles2/chromium_texture_mailbox.h" | 17 #include "third_party/mojo/src/mojo/public/c/gles2/chromium_texture_mailbox.h" |
| 16 #include "third_party/mojo/src/mojo/public/c/gles2/gles2.h" | 18 #include "third_party/mojo/src/mojo/public/c/gles2/gles2.h" |
| 19 #include "third_party/mojo/src/mojo/public/c/gles2/occlusion_query_ext.h" |
| 17 | 20 |
| 18 namespace mojo { | 21 namespace mojo { |
| 19 | 22 |
| 20 void MojoGLES2Impl::ActiveTexture(GLenum texture) { | 23 void MojoGLES2Impl::ActiveTexture(GLenum texture) { |
| 21 MojoGLES2MakeCurrent(context_); | 24 MojoGLES2MakeCurrent(context_); |
| 22 glActiveTexture(texture); | 25 glActiveTexture(texture); |
| 23 } | 26 } |
| 24 void MojoGLES2Impl::AttachShader(GLuint program, GLuint shader) { | 27 void MojoGLES2Impl::AttachShader(GLuint program, GLuint shader) { |
| 25 MojoGLES2MakeCurrent(context_); | 28 MojoGLES2MakeCurrent(context_); |
| 26 glAttachShader(program, shader); | 29 glAttachShader(program, shader); |
| (...skipping 728 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 755 GLsizei count, | 758 GLsizei count, |
| 756 const GLchar* const* str, | 759 const GLchar* const* str, |
| 757 const GLint* length) { | 760 const GLint* length) { |
| 758 MojoGLES2MakeCurrent(context_); | 761 MojoGLES2MakeCurrent(context_); |
| 759 glShaderSource(shader, count, str, length); | 762 glShaderSource(shader, count, str, length); |
| 760 } | 763 } |
| 761 void MojoGLES2Impl::ShallowFinishCHROMIUM() { | 764 void MojoGLES2Impl::ShallowFinishCHROMIUM() { |
| 762 NOTREACHED() << "Unimplemented ShallowFinishCHROMIUM."; | 765 NOTREACHED() << "Unimplemented ShallowFinishCHROMIUM."; |
| 763 } | 766 } |
| 764 void MojoGLES2Impl::ShallowFlushCHROMIUM() { | 767 void MojoGLES2Impl::ShallowFlushCHROMIUM() { |
| 765 return static_cast<gpu::gles2::GLES2Interface*>( | 768 MojoGLES2MakeCurrent(context_); |
| 766 MojoGLES2GetGLES2Interface(context_))->ShallowFlushCHROMIUM(); | 769 glShallowFlushCHROMIUM(); |
| 767 } | 770 } |
| 768 void MojoGLES2Impl::OrderingBarrierCHROMIUM() { | 771 void MojoGLES2Impl::OrderingBarrierCHROMIUM() { |
| 769 NOTREACHED() << "Unimplemented OrderingBarrierCHROMIUM."; | 772 NOTREACHED() << "Unimplemented OrderingBarrierCHROMIUM."; |
| 770 } | 773 } |
| 771 void MojoGLES2Impl::StencilFunc(GLenum func, GLint ref, GLuint mask) { | 774 void MojoGLES2Impl::StencilFunc(GLenum func, GLint ref, GLuint mask) { |
| 772 MojoGLES2MakeCurrent(context_); | 775 MojoGLES2MakeCurrent(context_); |
| 773 glStencilFunc(func, ref, mask); | 776 glStencilFunc(func, ref, mask); |
| 774 } | 777 } |
| 775 void MojoGLES2Impl::StencilFuncSeparate(GLenum face, | 778 void MojoGLES2Impl::StencilFuncSeparate(GLenum face, |
| 776 GLenum func, | 779 GLenum func, |
| (...skipping 410 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1187 NOTREACHED() << "Unimplemented FramebufferTexture2DMultisampleEXT."; | 1190 NOTREACHED() << "Unimplemented FramebufferTexture2DMultisampleEXT."; |
| 1188 } | 1191 } |
| 1189 void MojoGLES2Impl::TexStorage2DEXT(GLenum target, | 1192 void MojoGLES2Impl::TexStorage2DEXT(GLenum target, |
| 1190 GLsizei levels, | 1193 GLsizei levels, |
| 1191 GLenum internalFormat, | 1194 GLenum internalFormat, |
| 1192 GLsizei width, | 1195 GLsizei width, |
| 1193 GLsizei height) { | 1196 GLsizei height) { |
| 1194 NOTREACHED() << "Unimplemented TexStorage2DEXT."; | 1197 NOTREACHED() << "Unimplemented TexStorage2DEXT."; |
| 1195 } | 1198 } |
| 1196 void MojoGLES2Impl::GenQueriesEXT(GLsizei n, GLuint* queries) { | 1199 void MojoGLES2Impl::GenQueriesEXT(GLsizei n, GLuint* queries) { |
| 1197 return static_cast<gpu::gles2::GLES2Interface*>( | 1200 MojoGLES2MakeCurrent(context_); |
| 1198 MojoGLES2GetGLES2Interface(context_))->GenQueriesEXT(n, queries); | 1201 glGenQueriesEXT(n, queries); |
| 1199 } | 1202 } |
| 1200 void MojoGLES2Impl::DeleteQueriesEXT(GLsizei n, const GLuint* queries) { | 1203 void MojoGLES2Impl::DeleteQueriesEXT(GLsizei n, const GLuint* queries) { |
| 1201 return static_cast<gpu::gles2::GLES2Interface*>( | 1204 MojoGLES2MakeCurrent(context_); |
| 1202 MojoGLES2GetGLES2Interface(context_)) | 1205 glDeleteQueriesEXT(n, queries); |
| 1203 ->DeleteQueriesEXT(n, queries); | |
| 1204 } | 1206 } |
| 1205 GLboolean MojoGLES2Impl::IsQueryEXT(GLuint id) { | 1207 GLboolean MojoGLES2Impl::IsQueryEXT(GLuint id) { |
| 1206 NOTREACHED() << "Unimplemented IsQueryEXT."; | 1208 MojoGLES2MakeCurrent(context_); |
| 1207 return 0; | 1209 return glIsQueryEXT(id); |
| 1208 } | 1210 } |
| 1209 void MojoGLES2Impl::BeginQueryEXT(GLenum target, GLuint id) { | 1211 void MojoGLES2Impl::BeginQueryEXT(GLenum target, GLuint id) { |
| 1210 return static_cast<gpu::gles2::GLES2Interface*>( | 1212 MojoGLES2MakeCurrent(context_); |
| 1211 MojoGLES2GetGLES2Interface(context_))->BeginQueryEXT(target, id); | 1213 glBeginQueryEXT(target, id); |
| 1212 } | 1214 } |
| 1213 void MojoGLES2Impl::BeginTransformFeedback(GLenum primitivemode) { | 1215 void MojoGLES2Impl::BeginTransformFeedback(GLenum primitivemode) { |
| 1214 NOTREACHED() << "Unimplemented BeginTransformFeedback."; | 1216 NOTREACHED() << "Unimplemented BeginTransformFeedback."; |
| 1215 } | 1217 } |
| 1216 void MojoGLES2Impl::EndQueryEXT(GLenum target) { | 1218 void MojoGLES2Impl::EndQueryEXT(GLenum target) { |
| 1217 return static_cast<gpu::gles2::GLES2Interface*>( | 1219 MojoGLES2MakeCurrent(context_); |
| 1218 MojoGLES2GetGLES2Interface(context_))->EndQueryEXT(target); | 1220 glEndQueryEXT(target); |
| 1219 } | 1221 } |
| 1220 void MojoGLES2Impl::EndTransformFeedback() { | 1222 void MojoGLES2Impl::EndTransformFeedback() { |
| 1221 NOTREACHED() << "Unimplemented EndTransformFeedback."; | 1223 NOTREACHED() << "Unimplemented EndTransformFeedback."; |
| 1222 } | 1224 } |
| 1223 void MojoGLES2Impl::GetQueryivEXT(GLenum target, GLenum pname, GLint* params) { | 1225 void MojoGLES2Impl::GetQueryivEXT(GLenum target, GLenum pname, GLint* params) { |
| 1224 NOTREACHED() << "Unimplemented GetQueryivEXT."; | 1226 MojoGLES2MakeCurrent(context_); |
| 1227 glGetQueryivEXT(target, pname, params); |
| 1225 } | 1228 } |
| 1226 void MojoGLES2Impl::GetQueryObjectuivEXT(GLuint id, | 1229 void MojoGLES2Impl::GetQueryObjectuivEXT(GLuint id, |
| 1227 GLenum pname, | 1230 GLenum pname, |
| 1228 GLuint* params) { | 1231 GLuint* params) { |
| 1229 return static_cast<gpu::gles2::GLES2Interface*>( | 1232 MojoGLES2MakeCurrent(context_); |
| 1230 MojoGLES2GetGLES2Interface(context_)) | 1233 glGetQueryObjectuivEXT(id, pname, params); |
| 1231 ->GetQueryObjectuivEXT(id, pname, params); | |
| 1232 } | 1234 } |
| 1233 void MojoGLES2Impl::InsertEventMarkerEXT(GLsizei length, const GLchar* marker) { | 1235 void MojoGLES2Impl::InsertEventMarkerEXT(GLsizei length, const GLchar* marker) { |
| 1234 NOTREACHED() << "Unimplemented InsertEventMarkerEXT."; | 1236 NOTREACHED() << "Unimplemented InsertEventMarkerEXT."; |
| 1235 } | 1237 } |
| 1236 void MojoGLES2Impl::PushGroupMarkerEXT(GLsizei length, const GLchar* marker) { | 1238 void MojoGLES2Impl::PushGroupMarkerEXT(GLsizei length, const GLchar* marker) { |
| 1237 NOTREACHED() << "Unimplemented PushGroupMarkerEXT."; | 1239 NOTREACHED() << "Unimplemented PushGroupMarkerEXT."; |
| 1238 } | 1240 } |
| 1239 void MojoGLES2Impl::PopGroupMarkerEXT() { | 1241 void MojoGLES2Impl::PopGroupMarkerEXT() { |
| 1240 NOTREACHED() << "Unimplemented PopGroupMarkerEXT."; | 1242 NOTREACHED() << "Unimplemented PopGroupMarkerEXT."; |
| 1241 } | 1243 } |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1297 } | 1299 } |
| 1298 void* MojoGLES2Impl::MapTexSubImage2DCHROMIUM(GLenum target, | 1300 void* MojoGLES2Impl::MapTexSubImage2DCHROMIUM(GLenum target, |
| 1299 GLint level, | 1301 GLint level, |
| 1300 GLint xoffset, | 1302 GLint xoffset, |
| 1301 GLint yoffset, | 1303 GLint yoffset, |
| 1302 GLsizei width, | 1304 GLsizei width, |
| 1303 GLsizei height, | 1305 GLsizei height, |
| 1304 GLenum format, | 1306 GLenum format, |
| 1305 GLenum type, | 1307 GLenum type, |
| 1306 GLenum access) { | 1308 GLenum access) { |
| 1307 return static_cast<gpu::gles2::GLES2Interface*>( | 1309 MojoGLES2MakeCurrent(context_); |
| 1308 MojoGLES2GetGLES2Interface(context_)) | 1310 return glMapTexSubImage2DCHROMIUM(target, level, xoffset, yoffset, width, |
| 1309 ->MapTexSubImage2DCHROMIUM(target, level, xoffset, yoffset, width, height, | 1311 height, format, type, access); |
| 1310 format, type, access); | |
| 1311 } | 1312 } |
| 1312 void MojoGLES2Impl::UnmapTexSubImage2DCHROMIUM(const void* mem) { | 1313 void MojoGLES2Impl::UnmapTexSubImage2DCHROMIUM(const void* mem) { |
| 1313 return static_cast<gpu::gles2::GLES2Interface*>( | 1314 MojoGLES2MakeCurrent(context_); |
| 1314 MojoGLES2GetGLES2Interface(context_)) | 1315 glUnmapTexSubImage2DCHROMIUM(mem); |
| 1315 ->UnmapTexSubImage2DCHROMIUM(mem); | |
| 1316 } | 1316 } |
| 1317 void MojoGLES2Impl::ResizeCHROMIUM(GLuint width, | 1317 void MojoGLES2Impl::ResizeCHROMIUM(GLuint width, |
| 1318 GLuint height, | 1318 GLuint height, |
| 1319 GLfloat scale_factor) { | 1319 GLfloat scale_factor) { |
| 1320 NOTREACHED() << "Unimplemented ResizeCHROMIUM."; | 1320 NOTREACHED() << "Unimplemented ResizeCHROMIUM."; |
| 1321 } | 1321 } |
| 1322 const GLchar* MojoGLES2Impl::GetRequestableExtensionsCHROMIUM() { | 1322 const GLchar* MojoGLES2Impl::GetRequestableExtensionsCHROMIUM() { |
| 1323 NOTREACHED() << "Unimplemented GetRequestableExtensionsCHROMIUM."; | 1323 NOTREACHED() << "Unimplemented GetRequestableExtensionsCHROMIUM."; |
| 1324 return 0; | 1324 return 0; |
| 1325 } | 1325 } |
| (...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1561 NOTREACHED() << "Unimplemented MatrixLoadfCHROMIUM."; | 1561 NOTREACHED() << "Unimplemented MatrixLoadfCHROMIUM."; |
| 1562 } | 1562 } |
| 1563 void MojoGLES2Impl::MatrixLoadIdentityCHROMIUM(GLenum matrixMode) { | 1563 void MojoGLES2Impl::MatrixLoadIdentityCHROMIUM(GLenum matrixMode) { |
| 1564 NOTREACHED() << "Unimplemented MatrixLoadIdentityCHROMIUM."; | 1564 NOTREACHED() << "Unimplemented MatrixLoadIdentityCHROMIUM."; |
| 1565 } | 1565 } |
| 1566 void MojoGLES2Impl::BlendBarrierKHR() { | 1566 void MojoGLES2Impl::BlendBarrierKHR() { |
| 1567 NOTREACHED() << "Unimplemented BlendBarrierKHR."; | 1567 NOTREACHED() << "Unimplemented BlendBarrierKHR."; |
| 1568 } | 1568 } |
| 1569 | 1569 |
| 1570 } // namespace mojo | 1570 } // namespace mojo |
| OLD | NEW |