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

Side by Side Diff: gpu/command_buffer/service/gles2_cmd_decoder_autogen.h

Issue 1143373004: gpu: Extend CopyTextureCHROMIUM with support for copying part of source texture. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: keep TODO for now Created 5 years, 7 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 4535 matching lines...) Expand 10 before | Expand all | Expand 10 after
4546 uint32_t immediate_data_size, 4546 uint32_t immediate_data_size,
4547 const void* cmd_data) { 4547 const void* cmd_data) {
4548 const gles2::cmds::CopySubTextureCHROMIUM& c = 4548 const gles2::cmds::CopySubTextureCHROMIUM& c =
4549 *static_cast<const gles2::cmds::CopySubTextureCHROMIUM*>(cmd_data); 4549 *static_cast<const gles2::cmds::CopySubTextureCHROMIUM*>(cmd_data);
4550 (void)c; 4550 (void)c;
4551 GLenum target = static_cast<GLenum>(c.target); 4551 GLenum target = static_cast<GLenum>(c.target);
4552 GLenum source_id = static_cast<GLenum>(c.source_id); 4552 GLenum source_id = static_cast<GLenum>(c.source_id);
4553 GLenum dest_id = static_cast<GLenum>(c.dest_id); 4553 GLenum dest_id = static_cast<GLenum>(c.dest_id);
4554 GLint xoffset = static_cast<GLint>(c.xoffset); 4554 GLint xoffset = static_cast<GLint>(c.xoffset);
4555 GLint yoffset = static_cast<GLint>(c.yoffset); 4555 GLint yoffset = static_cast<GLint>(c.yoffset);
4556 DoCopySubTextureCHROMIUM(target, source_id, dest_id, xoffset, yoffset); 4556 GLint x = static_cast<GLint>(c.x);
4557 GLint y = static_cast<GLint>(c.y);
4558 GLsizei width = static_cast<GLsizei>(c.width);
4559 GLsizei height = static_cast<GLsizei>(c.height);
4560 if (width < 0) {
4561 LOCAL_SET_GL_ERROR(GL_INVALID_VALUE, "glCopySubTextureCHROMIUM",
4562 "width < 0");
4563 return error::kNoError;
4564 }
4565 if (height < 0) {
4566 LOCAL_SET_GL_ERROR(GL_INVALID_VALUE, "glCopySubTextureCHROMIUM",
4567 "height < 0");
4568 return error::kNoError;
4569 }
4570 DoCopySubTextureCHROMIUM(target, source_id, dest_id, xoffset, yoffset, x, y,
4571 width, height);
4557 return error::kNoError; 4572 return error::kNoError;
4558 } 4573 }
4559 4574
4560 error::Error GLES2DecoderImpl::HandleProduceTextureCHROMIUMImmediate( 4575 error::Error GLES2DecoderImpl::HandleProduceTextureCHROMIUMImmediate(
4561 uint32_t immediate_data_size, 4576 uint32_t immediate_data_size,
4562 const void* cmd_data) { 4577 const void* cmd_data) {
4563 const gles2::cmds::ProduceTextureCHROMIUMImmediate& c = 4578 const gles2::cmds::ProduceTextureCHROMIUMImmediate& c =
4564 *static_cast<const gles2::cmds::ProduceTextureCHROMIUMImmediate*>( 4579 *static_cast<const gles2::cmds::ProduceTextureCHROMIUMImmediate*>(
4565 cmd_data); 4580 cmd_data);
4566 (void)c; 4581 (void)c;
(...skipping 515 matching lines...) Expand 10 before | Expand all | Expand 10 after
5082 state_.enable_flags.cached_primitive_restart_fixed_index = enabled; 5097 state_.enable_flags.cached_primitive_restart_fixed_index = enabled;
5083 return true; 5098 return true;
5084 } 5099 }
5085 return false; 5100 return false;
5086 default: 5101 default:
5087 NOTREACHED(); 5102 NOTREACHED();
5088 return false; 5103 return false;
5089 } 5104 }
5090 } 5105 }
5091 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_AUTOGEN_H_ 5106 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_AUTOGEN_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_decoder.cc ('k') | gpu/command_buffer/tests/gl_copy_texture_CHROMIUM_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698