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

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

Issue 2639973002: Add target argument to Copy{Sub}TextureCHROMIUM entry point (Closed)
Patch Set: autogen code Created 3 years, 11 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 4551 matching lines...) Expand 10 before | Expand all | Expand 10 after
4562 } 4562 }
4563 DoFlushMappedBufferRange(target, offset, size); 4563 DoFlushMappedBufferRange(target, offset, size);
4564 return error::kNoError; 4564 return error::kNoError;
4565 } 4565 }
4566 4566
4567 error::Error GLES2DecoderImpl::HandleCopyTextureCHROMIUM( 4567 error::Error GLES2DecoderImpl::HandleCopyTextureCHROMIUM(
4568 uint32_t immediate_data_size, 4568 uint32_t immediate_data_size,
4569 const volatile void* cmd_data) { 4569 const volatile void* cmd_data) {
4570 const volatile gles2::cmds::CopyTextureCHROMIUM& c = 4570 const volatile gles2::cmds::CopyTextureCHROMIUM& c =
4571 *static_cast<const volatile gles2::cmds::CopyTextureCHROMIUM*>(cmd_data); 4571 *static_cast<const volatile gles2::cmds::CopyTextureCHROMIUM*>(cmd_data);
4572 GLenum target = static_cast<GLenum>(c.target);
4572 GLenum source_id = static_cast<GLenum>(c.source_id); 4573 GLenum source_id = static_cast<GLenum>(c.source_id);
4573 GLint source_level = static_cast<GLint>(c.source_level); 4574 GLint source_level = static_cast<GLint>(c.source_level);
4574 GLenum dest_id = static_cast<GLenum>(c.dest_id); 4575 GLenum dest_id = static_cast<GLenum>(c.dest_id);
4575 GLint dest_level = static_cast<GLint>(c.dest_level); 4576 GLint dest_level = static_cast<GLint>(c.dest_level);
4576 GLint internalformat = static_cast<GLint>(c.internalformat); 4577 GLint internalformat = static_cast<GLint>(c.internalformat);
4577 GLenum dest_type = static_cast<GLenum>(c.dest_type); 4578 GLenum dest_type = static_cast<GLenum>(c.dest_type);
4578 GLboolean unpack_flip_y = static_cast<GLboolean>(c.unpack_flip_y); 4579 GLboolean unpack_flip_y = static_cast<GLboolean>(c.unpack_flip_y);
4579 GLboolean unpack_premultiply_alpha = 4580 GLboolean unpack_premultiply_alpha =
4580 static_cast<GLboolean>(c.unpack_premultiply_alpha); 4581 static_cast<GLboolean>(c.unpack_premultiply_alpha);
4581 GLboolean unpack_unmultiply_alpha = 4582 GLboolean unpack_unmultiply_alpha =
4582 static_cast<GLboolean>(c.unpack_unmultiply_alpha); 4583 static_cast<GLboolean>(c.unpack_unmultiply_alpha);
4583 if (!validators_->texture_internal_format.IsValid(internalformat)) { 4584 if (!validators_->texture_internal_format.IsValid(internalformat)) {
4584 LOCAL_SET_GL_ERROR(GL_INVALID_VALUE, "glCopyTextureCHROMIUM", 4585 LOCAL_SET_GL_ERROR(GL_INVALID_VALUE, "glCopyTextureCHROMIUM",
4585 "internalformat GL_INVALID_VALUE"); 4586 "internalformat GL_INVALID_VALUE");
4586 return error::kNoError; 4587 return error::kNoError;
4587 } 4588 }
4588 if (!validators_->pixel_type.IsValid(dest_type)) { 4589 if (!validators_->pixel_type.IsValid(dest_type)) {
4589 LOCAL_SET_GL_ERROR_INVALID_ENUM("glCopyTextureCHROMIUM", dest_type, 4590 LOCAL_SET_GL_ERROR_INVALID_ENUM("glCopyTextureCHROMIUM", dest_type,
4590 "dest_type"); 4591 "dest_type");
4591 return error::kNoError; 4592 return error::kNoError;
4592 } 4593 }
4593 DoCopyTextureCHROMIUM(source_id, source_level, dest_id, dest_level, 4594 DoCopyTextureCHROMIUM(target, source_id, source_level, dest_id, dest_level,
4594 internalformat, dest_type, unpack_flip_y, 4595 internalformat, dest_type, unpack_flip_y,
4595 unpack_premultiply_alpha, unpack_unmultiply_alpha); 4596 unpack_premultiply_alpha, unpack_unmultiply_alpha);
4596 return error::kNoError; 4597 return error::kNoError;
4597 } 4598 }
4598 4599
4599 error::Error GLES2DecoderImpl::HandleCopySubTextureCHROMIUM( 4600 error::Error GLES2DecoderImpl::HandleCopySubTextureCHROMIUM(
4600 uint32_t immediate_data_size, 4601 uint32_t immediate_data_size,
4601 const volatile void* cmd_data) { 4602 const volatile void* cmd_data) {
4602 const volatile gles2::cmds::CopySubTextureCHROMIUM& c = 4603 const volatile gles2::cmds::CopySubTextureCHROMIUM& c =
4603 *static_cast<const volatile gles2::cmds::CopySubTextureCHROMIUM*>( 4604 *static_cast<const volatile gles2::cmds::CopySubTextureCHROMIUM*>(
4604 cmd_data); 4605 cmd_data);
4606 GLenum target = static_cast<GLenum>(c.target);
4605 GLenum source_id = static_cast<GLenum>(c.source_id); 4607 GLenum source_id = static_cast<GLenum>(c.source_id);
4606 GLint source_level = static_cast<GLint>(c.source_level); 4608 GLint source_level = static_cast<GLint>(c.source_level);
4607 GLenum dest_id = static_cast<GLenum>(c.dest_id); 4609 GLenum dest_id = static_cast<GLenum>(c.dest_id);
4608 GLint dest_level = static_cast<GLint>(c.dest_level); 4610 GLint dest_level = static_cast<GLint>(c.dest_level);
4609 GLint xoffset = static_cast<GLint>(c.xoffset); 4611 GLint xoffset = static_cast<GLint>(c.xoffset);
4610 GLint yoffset = static_cast<GLint>(c.yoffset); 4612 GLint yoffset = static_cast<GLint>(c.yoffset);
4611 GLint x = static_cast<GLint>(c.x); 4613 GLint x = static_cast<GLint>(c.x);
4612 GLint y = static_cast<GLint>(c.y); 4614 GLint y = static_cast<GLint>(c.y);
4613 GLsizei width = static_cast<GLsizei>(c.width); 4615 GLsizei width = static_cast<GLsizei>(c.width);
4614 GLsizei height = static_cast<GLsizei>(c.height); 4616 GLsizei height = static_cast<GLsizei>(c.height);
4615 GLboolean unpack_flip_y = static_cast<GLboolean>(c.unpack_flip_y); 4617 GLboolean unpack_flip_y = static_cast<GLboolean>(c.unpack_flip_y);
4616 GLboolean unpack_premultiply_alpha = 4618 GLboolean unpack_premultiply_alpha =
4617 static_cast<GLboolean>(c.unpack_premultiply_alpha); 4619 static_cast<GLboolean>(c.unpack_premultiply_alpha);
4618 GLboolean unpack_unmultiply_alpha = 4620 GLboolean unpack_unmultiply_alpha =
4619 static_cast<GLboolean>(c.unpack_unmultiply_alpha); 4621 static_cast<GLboolean>(c.unpack_unmultiply_alpha);
4620 if (width < 0) { 4622 if (width < 0) {
4621 LOCAL_SET_GL_ERROR(GL_INVALID_VALUE, "glCopySubTextureCHROMIUM", 4623 LOCAL_SET_GL_ERROR(GL_INVALID_VALUE, "glCopySubTextureCHROMIUM",
4622 "width < 0"); 4624 "width < 0");
4623 return error::kNoError; 4625 return error::kNoError;
4624 } 4626 }
4625 if (height < 0) { 4627 if (height < 0) {
4626 LOCAL_SET_GL_ERROR(GL_INVALID_VALUE, "glCopySubTextureCHROMIUM", 4628 LOCAL_SET_GL_ERROR(GL_INVALID_VALUE, "glCopySubTextureCHROMIUM",
4627 "height < 0"); 4629 "height < 0");
4628 return error::kNoError; 4630 return error::kNoError;
4629 } 4631 }
4630 DoCopySubTextureCHROMIUM(source_id, source_level, dest_id, dest_level, 4632 DoCopySubTextureCHROMIUM(target, source_id, source_level, dest_id, dest_level,
4631 xoffset, yoffset, x, y, width, height, unpack_flip_y, 4633 xoffset, yoffset, x, y, width, height, unpack_flip_y,
4632 unpack_premultiply_alpha, unpack_unmultiply_alpha); 4634 unpack_premultiply_alpha, unpack_unmultiply_alpha);
4633 return error::kNoError; 4635 return error::kNoError;
4634 } 4636 }
4635 4637
4636 error::Error GLES2DecoderImpl::HandleCompressedCopyTextureCHROMIUM( 4638 error::Error GLES2DecoderImpl::HandleCompressedCopyTextureCHROMIUM(
4637 uint32_t immediate_data_size, 4639 uint32_t immediate_data_size,
4638 const volatile void* cmd_data) { 4640 const volatile void* cmd_data) {
4639 const volatile gles2::cmds::CompressedCopyTextureCHROMIUM& c = 4641 const volatile gles2::cmds::CompressedCopyTextureCHROMIUM& c =
4640 *static_cast<const volatile gles2::cmds::CompressedCopyTextureCHROMIUM*>( 4642 *static_cast<const volatile gles2::cmds::CompressedCopyTextureCHROMIUM*>(
(...skipping 595 matching lines...) Expand 10 before | Expand all | Expand 10 after
5236 state_.enable_flags.cached_sample_alpha_to_one_ext = enabled; 5238 state_.enable_flags.cached_sample_alpha_to_one_ext = enabled;
5237 return true; 5239 return true;
5238 } 5240 }
5239 return false; 5241 return false;
5240 default: 5242 default:
5241 NOTREACHED(); 5243 NOTREACHED();
5242 return false; 5244 return false;
5243 } 5245 }
5244 } 5246 }
5245 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_AUTOGEN_H_ 5247 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_AUTOGEN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698