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

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

Issue 940523003: Make gl_bindings_skia_in_process work with OpenGL ES3 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: build fix Created 5 years, 10 months 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
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 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 fn.glGetSamplerParameterivFn = 0; 225 fn.glGetSamplerParameterivFn = 0;
226 fn.glGetShaderInfoLogFn = reinterpret_cast<glGetShaderInfoLogProc>( 226 fn.glGetShaderInfoLogFn = reinterpret_cast<glGetShaderInfoLogProc>(
227 GetGLProcAddress("glGetShaderInfoLog")); 227 GetGLProcAddress("glGetShaderInfoLog"));
228 fn.glGetShaderivFn = 228 fn.glGetShaderivFn =
229 reinterpret_cast<glGetShaderivProc>(GetGLProcAddress("glGetShaderiv")); 229 reinterpret_cast<glGetShaderivProc>(GetGLProcAddress("glGetShaderiv"));
230 fn.glGetShaderPrecisionFormatFn = 0; 230 fn.glGetShaderPrecisionFormatFn = 0;
231 fn.glGetShaderSourceFn = reinterpret_cast<glGetShaderSourceProc>( 231 fn.glGetShaderSourceFn = reinterpret_cast<glGetShaderSourceProc>(
232 GetGLProcAddress("glGetShaderSource")); 232 GetGLProcAddress("glGetShaderSource"));
233 fn.glGetStringFn = 233 fn.glGetStringFn =
234 reinterpret_cast<glGetStringProc>(GetGLProcAddress("glGetString")); 234 reinterpret_cast<glGetStringProc>(GetGLProcAddress("glGetString"));
235 fn.glGetStringiFn = 0;
235 fn.glGetSyncivFn = 0; 236 fn.glGetSyncivFn = 0;
236 fn.glGetTexLevelParameterfvFn = 0; 237 fn.glGetTexLevelParameterfvFn = 0;
237 fn.glGetTexLevelParameterivFn = 0; 238 fn.glGetTexLevelParameterivFn = 0;
238 fn.glGetTexParameterfvFn = reinterpret_cast<glGetTexParameterfvProc>( 239 fn.glGetTexParameterfvFn = reinterpret_cast<glGetTexParameterfvProc>(
239 GetGLProcAddress("glGetTexParameterfv")); 240 GetGLProcAddress("glGetTexParameterfv"));
240 fn.glGetTexParameterivFn = reinterpret_cast<glGetTexParameterivProc>( 241 fn.glGetTexParameterivFn = reinterpret_cast<glGetTexParameterivProc>(
241 GetGLProcAddress("glGetTexParameteriv")); 242 GetGLProcAddress("glGetTexParameteriv"));
242 fn.glGetTransformFeedbackVaryingFn = 0; 243 fn.glGetTransformFeedbackVaryingFn = 0;
243 fn.glGetTranslatedShaderSourceANGLEFn = 0; 244 fn.glGetTranslatedShaderSourceANGLEFn = 0;
244 fn.glGetUniformBlockIndexFn = 0; 245 fn.glGetUniformBlockIndexFn = 0;
(...skipping 1135 matching lines...) Expand 10 before | Expand all | Expand 10 after
1380 } 1381 }
1381 1382
1382 debug_fn.glGetShaderPrecisionFormatFn = 0; 1383 debug_fn.glGetShaderPrecisionFormatFn = 0;
1383 if (ver->IsAtLeastGL(4u, 1u) || ver->is_es) { 1384 if (ver->IsAtLeastGL(4u, 1u) || ver->is_es) {
1384 fn.glGetShaderPrecisionFormatFn = 1385 fn.glGetShaderPrecisionFormatFn =
1385 reinterpret_cast<glGetShaderPrecisionFormatProc>( 1386 reinterpret_cast<glGetShaderPrecisionFormatProc>(
1386 GetGLProcAddress("glGetShaderPrecisionFormat")); 1387 GetGLProcAddress("glGetShaderPrecisionFormat"));
1387 DCHECK(fn.glGetShaderPrecisionFormatFn); 1388 DCHECK(fn.glGetShaderPrecisionFormatFn);
1388 } 1389 }
1389 1390
1391 debug_fn.glGetStringiFn = 0;
1392 if (ver->IsAtLeastGL(3u, 0u) || ver->IsAtLeastGLES(3u, 0u)) {
1393 fn.glGetStringiFn =
1394 reinterpret_cast<glGetStringiProc>(GetGLProcAddress("glGetStringi"));
1395 DCHECK(fn.glGetStringiFn);
1396 }
1397
1390 debug_fn.glGetSyncivFn = 0; 1398 debug_fn.glGetSyncivFn = 0;
1391 if (ver->IsAtLeastGL(3u, 2u) || ver->IsAtLeastGLES(3u, 0u) || 1399 if (ver->IsAtLeastGL(3u, 2u) || ver->IsAtLeastGLES(3u, 0u) ||
1392 ext.b_GL_ARB_sync) { 1400 ext.b_GL_ARB_sync) {
1393 fn.glGetSyncivFn = 1401 fn.glGetSyncivFn =
1394 reinterpret_cast<glGetSyncivProc>(GetGLProcAddress("glGetSynciv")); 1402 reinterpret_cast<glGetSyncivProc>(GetGLProcAddress("glGetSynciv"));
1395 DCHECK(fn.glGetSyncivFn); 1403 DCHECK(fn.glGetSyncivFn);
1396 } 1404 }
1397 1405
1398 debug_fn.glGetTexLevelParameterfvFn = 0; 1406 debug_fn.glGetTexLevelParameterfvFn = 0;
1399 if (!ver->is_es || ver->IsAtLeastGLES(3u, 1u)) { 1407 if (!ver->is_es || ver->IsAtLeastGLES(3u, 1u)) {
(...skipping 1984 matching lines...) Expand 10 before | Expand all | Expand 10 after
3384 } 3392 }
3385 3393
3386 static const GLubyte* GL_BINDING_CALL Debug_glGetString(GLenum name) { 3394 static const GLubyte* GL_BINDING_CALL Debug_glGetString(GLenum name) {
3387 GL_SERVICE_LOG("glGetString" 3395 GL_SERVICE_LOG("glGetString"
3388 << "(" << GLEnums::GetStringEnum(name) << ")"); 3396 << "(" << GLEnums::GetStringEnum(name) << ")");
3389 const GLubyte* result = g_driver_gl.debug_fn.glGetStringFn(name); 3397 const GLubyte* result = g_driver_gl.debug_fn.glGetStringFn(name);
3390 GL_SERVICE_LOG("GL_RESULT: " << result); 3398 GL_SERVICE_LOG("GL_RESULT: " << result);
3391 return result; 3399 return result;
3392 } 3400 }
3393 3401
3402 static const GLubyte* GL_BINDING_CALL
3403 Debug_glGetStringi(GLenum name, GLuint index) {
3404 GL_SERVICE_LOG("glGetStringi"
3405 << "(" << GLEnums::GetStringEnum(name) << ", " << index
3406 << ")");
3407 const GLubyte* result = g_driver_gl.debug_fn.glGetStringiFn(name, index);
3408 GL_SERVICE_LOG("GL_RESULT: " << result);
3409 return result;
3410 }
3411
3394 static void GL_BINDING_CALL Debug_glGetSynciv(GLsync sync, 3412 static void GL_BINDING_CALL Debug_glGetSynciv(GLsync sync,
3395 GLenum pname, 3413 GLenum pname,
3396 GLsizei bufSize, 3414 GLsizei bufSize,
3397 GLsizei* length, 3415 GLsizei* length,
3398 GLint* values) { 3416 GLint* values) {
3399 GL_SERVICE_LOG("glGetSynciv" 3417 GL_SERVICE_LOG("glGetSynciv"
3400 << "(" << sync << ", " << GLEnums::GetStringEnum(pname) << ", " 3418 << "(" << sync << ", " << GLEnums::GetStringEnum(pname) << ", "
3401 << bufSize << ", " << static_cast<const void*>(length) << ", " 3419 << bufSize << ", " << static_cast<const void*>(length) << ", "
3402 << static_cast<const void*>(values) << ")"); 3420 << static_cast<const void*>(values) << ")");
3403 g_driver_gl.debug_fn.glGetSyncivFn(sync, pname, bufSize, length, values); 3421 g_driver_gl.debug_fn.glGetSyncivFn(sync, pname, bufSize, length, values);
(...skipping 1898 matching lines...) Expand 10 before | Expand all | Expand 10 after
5302 fn.glGetShaderPrecisionFormatFn = Debug_glGetShaderPrecisionFormat; 5320 fn.glGetShaderPrecisionFormatFn = Debug_glGetShaderPrecisionFormat;
5303 } 5321 }
5304 if (!debug_fn.glGetShaderSourceFn) { 5322 if (!debug_fn.glGetShaderSourceFn) {
5305 debug_fn.glGetShaderSourceFn = fn.glGetShaderSourceFn; 5323 debug_fn.glGetShaderSourceFn = fn.glGetShaderSourceFn;
5306 fn.glGetShaderSourceFn = Debug_glGetShaderSource; 5324 fn.glGetShaderSourceFn = Debug_glGetShaderSource;
5307 } 5325 }
5308 if (!debug_fn.glGetStringFn) { 5326 if (!debug_fn.glGetStringFn) {
5309 debug_fn.glGetStringFn = fn.glGetStringFn; 5327 debug_fn.glGetStringFn = fn.glGetStringFn;
5310 fn.glGetStringFn = Debug_glGetString; 5328 fn.glGetStringFn = Debug_glGetString;
5311 } 5329 }
5330 if (!debug_fn.glGetStringiFn) {
5331 debug_fn.glGetStringiFn = fn.glGetStringiFn;
5332 fn.glGetStringiFn = Debug_glGetStringi;
5333 }
5312 if (!debug_fn.glGetSyncivFn) { 5334 if (!debug_fn.glGetSyncivFn) {
5313 debug_fn.glGetSyncivFn = fn.glGetSyncivFn; 5335 debug_fn.glGetSyncivFn = fn.glGetSyncivFn;
5314 fn.glGetSyncivFn = Debug_glGetSynciv; 5336 fn.glGetSyncivFn = Debug_glGetSynciv;
5315 } 5337 }
5316 if (!debug_fn.glGetTexLevelParameterfvFn) { 5338 if (!debug_fn.glGetTexLevelParameterfvFn) {
5317 debug_fn.glGetTexLevelParameterfvFn = fn.glGetTexLevelParameterfvFn; 5339 debug_fn.glGetTexLevelParameterfvFn = fn.glGetTexLevelParameterfvFn;
5318 fn.glGetTexLevelParameterfvFn = Debug_glGetTexLevelParameterfv; 5340 fn.glGetTexLevelParameterfvFn = Debug_glGetTexLevelParameterfv;
5319 } 5341 }
5320 if (!debug_fn.glGetTexLevelParameterivFn) { 5342 if (!debug_fn.glGetTexLevelParameterivFn) {
5321 debug_fn.glGetTexLevelParameterivFn = fn.glGetTexLevelParameterivFn; 5343 debug_fn.glGetTexLevelParameterivFn = fn.glGetTexLevelParameterivFn;
(...skipping 1411 matching lines...) Expand 10 before | Expand all | Expand 10 after
6733 GLsizei bufsize, 6755 GLsizei bufsize,
6734 GLsizei* length, 6756 GLsizei* length,
6735 char* source) { 6757 char* source) {
6736 driver_->fn.glGetShaderSourceFn(shader, bufsize, length, source); 6758 driver_->fn.glGetShaderSourceFn(shader, bufsize, length, source);
6737 } 6759 }
6738 6760
6739 const GLubyte* GLApiBase::glGetStringFn(GLenum name) { 6761 const GLubyte* GLApiBase::glGetStringFn(GLenum name) {
6740 return driver_->fn.glGetStringFn(name); 6762 return driver_->fn.glGetStringFn(name);
6741 } 6763 }
6742 6764
6765 const GLubyte* GLApiBase::glGetStringiFn(GLenum name, GLuint index) {
6766 return driver_->fn.glGetStringiFn(name, index);
6767 }
6768
6743 void GLApiBase::glGetSyncivFn(GLsync sync, 6769 void GLApiBase::glGetSyncivFn(GLsync sync,
6744 GLenum pname, 6770 GLenum pname,
6745 GLsizei bufSize, 6771 GLsizei bufSize,
6746 GLsizei* length, 6772 GLsizei* length,
6747 GLint* values) { 6773 GLint* values) {
6748 driver_->fn.glGetSyncivFn(sync, pname, bufSize, length, values); 6774 driver_->fn.glGetSyncivFn(sync, pname, bufSize, length, values);
6749 } 6775 }
6750 6776
6751 void GLApiBase::glGetTexLevelParameterfvFn(GLenum target, 6777 void GLApiBase::glGetTexLevelParameterfvFn(GLenum target,
6752 GLint level, 6778 GLint level,
(...skipping 1799 matching lines...) Expand 10 before | Expand all | Expand 10 after
8552 char* source) { 8578 char* source) {
8553 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetShaderSource") 8579 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetShaderSource")
8554 gl_api_->glGetShaderSourceFn(shader, bufsize, length, source); 8580 gl_api_->glGetShaderSourceFn(shader, bufsize, length, source);
8555 } 8581 }
8556 8582
8557 const GLubyte* TraceGLApi::glGetStringFn(GLenum name) { 8583 const GLubyte* TraceGLApi::glGetStringFn(GLenum name) {
8558 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetString") 8584 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetString")
8559 return gl_api_->glGetStringFn(name); 8585 return gl_api_->glGetStringFn(name);
8560 } 8586 }
8561 8587
8588 const GLubyte* TraceGLApi::glGetStringiFn(GLenum name, GLuint index) {
8589 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetStringi")
8590 return gl_api_->glGetStringiFn(name, index);
8591 }
8592
8562 void TraceGLApi::glGetSyncivFn(GLsync sync, 8593 void TraceGLApi::glGetSyncivFn(GLsync sync,
8563 GLenum pname, 8594 GLenum pname,
8564 GLsizei bufSize, 8595 GLsizei bufSize,
8565 GLsizei* length, 8596 GLsizei* length,
8566 GLint* values) { 8597 GLint* values) {
8567 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetSynciv") 8598 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetSynciv")
8568 gl_api_->glGetSyncivFn(sync, pname, bufSize, length, values); 8599 gl_api_->glGetSyncivFn(sync, pname, bufSize, length, values);
8569 } 8600 }
8570 8601
8571 void TraceGLApi::glGetTexLevelParameterfvFn(GLenum target, 8602 void TraceGLApi::glGetTexLevelParameterfvFn(GLenum target,
(...skipping 2097 matching lines...) Expand 10 before | Expand all | Expand 10 after
10669 << "Trying to call glGetShaderSource() without current GL context"; 10700 << "Trying to call glGetShaderSource() without current GL context";
10670 LOG(ERROR) << "Trying to call glGetShaderSource() without current GL context"; 10701 LOG(ERROR) << "Trying to call glGetShaderSource() without current GL context";
10671 } 10702 }
10672 10703
10673 const GLubyte* NoContextGLApi::glGetStringFn(GLenum name) { 10704 const GLubyte* NoContextGLApi::glGetStringFn(GLenum name) {
10674 NOTREACHED() << "Trying to call glGetString() without current GL context"; 10705 NOTREACHED() << "Trying to call glGetString() without current GL context";
10675 LOG(ERROR) << "Trying to call glGetString() without current GL context"; 10706 LOG(ERROR) << "Trying to call glGetString() without current GL context";
10676 return NULL; 10707 return NULL;
10677 } 10708 }
10678 10709
10710 const GLubyte* NoContextGLApi::glGetStringiFn(GLenum name, GLuint index) {
10711 NOTREACHED() << "Trying to call glGetStringi() without current GL context";
10712 LOG(ERROR) << "Trying to call glGetStringi() without current GL context";
10713 return NULL;
10714 }
10715
10679 void NoContextGLApi::glGetSyncivFn(GLsync sync, 10716 void NoContextGLApi::glGetSyncivFn(GLsync sync,
10680 GLenum pname, 10717 GLenum pname,
10681 GLsizei bufSize, 10718 GLsizei bufSize,
10682 GLsizei* length, 10719 GLsizei* length,
10683 GLint* values) { 10720 GLint* values) {
10684 NOTREACHED() << "Trying to call glGetSynciv() without current GL context"; 10721 NOTREACHED() << "Trying to call glGetSynciv() without current GL context";
10685 LOG(ERROR) << "Trying to call glGetSynciv() without current GL context"; 10722 LOG(ERROR) << "Trying to call glGetSynciv() without current GL context";
10686 } 10723 }
10687 10724
10688 void NoContextGLApi::glGetTexLevelParameterfvFn(GLenum target, 10725 void NoContextGLApi::glGetTexLevelParameterfvFn(GLenum target,
(...skipping 1085 matching lines...) Expand 10 before | Expand all | Expand 10 after
11774 11811
11775 GLenum NoContextGLApi::glWaitSyncFn(GLsync sync, 11812 GLenum NoContextGLApi::glWaitSyncFn(GLsync sync,
11776 GLbitfield flags, 11813 GLbitfield flags,
11777 GLuint64 timeout) { 11814 GLuint64 timeout) {
11778 NOTREACHED() << "Trying to call glWaitSync() without current GL context"; 11815 NOTREACHED() << "Trying to call glWaitSync() without current GL context";
11779 LOG(ERROR) << "Trying to call glWaitSync() without current GL context"; 11816 LOG(ERROR) << "Trying to call glWaitSync() without current GL context";
11780 return static_cast<GLenum>(0); 11817 return static_cast<GLenum>(0);
11781 } 11818 }
11782 11819
11783 } // namespace gfx 11820 } // namespace gfx
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698