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

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

Issue 740083003: Add unsafe ES3 APIs to command buffer: glTexStorage3D (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@cb
Patch Set: Created 6 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
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 // gpu/command_buffer/build_gles2_cmd_buffer.py 6 // gpu/command_buffer/build_gles2_cmd_buffer.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
(...skipping 1307 matching lines...) Expand 10 before | Expand all | Expand 10 after
1318 GPU_CLIENT_SINGLE_THREAD_CHECK(); 1318 GPU_CLIENT_SINGLE_THREAD_CHECK();
1319 GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glTexParameteriv(" 1319 GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glTexParameteriv("
1320 << GLES2Util::GetStringTextureBindTarget(target) << ", " 1320 << GLES2Util::GetStringTextureBindTarget(target) << ", "
1321 << GLES2Util::GetStringTextureParameter(pname) << ", " 1321 << GLES2Util::GetStringTextureParameter(pname) << ", "
1322 << static_cast<const void*>(params) << ")"); 1322 << static_cast<const void*>(params) << ")");
1323 GPU_CLIENT_LOG("values: " << params[0]); 1323 GPU_CLIENT_LOG("values: " << params[0]);
1324 helper_->TexParameterivImmediate(target, pname, params); 1324 helper_->TexParameterivImmediate(target, pname, params);
1325 CheckGLError(); 1325 CheckGLError();
1326 } 1326 }
1327 1327
1328 void GLES2Implementation::TexStorage3D(GLenum target,
1329 GLsizei levels,
1330 GLenum internalFormat,
1331 GLsizei width,
1332 GLsizei height,
1333 GLsizei depth) {
1334 GPU_CLIENT_SINGLE_THREAD_CHECK();
1335 GPU_CLIENT_LOG(
1336 "[" << GetLogPrefix() << "] glTexStorage3D("
1337 << GLES2Util::GetStringTexture3DTarget(target) << ", " << levels
1338 << ", "
1339 << GLES2Util::GetStringTextureInternalFormatStorage(internalFormat)
1340 << ", " << width << ", " << height << ", " << depth << ")");
1341 if (levels < 0) {
1342 SetGLError(GL_INVALID_VALUE, "glTexStorage3D", "levels < 0");
1343 return;
1344 }
1345 if (width < 0) {
1346 SetGLError(GL_INVALID_VALUE, "glTexStorage3D", "width < 0");
1347 return;
1348 }
1349 if (height < 0) {
1350 SetGLError(GL_INVALID_VALUE, "glTexStorage3D", "height < 0");
1351 return;
1352 }
1353 if (depth < 0) {
1354 SetGLError(GL_INVALID_VALUE, "glTexStorage3D", "depth < 0");
1355 return;
1356 }
1357 helper_->TexStorage3D(target, levels, internalFormat, width, height, depth);
1358 CheckGLError();
1359 }
1360
1328 void GLES2Implementation::Uniform1f(GLint location, GLfloat x) { 1361 void GLES2Implementation::Uniform1f(GLint location, GLfloat x) {
1329 GPU_CLIENT_SINGLE_THREAD_CHECK(); 1362 GPU_CLIENT_SINGLE_THREAD_CHECK();
1330 GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glUniform1f(" << location << ", " 1363 GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glUniform1f(" << location << ", "
1331 << x << ")"); 1364 << x << ")");
1332 helper_->Uniform1f(location, x); 1365 helper_->Uniform1f(location, x);
1333 CheckGLError(); 1366 CheckGLError();
1334 } 1367 }
1335 1368
1336 void GLES2Implementation::Uniform1fv(GLint location, 1369 void GLES2Implementation::Uniform1fv(GLint location,
1337 GLsizei count, 1370 GLsizei count,
(...skipping 1357 matching lines...) Expand 10 before | Expand all | Expand 10 after
2695 2728
2696 void GLES2Implementation::BlendBarrierKHR() { 2729 void GLES2Implementation::BlendBarrierKHR() {
2697 GPU_CLIENT_SINGLE_THREAD_CHECK(); 2730 GPU_CLIENT_SINGLE_THREAD_CHECK();
2698 GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glBlendBarrierKHR(" 2731 GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glBlendBarrierKHR("
2699 << ")"); 2732 << ")");
2700 helper_->BlendBarrierKHR(); 2733 helper_->BlendBarrierKHR();
2701 CheckGLError(); 2734 CheckGLError();
2702 } 2735 }
2703 2736
2704 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_IMPL_AUTOGEN_H_ 2737 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_IMPL_AUTOGEN_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/client/gles2_implementation_autogen.h ('k') | gpu/command_buffer/client/gles2_implementation_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698