| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 | 5 |
| 6 #include "ui/gl/gl_bindings_skia_in_process.h" | 6 #include "ui/gl/gl_bindings_skia_in_process.h" |
| 7 | 7 |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "third_party/skia/include/gpu/gl/GrGLInterface.h" | 9 #include "third_party/skia/include/gpu/gl/GrGLInterface.h" |
| 10 #include "ui/gl/gl_bindings.h" | 10 #include "ui/gl/gl_bindings.h" |
| (...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 270 } | 270 } |
| 271 | 271 |
| 272 GLvoid StubGLGenTextures(GLsizei n, GLuint* textures) { | 272 GLvoid StubGLGenTextures(GLsizei n, GLuint* textures) { |
| 273 glGenTextures(n, textures); | 273 glGenTextures(n, textures); |
| 274 } | 274 } |
| 275 | 275 |
| 276 GLvoid StubGLGenVertexArrays(GLsizei n, GLuint* arrays) { | 276 GLvoid StubGLGenVertexArrays(GLsizei n, GLuint* arrays) { |
| 277 glGenVertexArraysOES(n, arrays); | 277 glGenVertexArraysOES(n, arrays); |
| 278 } | 278 } |
| 279 | 279 |
| 280 GLvoid StubGLGenerateMipmap(GLenum target){ |
| 281 glGenerateMipmapEXT(target); |
| 282 } |
| 283 |
| 280 GLvoid StubGLGetBufferParameteriv(GLenum target, GLenum pname, GLint* params) { | 284 GLvoid StubGLGetBufferParameteriv(GLenum target, GLenum pname, GLint* params) { |
| 281 glGetBufferParameteriv(target, pname, params); | 285 glGetBufferParameteriv(target, pname, params); |
| 282 } | 286 } |
| 283 | 287 |
| 284 GLvoid StubGLGetFramebufferAttachmentParameteriv(GLenum target, | 288 GLvoid StubGLGetFramebufferAttachmentParameteriv(GLenum target, |
| 285 GLenum attachment, | 289 GLenum attachment, |
| 286 GLenum pname, GLint* params) { | 290 GLenum pname, GLint* params) { |
| 287 glGetFramebufferAttachmentParameterivEXT(target, attachment, pname, params); | 291 glGetFramebufferAttachmentParameterivEXT(target, attachment, pname, params); |
| 288 } | 292 } |
| 289 | 293 |
| (...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 661 functions->fEnable = StubGLEnable; | 665 functions->fEnable = StubGLEnable; |
| 662 functions->fEnableVertexAttribArray = StubGLEnableVertexAttribArray; | 666 functions->fEnableVertexAttribArray = StubGLEnableVertexAttribArray; |
| 663 functions->fEndQuery = StubGLEndQuery; | 667 functions->fEndQuery = StubGLEndQuery; |
| 664 functions->fFinish = StubGLFinish; | 668 functions->fFinish = StubGLFinish; |
| 665 functions->fFlush = StubGLFlush; | 669 functions->fFlush = StubGLFlush; |
| 666 functions->fFrontFace = StubGLFrontFace; | 670 functions->fFrontFace = StubGLFrontFace; |
| 667 functions->fGenBuffers = StubGLGenBuffers; | 671 functions->fGenBuffers = StubGLGenBuffers; |
| 668 functions->fGenQueries = StubGLGenQueries; | 672 functions->fGenQueries = StubGLGenQueries; |
| 669 functions->fGenTextures = StubGLGenTextures; | 673 functions->fGenTextures = StubGLGenTextures; |
| 670 functions->fGenVertexArrays = StubGLGenVertexArrays; | 674 functions->fGenVertexArrays = StubGLGenVertexArrays; |
| 675 functions->fGenerateMipmap = StubGLGenerateMipmap; |
| 671 functions->fGetBufferParameteriv = StubGLGetBufferParameteriv; | 676 functions->fGetBufferParameteriv = StubGLGetBufferParameteriv; |
| 672 functions->fGetError = StubGLGetError; | 677 functions->fGetError = StubGLGetError; |
| 673 functions->fGetIntegerv = StubGLGetIntegerv; | 678 functions->fGetIntegerv = StubGLGetIntegerv; |
| 674 functions->fGetQueryiv = StubGLGetQueryiv; | 679 functions->fGetQueryiv = StubGLGetQueryiv; |
| 675 functions->fGetQueryObjecti64v = StubGLGetQueryObjecti64v; | 680 functions->fGetQueryObjecti64v = StubGLGetQueryObjecti64v; |
| 676 functions->fGetQueryObjectiv = StubGLGetQueryObjectiv; | 681 functions->fGetQueryObjectiv = StubGLGetQueryObjectiv; |
| 677 functions->fGetQueryObjectui64v = StubGLGetQueryObjectui64v; | 682 functions->fGetQueryObjectui64v = StubGLGetQueryObjectui64v; |
| 678 functions->fGetQueryObjectuiv = StubGLGetQueryObjectuiv; | 683 functions->fGetQueryObjectuiv = StubGLGetQueryObjectuiv; |
| 679 functions->fGetProgramInfoLog = StubGLGetProgramInfoLog; | 684 functions->fGetProgramInfoLog = StubGLGetProgramInfoLog; |
| 680 functions->fGetProgramiv = StubGLGetProgramiv; | 685 functions->fGetProgramiv = StubGLGetProgramiv; |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 752 functions->fBlitFramebuffer = StubGLBlitFramebuffer; | 757 functions->fBlitFramebuffer = StubGLBlitFramebuffer; |
| 753 functions->fMapBuffer = StubGLMapBuffer; | 758 functions->fMapBuffer = StubGLMapBuffer; |
| 754 functions->fUnmapBuffer = StubGLUnmapBuffer; | 759 functions->fUnmapBuffer = StubGLUnmapBuffer; |
| 755 functions->fBindFragDataLocationIndexed = | 760 functions->fBindFragDataLocationIndexed = |
| 756 StubGLBindFragDataLocationIndexed; | 761 StubGLBindFragDataLocationIndexed; |
| 757 | 762 |
| 758 return interface; | 763 return interface; |
| 759 } | 764 } |
| 760 | 765 |
| 761 } // namespace gfx | 766 } // namespace gfx |
| OLD | NEW |