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.h> | 11 #include <string.h> |
12 | 12 |
13 #include "ui/gl/gl_mock.h" | 13 #include "ui/gl/gl_mock.h" |
14 | 14 |
15 namespace gfx { | 15 namespace gl { |
16 | 16 |
17 // This is called mainly to prevent the compiler combining the code of mock | 17 // This is called mainly to prevent the compiler combining the code of mock |
18 // functions with identical contents, so that their function pointers will be | 18 // functions with identical contents, so that their function pointers will be |
19 // different. | 19 // different. |
20 void MakeFunctionUnique(const char* func_name) { | 20 void MakeFunctionUnique(const char* func_name) { |
21 VLOG(2) << "Calling mock " << func_name; | 21 VLOG(2) << "Calling mock " << func_name; |
22 } | 22 } |
23 | 23 |
24 void GL_BINDING_CALL MockGLInterface::Mock_glActiveTexture(GLenum texture) { | 24 void GL_BINDING_CALL MockGLInterface::Mock_glActiveTexture(GLenum texture) { |
25 MakeFunctionUnique("glActiveTexture"); | 25 MakeFunctionUnique("glActiveTexture"); |
(...skipping 3655 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3681 return reinterpret_cast<void*>(Mock_glVertexAttribIPointer); | 3681 return reinterpret_cast<void*>(Mock_glVertexAttribIPointer); |
3682 if (strcmp(name, "glVertexAttribPointer") == 0) | 3682 if (strcmp(name, "glVertexAttribPointer") == 0) |
3683 return reinterpret_cast<void*>(Mock_glVertexAttribPointer); | 3683 return reinterpret_cast<void*>(Mock_glVertexAttribPointer); |
3684 if (strcmp(name, "glViewport") == 0) | 3684 if (strcmp(name, "glViewport") == 0) |
3685 return reinterpret_cast<void*>(Mock_glViewport); | 3685 return reinterpret_cast<void*>(Mock_glViewport); |
3686 if (strcmp(name, "glWaitSync") == 0) | 3686 if (strcmp(name, "glWaitSync") == 0) |
3687 return reinterpret_cast<void*>(Mock_glWaitSync); | 3687 return reinterpret_cast<void*>(Mock_glWaitSync); |
3688 return reinterpret_cast<void*>(&MockInvalidFunction); | 3688 return reinterpret_cast<void*>(&MockInvalidFunction); |
3689 } | 3689 } |
3690 | 3690 |
3691 } // namespace gfx | 3691 } // namespace gl |
OLD | NEW |