| 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 347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 358 GLenum internalformat, | 358 GLenum internalformat, |
| 359 GLsizei width, GLsizei height) { | 359 GLsizei width, GLsizei height) { |
| 360 glRenderbufferStorageMultisampleEXT(target, samples, internalformat, width, | 360 glRenderbufferStorageMultisampleEXT(target, samples, internalformat, width, |
| 361 height); | 361 height); |
| 362 } | 362 } |
| 363 | 363 |
| 364 GLvoid StubGLScissor(GLint x, GLint y, GLsizei width, GLsizei height) { | 364 GLvoid StubGLScissor(GLint x, GLint y, GLsizei width, GLsizei height) { |
| 365 glScissor(x, y, width, height); | 365 glScissor(x, y, width, height); |
| 366 } | 366 } |
| 367 | 367 |
| 368 GLvoid StubGLShaderSource(GLuint shader, GLsizei count, const char** str, | 368 GLvoid StubGLShaderSource(GLuint shader, GLsizei count, const char* const* str, |
| 369 const GLint* length) { | 369 const GLint* length) { |
| 370 glShaderSource(shader, count, str, length); | 370 glShaderSource(shader, count, str, length); |
| 371 } | 371 } |
| 372 | 372 |
| 373 GLvoid StubGLStencilFunc(GLenum func, GLint ref, GLuint mask) { | 373 GLvoid StubGLStencilFunc(GLenum func, GLint ref, GLuint mask) { |
| 374 glStencilFunc(func, ref, mask); | 374 glStencilFunc(func, ref, mask); |
| 375 } | 375 } |
| 376 | 376 |
| 377 GLvoid StubGLStencilFuncSeparate(GLenum face, GLenum func, GLint ref, | 377 GLvoid StubGLStencilFuncSeparate(GLenum face, GLenum func, GLint ref, |
| 378 GLuint mask) { | 378 GLuint mask) { |
| (...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 672 StubGLRenderbufferStorageMultisample; | 672 StubGLRenderbufferStorageMultisample; |
| 673 interface->fBlitFramebuffer = StubGLBlitFramebuffer; | 673 interface->fBlitFramebuffer = StubGLBlitFramebuffer; |
| 674 interface->fMapBuffer = StubGLMapBuffer; | 674 interface->fMapBuffer = StubGLMapBuffer; |
| 675 interface->fUnmapBuffer = StubGLUnmapBuffer; | 675 interface->fUnmapBuffer = StubGLUnmapBuffer; |
| 676 interface->fBindFragDataLocationIndexed = | 676 interface->fBindFragDataLocationIndexed = |
| 677 StubGLBindFragDataLocationIndexed; | 677 StubGLBindFragDataLocationIndexed; |
| 678 return interface; | 678 return interface; |
| 679 } | 679 } |
| 680 | 680 |
| 681 } // namespace gfx | 681 } // namespace gfx |
| OLD | NEW |