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/service/gles2_cmd_decoder_autogen.h

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

Powered by Google App Engine
This is Rietveld 408576698