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

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

Issue 878793002: Add CopyTexSubImage3D to GPU command buffer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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
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 395 matching lines...) Expand 10 before | Expand all | Expand 10 after
406 } 406 }
407 if (height < 0) { 407 if (height < 0) {
408 SetGLError(GL_INVALID_VALUE, "glCopyTexSubImage2D", "height < 0"); 408 SetGLError(GL_INVALID_VALUE, "glCopyTexSubImage2D", "height < 0");
409 return; 409 return;
410 } 410 }
411 helper_->CopyTexSubImage2D(target, level, xoffset, yoffset, x, y, width, 411 helper_->CopyTexSubImage2D(target, level, xoffset, yoffset, x, y, width,
412 height); 412 height);
413 CheckGLError(); 413 CheckGLError();
414 } 414 }
415 415
416 void GLES2Implementation::CopyTexSubImage3D(GLenum target,
417 GLint level,
418 GLint xoffset,
419 GLint yoffset,
420 GLint zoffset,
421 GLint x,
422 GLint y,
423 GLsizei width,
424 GLsizei height) {
425 GPU_CLIENT_SINGLE_THREAD_CHECK();
426 GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glCopyTexSubImage3D("
427 << GLES2Util::GetStringTexture3DTarget(target) << ", "
428 << level << ", " << xoffset << ", " << yoffset << ", "
429 << zoffset << ", " << x << ", " << y << ", " << width
430 << ", " << height << ")");
431 if (width < 0) {
432 SetGLError(GL_INVALID_VALUE, "glCopyTexSubImage3D", "width < 0");
433 return;
434 }
435 if (height < 0) {
436 SetGLError(GL_INVALID_VALUE, "glCopyTexSubImage3D", "height < 0");
437 return;
438 }
439 helper_->CopyTexSubImage3D(target, level, xoffset, yoffset, zoffset, x, y,
440 width, height);
441 CheckGLError();
442 }
443
416 GLuint GLES2Implementation::CreateProgram() { 444 GLuint GLES2Implementation::CreateProgram() {
417 GPU_CLIENT_SINGLE_THREAD_CHECK(); 445 GPU_CLIENT_SINGLE_THREAD_CHECK();
418 GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glCreateProgram(" 446 GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glCreateProgram("
419 << ")"); 447 << ")");
420 GLuint client_id; 448 GLuint client_id;
421 GetIdHandler(id_namespaces::kProgramsAndShaders) 449 GetIdHandler(id_namespaces::kProgramsAndShaders)
422 ->MakeIds(this, 0, 1, &client_id); 450 ->MakeIds(this, 0, 1, &client_id);
423 helper_->CreateProgram(client_id); 451 helper_->CreateProgram(client_id);
424 GPU_CLIENT_LOG("returned " << client_id); 452 GPU_CLIENT_LOG("returned " << client_id);
425 CheckGLError(); 453 CheckGLError();
(...skipping 2900 matching lines...) Expand 10 before | Expand all | Expand 10 after
3326 3354
3327 void GLES2Implementation::BlendBarrierKHR() { 3355 void GLES2Implementation::BlendBarrierKHR() {
3328 GPU_CLIENT_SINGLE_THREAD_CHECK(); 3356 GPU_CLIENT_SINGLE_THREAD_CHECK();
3329 GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glBlendBarrierKHR(" 3357 GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glBlendBarrierKHR("
3330 << ")"); 3358 << ")");
3331 helper_->BlendBarrierKHR(); 3359 helper_->BlendBarrierKHR();
3332 CheckGLError(); 3360 CheckGLError();
3333 } 3361 }
3334 3362
3335 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_IMPL_AUTOGEN_H_ 3363 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_IMPL_AUTOGEN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698