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

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

Issue 2826143003: Passthrough CmdDecoder: Use robust CompressedTex(Sub)Image (Closed)
Patch Set: Created 3 years, 8 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 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 444 matching lines...) Expand 10 before | Expand all | Expand 10 after
455 GLsizei height, 455 GLsizei height,
456 GLint border, 456 GLint border,
457 GLsizei imageSize, 457 GLsizei imageSize,
458 const void* data) { 458 const void* data) {
459 MakeFunctionUnique("glCompressedTexImage2D"); 459 MakeFunctionUnique("glCompressedTexImage2D");
460 interface_->CompressedTexImage2D(target, level, internalformat, width, height, 460 interface_->CompressedTexImage2D(target, level, internalformat, width, height,
461 border, imageSize, data); 461 border, imageSize, data);
462 } 462 }
463 463
464 void GL_BINDING_CALL 464 void GL_BINDING_CALL
465 MockGLInterface::Mock_glCompressedTexImage2DRobustANGLE(GLenum target,
466 GLint level,
467 GLenum internalformat,
468 GLsizei width,
469 GLsizei height,
470 GLint border,
471 GLsizei imageSize,
472 GLsizei dataSize,
473 const void* data) {
474 MakeFunctionUnique("glCompressedTexImage2DRobustANGLE");
475 interface_->CompressedTexImage2DRobustANGLE(target, level, internalformat,
476 width, height, border, imageSize,
477 dataSize, data);
478 }
479
480 void GL_BINDING_CALL
465 MockGLInterface::Mock_glCompressedTexImage3D(GLenum target, 481 MockGLInterface::Mock_glCompressedTexImage3D(GLenum target,
466 GLint level, 482 GLint level,
467 GLenum internalformat, 483 GLenum internalformat,
468 GLsizei width, 484 GLsizei width,
469 GLsizei height, 485 GLsizei height,
470 GLsizei depth, 486 GLsizei depth,
471 GLint border, 487 GLint border,
472 GLsizei imageSize, 488 GLsizei imageSize,
473 const void* data) { 489 const void* data) {
474 MakeFunctionUnique("glCompressedTexImage3D"); 490 MakeFunctionUnique("glCompressedTexImage3D");
475 interface_->CompressedTexImage3D(target, level, internalformat, width, height, 491 interface_->CompressedTexImage3D(target, level, internalformat, width, height,
476 depth, border, imageSize, data); 492 depth, border, imageSize, data);
477 } 493 }
478 494
479 void GL_BINDING_CALL 495 void GL_BINDING_CALL
496 MockGLInterface::Mock_glCompressedTexImage3DRobustANGLE(GLenum target,
497 GLint level,
498 GLenum internalformat,
499 GLsizei width,
500 GLsizei height,
501 GLsizei depth,
502 GLint border,
503 GLsizei imageSize,
504 GLsizei dataSize,
505 const void* data) {
506 MakeFunctionUnique("glCompressedTexImage3DRobustANGLE");
507 interface_->CompressedTexImage3DRobustANGLE(target, level, internalformat,
508 width, height, depth, border,
509 imageSize, dataSize, data);
510 }
511
512 void GL_BINDING_CALL
480 MockGLInterface::Mock_glCompressedTexSubImage2D(GLenum target, 513 MockGLInterface::Mock_glCompressedTexSubImage2D(GLenum target,
481 GLint level, 514 GLint level,
482 GLint xoffset, 515 GLint xoffset,
483 GLint yoffset, 516 GLint yoffset,
484 GLsizei width, 517 GLsizei width,
485 GLsizei height, 518 GLsizei height,
486 GLenum format, 519 GLenum format,
487 GLsizei imageSize, 520 GLsizei imageSize,
488 const void* data) { 521 const void* data) {
489 MakeFunctionUnique("glCompressedTexSubImage2D"); 522 MakeFunctionUnique("glCompressedTexSubImage2D");
490 interface_->CompressedTexSubImage2D(target, level, xoffset, yoffset, width, 523 interface_->CompressedTexSubImage2D(target, level, xoffset, yoffset, width,
491 height, format, imageSize, data); 524 height, format, imageSize, data);
492 } 525 }
493 526
494 void GL_BINDING_CALL 527 void GL_BINDING_CALL
528 MockGLInterface::Mock_glCompressedTexSubImage2DRobustANGLE(GLenum target,
529 GLint level,
530 GLint xoffset,
531 GLint yoffset,
532 GLsizei width,
533 GLsizei height,
534 GLenum format,
535 GLsizei imageSize,
536 GLsizei dataSize,
537 const void* data) {
538 MakeFunctionUnique("glCompressedTexSubImage2DRobustANGLE");
539 interface_->CompressedTexSubImage2DRobustANGLE(target, level, xoffset,
540 yoffset, width, height, format,
541 imageSize, dataSize, data);
542 }
543
544 void GL_BINDING_CALL
495 MockGLInterface::Mock_glCompressedTexSubImage3D(GLenum target, 545 MockGLInterface::Mock_glCompressedTexSubImage3D(GLenum target,
496 GLint level, 546 GLint level,
497 GLint xoffset, 547 GLint xoffset,
498 GLint yoffset, 548 GLint yoffset,
499 GLint zoffset, 549 GLint zoffset,
500 GLsizei width, 550 GLsizei width,
501 GLsizei height, 551 GLsizei height,
502 GLsizei depth, 552 GLsizei depth,
503 GLenum format, 553 GLenum format,
504 GLsizei imageSize, 554 GLsizei imageSize,
505 const void* data) { 555 const void* data) {
506 MakeFunctionUnique("glCompressedTexSubImage3D"); 556 MakeFunctionUnique("glCompressedTexSubImage3D");
507 interface_->CompressedTexSubImage3D(target, level, xoffset, yoffset, zoffset, 557 interface_->CompressedTexSubImage3D(target, level, xoffset, yoffset, zoffset,
508 width, height, depth, format, imageSize, 558 width, height, depth, format, imageSize,
509 data); 559 data);
510 } 560 }
511 561
512 void GL_BINDING_CALL 562 void GL_BINDING_CALL
563 MockGLInterface::Mock_glCompressedTexSubImage3DRobustANGLE(GLenum target,
564 GLint level,
565 GLint xoffset,
566 GLint yoffset,
567 GLint zoffset,
568 GLsizei width,
569 GLsizei height,
570 GLsizei depth,
571 GLenum format,
572 GLsizei imageSize,
573 GLsizei dataSize,
574 const void* data) {
575 MakeFunctionUnique("glCompressedTexSubImage3DRobustANGLE");
576 interface_->CompressedTexSubImage3DRobustANGLE(
577 target, level, xoffset, yoffset, zoffset, width, height, depth, format,
578 imageSize, dataSize, data);
579 }
580
581 void GL_BINDING_CALL
513 MockGLInterface::Mock_glCopyBufferSubData(GLenum readTarget, 582 MockGLInterface::Mock_glCopyBufferSubData(GLenum readTarget,
514 GLenum writeTarget, 583 GLenum writeTarget,
515 GLintptr readOffset, 584 GLintptr readOffset,
516 GLintptr writeOffset, 585 GLintptr writeOffset,
517 GLsizeiptr size) { 586 GLsizeiptr size) {
518 MakeFunctionUnique("glCopyBufferSubData"); 587 MakeFunctionUnique("glCopyBufferSubData");
519 interface_->CopyBufferSubData(readTarget, writeTarget, readOffset, 588 interface_->CopyBufferSubData(readTarget, writeTarget, readOffset,
520 writeOffset, size); 589 writeOffset, size);
521 } 590 }
522 591
(...skipping 3484 matching lines...) Expand 10 before | Expand all | Expand 10 after
4007 return reinterpret_cast<GLFunctionPointerType>(Mock_glClientWaitSync); 4076 return reinterpret_cast<GLFunctionPointerType>(Mock_glClientWaitSync);
4008 if (strcmp(name, "glColorMask") == 0) 4077 if (strcmp(name, "glColorMask") == 0)
4009 return reinterpret_cast<GLFunctionPointerType>(Mock_glColorMask); 4078 return reinterpret_cast<GLFunctionPointerType>(Mock_glColorMask);
4010 if (strcmp(name, "glCompileShader") == 0) 4079 if (strcmp(name, "glCompileShader") == 0)
4011 return reinterpret_cast<GLFunctionPointerType>(Mock_glCompileShader); 4080 return reinterpret_cast<GLFunctionPointerType>(Mock_glCompileShader);
4012 if (strcmp(name, "glCompressedCopyTextureCHROMIUM") == 0) 4081 if (strcmp(name, "glCompressedCopyTextureCHROMIUM") == 0)
4013 return reinterpret_cast<GLFunctionPointerType>( 4082 return reinterpret_cast<GLFunctionPointerType>(
4014 Mock_glCompressedCopyTextureCHROMIUM); 4083 Mock_glCompressedCopyTextureCHROMIUM);
4015 if (strcmp(name, "glCompressedTexImage2D") == 0) 4084 if (strcmp(name, "glCompressedTexImage2D") == 0)
4016 return reinterpret_cast<GLFunctionPointerType>(Mock_glCompressedTexImage2D); 4085 return reinterpret_cast<GLFunctionPointerType>(Mock_glCompressedTexImage2D);
4086 if (strcmp(name, "glCompressedTexImage2DRobustANGLE") == 0)
4087 return reinterpret_cast<GLFunctionPointerType>(
4088 Mock_glCompressedTexImage2DRobustANGLE);
4017 if (strcmp(name, "glCompressedTexImage3D") == 0) 4089 if (strcmp(name, "glCompressedTexImage3D") == 0)
4018 return reinterpret_cast<GLFunctionPointerType>(Mock_glCompressedTexImage3D); 4090 return reinterpret_cast<GLFunctionPointerType>(Mock_glCompressedTexImage3D);
4091 if (strcmp(name, "glCompressedTexImage3DRobustANGLE") == 0)
4092 return reinterpret_cast<GLFunctionPointerType>(
4093 Mock_glCompressedTexImage3DRobustANGLE);
4019 if (strcmp(name, "glCompressedTexSubImage2D") == 0) 4094 if (strcmp(name, "glCompressedTexSubImage2D") == 0)
4020 return reinterpret_cast<GLFunctionPointerType>( 4095 return reinterpret_cast<GLFunctionPointerType>(
4021 Mock_glCompressedTexSubImage2D); 4096 Mock_glCompressedTexSubImage2D);
4097 if (strcmp(name, "glCompressedTexSubImage2DRobustANGLE") == 0)
4098 return reinterpret_cast<GLFunctionPointerType>(
4099 Mock_glCompressedTexSubImage2DRobustANGLE);
4022 if (strcmp(name, "glCompressedTexSubImage3D") == 0) 4100 if (strcmp(name, "glCompressedTexSubImage3D") == 0)
4023 return reinterpret_cast<GLFunctionPointerType>( 4101 return reinterpret_cast<GLFunctionPointerType>(
4024 Mock_glCompressedTexSubImage3D); 4102 Mock_glCompressedTexSubImage3D);
4103 if (strcmp(name, "glCompressedTexSubImage3DRobustANGLE") == 0)
4104 return reinterpret_cast<GLFunctionPointerType>(
4105 Mock_glCompressedTexSubImage3DRobustANGLE);
4025 if (strcmp(name, "glCopyBufferSubData") == 0) 4106 if (strcmp(name, "glCopyBufferSubData") == 0)
4026 return reinterpret_cast<GLFunctionPointerType>(Mock_glCopyBufferSubData); 4107 return reinterpret_cast<GLFunctionPointerType>(Mock_glCopyBufferSubData);
4027 if (strcmp(name, "glCopySubTextureCHROMIUM") == 0) 4108 if (strcmp(name, "glCopySubTextureCHROMIUM") == 0)
4028 return reinterpret_cast<GLFunctionPointerType>( 4109 return reinterpret_cast<GLFunctionPointerType>(
4029 Mock_glCopySubTextureCHROMIUM); 4110 Mock_glCopySubTextureCHROMIUM);
4030 if (strcmp(name, "glCopyTexImage2D") == 0) 4111 if (strcmp(name, "glCopyTexImage2D") == 0)
4031 return reinterpret_cast<GLFunctionPointerType>(Mock_glCopyTexImage2D); 4112 return reinterpret_cast<GLFunctionPointerType>(Mock_glCopyTexImage2D);
4032 if (strcmp(name, "glCopyTexSubImage2D") == 0) 4113 if (strcmp(name, "glCopyTexSubImage2D") == 0)
4033 return reinterpret_cast<GLFunctionPointerType>(Mock_glCopyTexSubImage2D); 4114 return reinterpret_cast<GLFunctionPointerType>(Mock_glCopyTexSubImage2D);
4034 if (strcmp(name, "glCopyTexSubImage3D") == 0) 4115 if (strcmp(name, "glCopyTexSubImage3D") == 0)
(...skipping 946 matching lines...) Expand 10 before | Expand all | Expand 10 after
4981 if (strcmp(name, "glVertexAttribPointer") == 0) 5062 if (strcmp(name, "glVertexAttribPointer") == 0)
4982 return reinterpret_cast<GLFunctionPointerType>(Mock_glVertexAttribPointer); 5063 return reinterpret_cast<GLFunctionPointerType>(Mock_glVertexAttribPointer);
4983 if (strcmp(name, "glViewport") == 0) 5064 if (strcmp(name, "glViewport") == 0)
4984 return reinterpret_cast<GLFunctionPointerType>(Mock_glViewport); 5065 return reinterpret_cast<GLFunctionPointerType>(Mock_glViewport);
4985 if (strcmp(name, "glWaitSync") == 0) 5066 if (strcmp(name, "glWaitSync") == 0)
4986 return reinterpret_cast<GLFunctionPointerType>(Mock_glWaitSync); 5067 return reinterpret_cast<GLFunctionPointerType>(Mock_glWaitSync);
4987 return reinterpret_cast<GLFunctionPointerType>(&MockInvalidFunction); 5068 return reinterpret_cast<GLFunctionPointerType>(&MockInvalidFunction);
4988 } 5069 }
4989 5070
4990 } // namespace gl 5071 } // namespace gl
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698