| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #include "ui/gl/gl_mock.h" | 5 #include "ui/gl/gl_mock.h" |
| 6 | 6 |
| 7 namespace gfx { | 7 namespace gl { |
| 8 | 8 |
| 9 namespace { | 9 namespace { |
| 10 | 10 |
| 11 // This is called mainly to prevent the compiler combining the code of mock | 11 // This is called mainly to prevent the compiler combining the code of mock |
| 12 // functions with identical contents, so that their function pointers will be | 12 // functions with identical contents, so that their function pointers will be |
| 13 // different. | 13 // different. |
| 14 void MakeFunctionUnique(const char* func_name) { | 14 void MakeFunctionUnique(const char* func_name) { |
| 15 VLOG(2) << "Calling mock " << func_name; | 15 VLOG(2) << "Calling mock " << func_name; |
| 16 } | 16 } |
| 17 | 17 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 31 | 31 |
| 32 void GL_BINDING_CALL MockGLInterface::Mock_glTexSubImage3DNoData( | 32 void GL_BINDING_CALL MockGLInterface::Mock_glTexSubImage3DNoData( |
| 33 GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, | 33 GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, |
| 34 GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type) { | 34 GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type) { |
| 35 MakeFunctionUnique("glTexSubImage3DNoData"); | 35 MakeFunctionUnique("glTexSubImage3DNoData"); |
| 36 interface_->TexSubImage3DNoData( | 36 interface_->TexSubImage3DNoData( |
| 37 target, level, xoffset, yoffset, zoffset, width, height, depth, | 37 target, level, xoffset, yoffset, zoffset, width, height, depth, |
| 38 format, type); | 38 format, type); |
| 39 } | 39 } |
| 40 | 40 |
| 41 } // namespace gfx | 41 } // namespace gl |
| OLD | NEW |