| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/gfx/gl/gl_bindings_skia_in_process.h" | 6 #include "ui/gfx/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/GrGLInterface.h" | 9 #include "third_party/skia/include/gpu/GrGLInterface.h" |
| 10 #include "ui/gfx/gl/gl_bindings.h" | 10 #include "ui/gfx/gl/gl_bindings.h" |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 | 36 |
| 37 GLvoid StubGLBindBuffer(GLenum target, GLuint buffer) { | 37 GLvoid StubGLBindBuffer(GLenum target, GLuint buffer) { |
| 38 glBindBuffer(target, buffer); | 38 glBindBuffer(target, buffer); |
| 39 } | 39 } |
| 40 | 40 |
| 41 GLvoid StubGLBindFragDataLocation(GLuint program, GLuint colorNumber, | 41 GLvoid StubGLBindFragDataLocation(GLuint program, GLuint colorNumber, |
| 42 const GLchar * name) { | 42 const GLchar * name) { |
| 43 glBindFragDataLocation(program, colorNumber, name); | 43 glBindFragDataLocation(program, colorNumber, name); |
| 44 } | 44 } |
| 45 | 45 |
| 46 GLvoid StubGLBindFragDataLocationIndexedARB(GLuint program, GLuint colorNumber, | 46 GLvoid StubGLBindFragDataLocationIndexed(GLuint program, GLuint colorNumber, |
| 47 GLuint index, const GLchar * name) { | 47 GLuint index, const GLchar * name) { |
| 48 glBindFragDataLocationIndexedARB(program, colorNumber, index, name); | 48 glBindFragDataLocationIndexed(program, colorNumber, index, name); |
| 49 } | 49 } |
| 50 | 50 |
| 51 GLvoid StubGLBindFramebuffer(GLenum target, GLuint framebuffer) { | 51 GLvoid StubGLBindFramebuffer(GLenum target, GLuint framebuffer) { |
| 52 glBindFramebufferEXT(target, framebuffer); | 52 glBindFramebufferEXT(target, framebuffer); |
| 53 } | 53 } |
| 54 | 54 |
| 55 GLvoid StubGLBindRenderbuffer(GLenum target, GLuint renderbuffer) { | 55 GLvoid StubGLBindRenderbuffer(GLenum target, GLuint renderbuffer) { |
| 56 glBindRenderbufferEXT(target, renderbuffer); | 56 glBindRenderbufferEXT(target, renderbuffer); |
| 57 } | 57 } |
| 58 | 58 |
| (...skipping 595 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 654 interface->fGetFramebufferAttachmentParameteriv = | 654 interface->fGetFramebufferAttachmentParameteriv = |
| 655 StubGLGetFramebufferAttachmentParameteriv; | 655 StubGLGetFramebufferAttachmentParameteriv; |
| 656 interface->fGetRenderbufferParameteriv = StubGLGetRenderbufferParameteriv; | 656 interface->fGetRenderbufferParameteriv = StubGLGetRenderbufferParameteriv; |
| 657 interface->fRenderbufferStorage = StubGLRenderbufferStorage; | 657 interface->fRenderbufferStorage = StubGLRenderbufferStorage; |
| 658 interface->fRenderbufferStorageMultisample = | 658 interface->fRenderbufferStorageMultisample = |
| 659 StubGLRenderbufferStorageMultisample; | 659 StubGLRenderbufferStorageMultisample; |
| 660 interface->fBlitFramebuffer = StubGLBlitFramebuffer; | 660 interface->fBlitFramebuffer = StubGLBlitFramebuffer; |
| 661 interface->fMapBuffer = StubGLMapBuffer; | 661 interface->fMapBuffer = StubGLMapBuffer; |
| 662 interface->fUnmapBuffer = StubGLUnmapBuffer; | 662 interface->fUnmapBuffer = StubGLUnmapBuffer; |
| 663 interface->fBindFragDataLocationIndexed = | 663 interface->fBindFragDataLocationIndexed = |
| 664 StubGLBindFragDataLocationIndexedARB; | 664 StubGLBindFragDataLocationIndexed; |
| 665 return interface; | 665 return interface; |
| 666 } | 666 } |
| 667 | 667 |
| 668 } // namespace gfx | 668 } // namespace gfx |
| 669 | |
| OLD | NEW |