| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 4229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4240 } | 4240 } |
| 4241 | 4241 |
| 4242 void GLApiBase::glReadnPixelsRobustANGLEFn(GLint x, | 4242 void GLApiBase::glReadnPixelsRobustANGLEFn(GLint x, |
| 4243 GLint y, | 4243 GLint y, |
| 4244 GLsizei width, | 4244 GLsizei width, |
| 4245 GLsizei height, | 4245 GLsizei height, |
| 4246 GLenum format, | 4246 GLenum format, |
| 4247 GLenum type, | 4247 GLenum type, |
| 4248 GLsizei bufSize, | 4248 GLsizei bufSize, |
| 4249 GLsizei* length, | 4249 GLsizei* length, |
| 4250 GLsizei* columns, | |
| 4251 GLsizei* rows, | |
| 4252 void* data) { | 4250 void* data) { |
| 4253 driver_->fn.glReadnPixelsRobustANGLEFn(x, y, width, height, format, type, | 4251 driver_->fn.glReadnPixelsRobustANGLEFn(x, y, width, height, format, type, |
| 4254 bufSize, length, columns, rows, data); | 4252 bufSize, length, data); |
| 4255 } | 4253 } |
| 4256 | 4254 |
| 4257 void GLApiBase::glReadPixelsFn(GLint x, | 4255 void GLApiBase::glReadPixelsFn(GLint x, |
| 4258 GLint y, | 4256 GLint y, |
| 4259 GLsizei width, | 4257 GLsizei width, |
| 4260 GLsizei height, | 4258 GLsizei height, |
| 4261 GLenum format, | 4259 GLenum format, |
| 4262 GLenum type, | 4260 GLenum type, |
| 4263 void* pixels) { | 4261 void* pixels) { |
| 4264 driver_->fn.glReadPixelsFn(x, y, width, height, format, type, pixels); | 4262 driver_->fn.glReadPixelsFn(x, y, width, height, format, type, pixels); |
| 4265 } | 4263 } |
| 4266 | 4264 |
| 4267 void GLApiBase::glReadPixelsRobustANGLEFn(GLint x, | 4265 void GLApiBase::glReadPixelsRobustANGLEFn(GLint x, |
| 4268 GLint y, | 4266 GLint y, |
| 4269 GLsizei width, | 4267 GLsizei width, |
| 4270 GLsizei height, | 4268 GLsizei height, |
| 4271 GLenum format, | 4269 GLenum format, |
| 4272 GLenum type, | 4270 GLenum type, |
| 4273 GLsizei bufSize, | 4271 GLsizei bufSize, |
| 4274 GLsizei* length, | 4272 GLsizei* length, |
| 4275 GLsizei* columns, | |
| 4276 GLsizei* rows, | |
| 4277 void* pixels) { | 4273 void* pixels) { |
| 4278 driver_->fn.glReadPixelsRobustANGLEFn(x, y, width, height, format, type, | 4274 driver_->fn.glReadPixelsRobustANGLEFn(x, y, width, height, format, type, |
| 4279 bufSize, length, columns, rows, pixels); | 4275 bufSize, length, pixels); |
| 4280 } | 4276 } |
| 4281 | 4277 |
| 4282 void GLApiBase::glReleaseShaderCompilerFn(void) { | 4278 void GLApiBase::glReleaseShaderCompilerFn(void) { |
| 4283 driver_->fn.glReleaseShaderCompilerFn(); | 4279 driver_->fn.glReleaseShaderCompilerFn(); |
| 4284 } | 4280 } |
| 4285 | 4281 |
| 4286 void GLApiBase::glRenderbufferStorageEXTFn(GLenum target, | 4282 void GLApiBase::glRenderbufferStorageEXTFn(GLenum target, |
| 4287 GLenum internalformat, | 4283 GLenum internalformat, |
| 4288 GLsizei width, | 4284 GLsizei width, |
| 4289 GLsizei height) { | 4285 GLsizei height) { |
| (...skipping 2853 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7143 } | 7139 } |
| 7144 | 7140 |
| 7145 void TraceGLApi::glReadnPixelsRobustANGLEFn(GLint x, | 7141 void TraceGLApi::glReadnPixelsRobustANGLEFn(GLint x, |
| 7146 GLint y, | 7142 GLint y, |
| 7147 GLsizei width, | 7143 GLsizei width, |
| 7148 GLsizei height, | 7144 GLsizei height, |
| 7149 GLenum format, | 7145 GLenum format, |
| 7150 GLenum type, | 7146 GLenum type, |
| 7151 GLsizei bufSize, | 7147 GLsizei bufSize, |
| 7152 GLsizei* length, | 7148 GLsizei* length, |
| 7153 GLsizei* columns, | |
| 7154 GLsizei* rows, | |
| 7155 void* data) { | 7149 void* data) { |
| 7156 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glReadnPixelsRobustANGLE") | 7150 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glReadnPixelsRobustANGLE") |
| 7157 gl_api_->glReadnPixelsRobustANGLEFn(x, y, width, height, format, type, | 7151 gl_api_->glReadnPixelsRobustANGLEFn(x, y, width, height, format, type, |
| 7158 bufSize, length, columns, rows, data); | 7152 bufSize, length, data); |
| 7159 } | 7153 } |
| 7160 | 7154 |
| 7161 void TraceGLApi::glReadPixelsFn(GLint x, | 7155 void TraceGLApi::glReadPixelsFn(GLint x, |
| 7162 GLint y, | 7156 GLint y, |
| 7163 GLsizei width, | 7157 GLsizei width, |
| 7164 GLsizei height, | 7158 GLsizei height, |
| 7165 GLenum format, | 7159 GLenum format, |
| 7166 GLenum type, | 7160 GLenum type, |
| 7167 void* pixels) { | 7161 void* pixels) { |
| 7168 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glReadPixels") | 7162 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glReadPixels") |
| 7169 gl_api_->glReadPixelsFn(x, y, width, height, format, type, pixels); | 7163 gl_api_->glReadPixelsFn(x, y, width, height, format, type, pixels); |
| 7170 } | 7164 } |
| 7171 | 7165 |
| 7172 void TraceGLApi::glReadPixelsRobustANGLEFn(GLint x, | 7166 void TraceGLApi::glReadPixelsRobustANGLEFn(GLint x, |
| 7173 GLint y, | 7167 GLint y, |
| 7174 GLsizei width, | 7168 GLsizei width, |
| 7175 GLsizei height, | 7169 GLsizei height, |
| 7176 GLenum format, | 7170 GLenum format, |
| 7177 GLenum type, | 7171 GLenum type, |
| 7178 GLsizei bufSize, | 7172 GLsizei bufSize, |
| 7179 GLsizei* length, | 7173 GLsizei* length, |
| 7180 GLsizei* columns, | |
| 7181 GLsizei* rows, | |
| 7182 void* pixels) { | 7174 void* pixels) { |
| 7183 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glReadPixelsRobustANGLE") | 7175 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glReadPixelsRobustANGLE") |
| 7184 gl_api_->glReadPixelsRobustANGLEFn(x, y, width, height, format, type, bufSize, | 7176 gl_api_->glReadPixelsRobustANGLEFn(x, y, width, height, format, type, bufSize, |
| 7185 length, columns, rows, pixels); | 7177 length, pixels); |
| 7186 } | 7178 } |
| 7187 | 7179 |
| 7188 void TraceGLApi::glReleaseShaderCompilerFn(void) { | 7180 void TraceGLApi::glReleaseShaderCompilerFn(void) { |
| 7189 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glReleaseShaderCompiler") | 7181 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glReleaseShaderCompiler") |
| 7190 gl_api_->glReleaseShaderCompilerFn(); | 7182 gl_api_->glReleaseShaderCompilerFn(); |
| 7191 } | 7183 } |
| 7192 | 7184 |
| 7193 void TraceGLApi::glRenderbufferStorageEXTFn(GLenum target, | 7185 void TraceGLApi::glRenderbufferStorageEXTFn(GLenum target, |
| 7194 GLenum internalformat, | 7186 GLenum internalformat, |
| 7195 GLsizei width, | 7187 GLsizei width, |
| (...skipping 3664 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10860 } | 10852 } |
| 10861 | 10853 |
| 10862 void DebugGLApi::glReadnPixelsRobustANGLEFn(GLint x, | 10854 void DebugGLApi::glReadnPixelsRobustANGLEFn(GLint x, |
| 10863 GLint y, | 10855 GLint y, |
| 10864 GLsizei width, | 10856 GLsizei width, |
| 10865 GLsizei height, | 10857 GLsizei height, |
| 10866 GLenum format, | 10858 GLenum format, |
| 10867 GLenum type, | 10859 GLenum type, |
| 10868 GLsizei bufSize, | 10860 GLsizei bufSize, |
| 10869 GLsizei* length, | 10861 GLsizei* length, |
| 10870 GLsizei* columns, | |
| 10871 GLsizei* rows, | |
| 10872 void* data) { | 10862 void* data) { |
| 10873 GL_SERVICE_LOG("glReadnPixelsRobustANGLE" | 10863 GL_SERVICE_LOG("glReadnPixelsRobustANGLE" |
| 10874 << "(" << x << ", " << y << ", " << width << ", " << height | 10864 << "(" << x << ", " << y << ", " << width << ", " << height |
| 10875 << ", " << GLEnums::GetStringEnum(format) << ", " | 10865 << ", " << GLEnums::GetStringEnum(format) << ", " |
| 10876 << GLEnums::GetStringEnum(type) << ", " << bufSize << ", " | 10866 << GLEnums::GetStringEnum(type) << ", " << bufSize << ", " |
| 10877 << static_cast<const void*>(length) << ", " | 10867 << static_cast<const void*>(length) << ", " |
| 10878 << static_cast<const void*>(columns) << ", " | |
| 10879 << static_cast<const void*>(rows) << ", " | |
| 10880 << static_cast<const void*>(data) << ")"); | 10868 << static_cast<const void*>(data) << ")"); |
| 10881 gl_api_->glReadnPixelsRobustANGLEFn(x, y, width, height, format, type, | 10869 gl_api_->glReadnPixelsRobustANGLEFn(x, y, width, height, format, type, |
| 10882 bufSize, length, columns, rows, data); | 10870 bufSize, length, data); |
| 10883 } | 10871 } |
| 10884 | 10872 |
| 10885 void DebugGLApi::glReadPixelsFn(GLint x, | 10873 void DebugGLApi::glReadPixelsFn(GLint x, |
| 10886 GLint y, | 10874 GLint y, |
| 10887 GLsizei width, | 10875 GLsizei width, |
| 10888 GLsizei height, | 10876 GLsizei height, |
| 10889 GLenum format, | 10877 GLenum format, |
| 10890 GLenum type, | 10878 GLenum type, |
| 10891 void* pixels) { | 10879 void* pixels) { |
| 10892 GL_SERVICE_LOG("glReadPixels" | 10880 GL_SERVICE_LOG("glReadPixels" |
| 10893 << "(" << x << ", " << y << ", " << width << ", " << height | 10881 << "(" << x << ", " << y << ", " << width << ", " << height |
| 10894 << ", " << GLEnums::GetStringEnum(format) << ", " | 10882 << ", " << GLEnums::GetStringEnum(format) << ", " |
| 10895 << GLEnums::GetStringEnum(type) << ", " | 10883 << GLEnums::GetStringEnum(type) << ", " |
| 10896 << static_cast<const void*>(pixels) << ")"); | 10884 << static_cast<const void*>(pixels) << ")"); |
| 10897 gl_api_->glReadPixelsFn(x, y, width, height, format, type, pixels); | 10885 gl_api_->glReadPixelsFn(x, y, width, height, format, type, pixels); |
| 10898 } | 10886 } |
| 10899 | 10887 |
| 10900 void DebugGLApi::glReadPixelsRobustANGLEFn(GLint x, | 10888 void DebugGLApi::glReadPixelsRobustANGLEFn(GLint x, |
| 10901 GLint y, | 10889 GLint y, |
| 10902 GLsizei width, | 10890 GLsizei width, |
| 10903 GLsizei height, | 10891 GLsizei height, |
| 10904 GLenum format, | 10892 GLenum format, |
| 10905 GLenum type, | 10893 GLenum type, |
| 10906 GLsizei bufSize, | 10894 GLsizei bufSize, |
| 10907 GLsizei* length, | 10895 GLsizei* length, |
| 10908 GLsizei* columns, | |
| 10909 GLsizei* rows, | |
| 10910 void* pixels) { | 10896 void* pixels) { |
| 10911 GL_SERVICE_LOG("glReadPixelsRobustANGLE" | 10897 GL_SERVICE_LOG("glReadPixelsRobustANGLE" |
| 10912 << "(" << x << ", " << y << ", " << width << ", " << height | 10898 << "(" << x << ", " << y << ", " << width << ", " << height |
| 10913 << ", " << GLEnums::GetStringEnum(format) << ", " | 10899 << ", " << GLEnums::GetStringEnum(format) << ", " |
| 10914 << GLEnums::GetStringEnum(type) << ", " << bufSize << ", " | 10900 << GLEnums::GetStringEnum(type) << ", " << bufSize << ", " |
| 10915 << static_cast<const void*>(length) << ", " | 10901 << static_cast<const void*>(length) << ", " |
| 10916 << static_cast<const void*>(columns) << ", " | |
| 10917 << static_cast<const void*>(rows) << ", " | |
| 10918 << static_cast<const void*>(pixels) << ")"); | 10902 << static_cast<const void*>(pixels) << ")"); |
| 10919 gl_api_->glReadPixelsRobustANGLEFn(x, y, width, height, format, type, bufSize, | 10903 gl_api_->glReadPixelsRobustANGLEFn(x, y, width, height, format, type, bufSize, |
| 10920 length, columns, rows, pixels); | 10904 length, pixels); |
| 10921 } | 10905 } |
| 10922 | 10906 |
| 10923 void DebugGLApi::glReleaseShaderCompilerFn(void) { | 10907 void DebugGLApi::glReleaseShaderCompilerFn(void) { |
| 10924 GL_SERVICE_LOG("glReleaseShaderCompiler" | 10908 GL_SERVICE_LOG("glReleaseShaderCompiler" |
| 10925 << "(" | 10909 << "(" |
| 10926 << ")"); | 10910 << ")"); |
| 10927 gl_api_->glReleaseShaderCompilerFn(); | 10911 gl_api_->glReleaseShaderCompilerFn(); |
| 10928 } | 10912 } |
| 10929 | 10913 |
| 10930 void DebugGLApi::glRenderbufferStorageEXTFn(GLenum target, | 10914 void DebugGLApi::glRenderbufferStorageEXTFn(GLenum target, |
| (...skipping 3552 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 14483 } | 14467 } |
| 14484 | 14468 |
| 14485 void NoContextGLApi::glReadnPixelsRobustANGLEFn(GLint x, | 14469 void NoContextGLApi::glReadnPixelsRobustANGLEFn(GLint x, |
| 14486 GLint y, | 14470 GLint y, |
| 14487 GLsizei width, | 14471 GLsizei width, |
| 14488 GLsizei height, | 14472 GLsizei height, |
| 14489 GLenum format, | 14473 GLenum format, |
| 14490 GLenum type, | 14474 GLenum type, |
| 14491 GLsizei bufSize, | 14475 GLsizei bufSize, |
| 14492 GLsizei* length, | 14476 GLsizei* length, |
| 14493 GLsizei* columns, | |
| 14494 GLsizei* rows, | |
| 14495 void* data) { | 14477 void* data) { |
| 14496 NOTREACHED() | 14478 NOTREACHED() |
| 14497 << "Trying to call glReadnPixelsRobustANGLE() without current GL context"; | 14479 << "Trying to call glReadnPixelsRobustANGLE() without current GL context"; |
| 14498 LOG(ERROR) | 14480 LOG(ERROR) |
| 14499 << "Trying to call glReadnPixelsRobustANGLE() without current GL context"; | 14481 << "Trying to call glReadnPixelsRobustANGLE() without current GL context"; |
| 14500 } | 14482 } |
| 14501 | 14483 |
| 14502 void NoContextGLApi::glReadPixelsFn(GLint x, | 14484 void NoContextGLApi::glReadPixelsFn(GLint x, |
| 14503 GLint y, | 14485 GLint y, |
| 14504 GLsizei width, | 14486 GLsizei width, |
| 14505 GLsizei height, | 14487 GLsizei height, |
| 14506 GLenum format, | 14488 GLenum format, |
| 14507 GLenum type, | 14489 GLenum type, |
| 14508 void* pixels) { | 14490 void* pixels) { |
| 14509 NOTREACHED() << "Trying to call glReadPixels() without current GL context"; | 14491 NOTREACHED() << "Trying to call glReadPixels() without current GL context"; |
| 14510 LOG(ERROR) << "Trying to call glReadPixels() without current GL context"; | 14492 LOG(ERROR) << "Trying to call glReadPixels() without current GL context"; |
| 14511 } | 14493 } |
| 14512 | 14494 |
| 14513 void NoContextGLApi::glReadPixelsRobustANGLEFn(GLint x, | 14495 void NoContextGLApi::glReadPixelsRobustANGLEFn(GLint x, |
| 14514 GLint y, | 14496 GLint y, |
| 14515 GLsizei width, | 14497 GLsizei width, |
| 14516 GLsizei height, | 14498 GLsizei height, |
| 14517 GLenum format, | 14499 GLenum format, |
| 14518 GLenum type, | 14500 GLenum type, |
| 14519 GLsizei bufSize, | 14501 GLsizei bufSize, |
| 14520 GLsizei* length, | 14502 GLsizei* length, |
| 14521 GLsizei* columns, | |
| 14522 GLsizei* rows, | |
| 14523 void* pixels) { | 14503 void* pixels) { |
| 14524 NOTREACHED() | 14504 NOTREACHED() |
| 14525 << "Trying to call glReadPixelsRobustANGLE() without current GL context"; | 14505 << "Trying to call glReadPixelsRobustANGLE() without current GL context"; |
| 14526 LOG(ERROR) | 14506 LOG(ERROR) |
| 14527 << "Trying to call glReadPixelsRobustANGLE() without current GL context"; | 14507 << "Trying to call glReadPixelsRobustANGLE() without current GL context"; |
| 14528 } | 14508 } |
| 14529 | 14509 |
| 14530 void NoContextGLApi::glReleaseShaderCompilerFn(void) { | 14510 void NoContextGLApi::glReleaseShaderCompilerFn(void) { |
| 14531 NOTREACHED() | 14511 NOTREACHED() |
| 14532 << "Trying to call glReleaseShaderCompiler() without current GL context"; | 14512 << "Trying to call glReleaseShaderCompiler() without current GL context"; |
| (...skipping 975 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 15508 | 15488 |
| 15509 GLenum NoContextGLApi::glWaitSyncFn(GLsync sync, | 15489 GLenum NoContextGLApi::glWaitSyncFn(GLsync sync, |
| 15510 GLbitfield flags, | 15490 GLbitfield flags, |
| 15511 GLuint64 timeout) { | 15491 GLuint64 timeout) { |
| 15512 NOTREACHED() << "Trying to call glWaitSync() without current GL context"; | 15492 NOTREACHED() << "Trying to call glWaitSync() without current GL context"; |
| 15513 LOG(ERROR) << "Trying to call glWaitSync() without current GL context"; | 15493 LOG(ERROR) << "Trying to call glWaitSync() without current GL context"; |
| 15514 return static_cast<GLenum>(0); | 15494 return static_cast<GLenum>(0); |
| 15515 } | 15495 } |
| 15516 | 15496 |
| 15517 } // namespace gl | 15497 } // namespace gl |
| OLD | NEW |