| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 1848 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1859 if (ver->IsAtLeastGL(4u, 2u) || ver->IsAtLeastGLES(3u, 0u) || | 1859 if (ver->IsAtLeastGL(4u, 2u) || ver->IsAtLeastGLES(3u, 0u) || |
| 1860 ext.b_GL_ARB_texture_storage) { | 1860 ext.b_GL_ARB_texture_storage) { |
| 1861 fn.glTexStorage2DEXTFn = reinterpret_cast<glTexStorage2DEXTProc>( | 1861 fn.glTexStorage2DEXTFn = reinterpret_cast<glTexStorage2DEXTProc>( |
| 1862 GetGLProcAddress("glTexStorage2D")); | 1862 GetGLProcAddress("glTexStorage2D")); |
| 1863 } else if (ext.b_GL_EXT_texture_storage) { | 1863 } else if (ext.b_GL_EXT_texture_storage) { |
| 1864 fn.glTexStorage2DEXTFn = reinterpret_cast<glTexStorage2DEXTProc>( | 1864 fn.glTexStorage2DEXTFn = reinterpret_cast<glTexStorage2DEXTProc>( |
| 1865 GetGLProcAddress("glTexStorage2DEXT")); | 1865 GetGLProcAddress("glTexStorage2DEXT")); |
| 1866 } | 1866 } |
| 1867 | 1867 |
| 1868 debug_fn.glTexStorage3DFn = 0; | 1868 debug_fn.glTexStorage3DFn = 0; |
| 1869 if (ver->IsAtLeastGL(4u, 2u) || ver->IsAtLeastGLES(3u, 0u)) { | 1869 if (ver->IsAtLeastGL(4u, 2u) || ver->IsAtLeastGLES(3u, 0u) || |
| 1870 ext.b_GL_ARB_texture_storage) { |
| 1870 fn.glTexStorage3DFn = reinterpret_cast<glTexStorage3DProc>( | 1871 fn.glTexStorage3DFn = reinterpret_cast<glTexStorage3DProc>( |
| 1871 GetGLProcAddress("glTexStorage3D")); | 1872 GetGLProcAddress("glTexStorage3D")); |
| 1872 } | 1873 } |
| 1873 | 1874 |
| 1874 debug_fn.glTexSubImage3DFn = 0; | 1875 debug_fn.glTexSubImage3DFn = 0; |
| 1875 if (!ver->is_es || ver->IsAtLeastGLES(3u, 0u)) { | 1876 if (!ver->is_es || ver->IsAtLeastGLES(3u, 0u)) { |
| 1876 fn.glTexSubImage3DFn = reinterpret_cast<glTexSubImage3DProc>( | 1877 fn.glTexSubImage3DFn = reinterpret_cast<glTexSubImage3DProc>( |
| 1877 GetGLProcAddress("glTexSubImage3D")); | 1878 GetGLProcAddress("glTexSubImage3D")); |
| 1878 } | 1879 } |
| 1879 | 1880 |
| (...skipping 11615 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13495 | 13496 |
| 13496 GLenum NoContextGLApi::glWaitSyncFn(GLsync sync, | 13497 GLenum NoContextGLApi::glWaitSyncFn(GLsync sync, |
| 13497 GLbitfield flags, | 13498 GLbitfield flags, |
| 13498 GLuint64 timeout) { | 13499 GLuint64 timeout) { |
| 13499 NOTREACHED() << "Trying to call glWaitSync() without current GL context"; | 13500 NOTREACHED() << "Trying to call glWaitSync() without current GL context"; |
| 13500 LOG(ERROR) << "Trying to call glWaitSync() without current GL context"; | 13501 LOG(ERROR) << "Trying to call glWaitSync() without current GL context"; |
| 13501 return static_cast<GLenum>(0); | 13502 return static_cast<GLenum>(0); |
| 13502 } | 13503 } |
| 13503 | 13504 |
| 13504 } // namespace gfx | 13505 } // namespace gfx |
| OLD | NEW |