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

Side by Side Diff: ui/gl/gl_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_mock.h ('k') | ui/gl/gl_osmesa_api_implementation.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 (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
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
OLDNEW
« no previous file with comments | « ui/gl/gl_mock.h ('k') | ui/gl/gl_osmesa_api_implementation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698