Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(17)

Side by Side Diff: ui/gl/gl_bindings_autogen_mock.cc

Issue 1998723002: Move code in ui/gl/* from gfx:: to gl:: (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ui/gl/gl_bindings_autogen_glx.cc ('k') | ui/gl/gl_bindings_autogen_osmesa.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « ui/gl/gl_bindings_autogen_glx.cc ('k') | ui/gl/gl_bindings_autogen_osmesa.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698