OLD | NEW |
1 // Copyright (c) 2011 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/gfx/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/gfx/gl/gl_bindings.h" | 10 #include "ui/gl/gl_bindings.h" |
11 #include "ui/gfx/gl/gl_implementation.h" | 11 #include "ui/gl/gl_implementation.h" |
12 | 12 |
13 namespace { | 13 namespace { |
14 | 14 |
15 extern "C" { | 15 extern "C" { |
16 // The following stub functions are required because the glXXX routines exported | 16 // The following stub functions are required because the glXXX routines exported |
17 // via gl_bindings.h use call-type GL_BINDING_CALL, which on Windows is stdcall. | 17 // via gl_bindings.h use call-type GL_BINDING_CALL, which on Windows is stdcall. |
18 // Skia has been built such that its GrGLInterface GL pointers are __cdecl. | 18 // Skia has been built such that its GrGLInterface GL pointers are __cdecl. |
19 | 19 |
20 GLvoid StubGLActiveTexture(GLenum texture) { | 20 GLvoid StubGLActiveTexture(GLenum texture) { |
21 glActiveTexture(texture); | 21 glActiveTexture(texture); |
(...skipping 645 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
667 StubGLRenderbufferStorageMultisample; | 667 StubGLRenderbufferStorageMultisample; |
668 interface->fBlitFramebuffer = StubGLBlitFramebuffer; | 668 interface->fBlitFramebuffer = StubGLBlitFramebuffer; |
669 interface->fMapBuffer = StubGLMapBuffer; | 669 interface->fMapBuffer = StubGLMapBuffer; |
670 interface->fUnmapBuffer = StubGLUnmapBuffer; | 670 interface->fUnmapBuffer = StubGLUnmapBuffer; |
671 interface->fBindFragDataLocationIndexed = | 671 interface->fBindFragDataLocationIndexed = |
672 StubGLBindFragDataLocationIndexed; | 672 StubGLBindFragDataLocationIndexed; |
673 return interface; | 673 return interface; |
674 } | 674 } |
675 | 675 |
676 } // namespace gfx | 676 } // namespace gfx |
OLD | NEW |