| 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 |
| 11 #include <string> | 11 #include <string> |
| 12 | 12 |
| 13 #include "base/trace_event/trace_event.h" | 13 #include "base/trace_event/trace_event.h" |
| 14 #include "ui/gl/gl_bindings.h" | 14 #include "ui/gl/gl_bindings.h" |
| 15 #include "ui/gl/gl_context.h" | 15 #include "ui/gl/gl_context.h" |
| 16 #include "ui/gl/gl_enums.h" | 16 #include "ui/gl/gl_enums.h" |
| 17 #include "ui/gl/gl_gl_api_implementation.h" | 17 #include "ui/gl/gl_gl_api_implementation.h" |
| 18 #include "ui/gl/gl_implementation.h" | 18 #include "ui/gl/gl_implementation.h" |
| 19 #include "ui/gl/gl_version_info.h" | 19 #include "ui/gl/gl_version_info.h" |
| 20 | 20 |
| 21 namespace gfx { | 21 namespace gl { |
| 22 | 22 |
| 23 static bool g_debugBindingsInitialized; | 23 static bool g_debugBindingsInitialized; |
| 24 DriverGL g_driver_gl; | 24 DriverGL g_driver_gl; |
| 25 | 25 |
| 26 void DriverGL::InitializeStaticBindings() { | 26 void DriverGL::InitializeStaticBindings() { |
| 27 fn.glActiveTextureFn = reinterpret_cast<glActiveTextureProc>( | 27 fn.glActiveTextureFn = reinterpret_cast<glActiveTextureProc>( |
| 28 GetGLProcAddress("glActiveTexture")); | 28 GetGLProcAddress("glActiveTexture")); |
| 29 fn.glApplyFramebufferAttachmentCMAAINTELFn = 0; | 29 fn.glApplyFramebufferAttachmentCMAAINTELFn = 0; |
| 30 fn.glAttachShaderFn = | 30 fn.glAttachShaderFn = |
| 31 reinterpret_cast<glAttachShaderProc>(GetGLProcAddress("glAttachShader")); | 31 reinterpret_cast<glAttachShaderProc>(GetGLProcAddress("glAttachShader")); |
| (...skipping 13512 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13544 } | 13544 } |
| 13545 | 13545 |
| 13546 GLenum NoContextGLApi::glWaitSyncFn(GLsync sync, | 13546 GLenum NoContextGLApi::glWaitSyncFn(GLsync sync, |
| 13547 GLbitfield flags, | 13547 GLbitfield flags, |
| 13548 GLuint64 timeout) { | 13548 GLuint64 timeout) { |
| 13549 NOTREACHED() << "Trying to call glWaitSync() without current GL context"; | 13549 NOTREACHED() << "Trying to call glWaitSync() without current GL context"; |
| 13550 LOG(ERROR) << "Trying to call glWaitSync() without current GL context"; | 13550 LOG(ERROR) << "Trying to call glWaitSync() without current GL context"; |
| 13551 return static_cast<GLenum>(0); | 13551 return static_cast<GLenum>(0); |
| 13552 } | 13552 } |
| 13553 | 13553 |
| 13554 } // namespace gfx | 13554 } // namespace gl |
| OLD | NEW |