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

Side by Side Diff: gpu/command_buffer/client/gles2_implementation_autogen.h

Issue 8772033: Adds support for the GL_ANGLE_texture_usage and GL_EXT_texture_storage (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 // gpu/command_buffer/build_gles2_cmd_buffer.py 6 // gpu/command_buffer/build_gles2_cmd_buffer.py
7 // DO NOT EDIT! 7 // DO NOT EDIT!
8 8
9 // This file is included by gles2_implementation.h to declare the 9 // This file is included by gles2_implementation.h to declare the
10 // GL api functions. 10 // GL api functions.
(...skipping 1206 matching lines...) Expand 10 before | Expand all | Expand 10 after
1217 } 1217 }
1218 if (height < 0) { 1218 if (height < 0) {
1219 SetGLError( 1219 SetGLError(
1220 GL_INVALID_VALUE, "glRenderbufferStorageMultisampleEXT: height < 0"); 1220 GL_INVALID_VALUE, "glRenderbufferStorageMultisampleEXT: height < 0");
1221 return; 1221 return;
1222 } 1222 }
1223 helper_->RenderbufferStorageMultisampleEXT( 1223 helper_->RenderbufferStorageMultisampleEXT(
1224 target, samples, internalformat, width, height); 1224 target, samples, internalformat, width, height);
1225 } 1225 }
1226 1226
1227 void TexStorage2DEXT(
1228 GLenum target, GLsizei levels, GLint internalFormat, GLsizei width,
1229 GLsizei height) {
1230 GPU_CLIENT_LOG("[" << this << "] glTexStorage2DEXT(" << GLES2Util::GetStringTe xtureTarget(target) << ", " << levels << ", " << internalFormat << ", " << width << ", " << height << ")"); // NOLINT
1231 if (levels < 0) {
1232 SetGLError(GL_INVALID_VALUE, "glTexStorage2DEXT: levels < 0");
1233 return;
1234 }
1235 if (width < 0) {
1236 SetGLError(GL_INVALID_VALUE, "glTexStorage2DEXT: width < 0");
1237 return;
1238 }
1239 if (height < 0) {
1240 SetGLError(GL_INVALID_VALUE, "glTexStorage2DEXT: height < 0");
1241 return;
1242 }
1243 helper_->TexStorage2DEXT(target, levels, internalFormat, width, height);
1244 }
1245
1227 void SwapBuffers(); 1246 void SwapBuffers();
1228 1247
1229 GLuint GetMaxValueInBufferCHROMIUM( 1248 GLuint GetMaxValueInBufferCHROMIUM(
1230 GLuint buffer_id, GLsizei count, GLenum type, GLuint offset) { 1249 GLuint buffer_id, GLsizei count, GLenum type, GLuint offset) {
1231 GPU_CLIENT_LOG("[" << this << "] glGetMaxValueInBufferCHROMIUM(" << buffer_id << ", " << count << ", " << GLES2Util::GetStringGetMaxIndexType(type) << ", " << offset << ")"); // NOLINT 1250 GPU_CLIENT_LOG("[" << this << "] glGetMaxValueInBufferCHROMIUM(" << buffer_id << ", " << count << ", " << GLES2Util::GetStringGetMaxIndexType(type) << ", " << offset << ")"); // NOLINT
1232 typedef GetMaxValueInBufferCHROMIUM::Result Result; 1251 typedef GetMaxValueInBufferCHROMIUM::Result Result;
1233 Result* result = GetResultAs<Result*>(); 1252 Result* result = GetResultAs<Result*>();
1234 *result = 0; 1253 *result = 0;
1235 helper_->GetMaxValueInBufferCHROMIUM( 1254 helper_->GetMaxValueInBufferCHROMIUM(
1236 buffer_id, count, type, offset, GetResultShmId(), GetResultShmOffset()); 1255 buffer_id, count, type, offset, GetResultShmId(), GetResultShmOffset());
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
1317 if (height < 0) { 1336 if (height < 0) {
1318 SetGLError(GL_INVALID_VALUE, "glTexImageIOSurface2DCHROMIUM: height < 0"); 1337 SetGLError(GL_INVALID_VALUE, "glTexImageIOSurface2DCHROMIUM: height < 0");
1319 return; 1338 return;
1320 } 1339 }
1321 helper_->TexImageIOSurface2DCHROMIUM( 1340 helper_->TexImageIOSurface2DCHROMIUM(
1322 target, width, height, ioSurfaceId, plane); 1341 target, width, height, ioSurfaceId, plane);
1323 } 1342 }
1324 1343
1325 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_AUTOGEN_H_ 1344 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_AUTOGEN_H_
1326 1345
OLDNEW
« no previous file with comments | « gpu/command_buffer/client/gles2_cmd_helper_autogen.h ('k') | gpu/command_buffer/common/gl_mock.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698