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

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

Issue 2781863002: Revert of Update the passthrough command decoder to use the new CHROMIUM_copy_texture. (Closed)
Patch Set: Created 3 years, 8 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 GLuint source_id = static_cast<GLuint>(c.source_id); 4572 GLenum source_id = static_cast<GLenum>(c.source_id);
4573 GLint source_level = static_cast<GLint>(c.source_level); 4573 GLint source_level = static_cast<GLint>(c.source_level);
4574 GLenum dest_target = static_cast<GLenum>(c.dest_target); 4574 GLenum dest_target = static_cast<GLenum>(c.dest_target);
4575 GLuint dest_id = static_cast<GLuint>(c.dest_id); 4575 GLenum dest_id = static_cast<GLenum>(c.dest_id);
4576 GLint dest_level = static_cast<GLint>(c.dest_level); 4576 GLint dest_level = static_cast<GLint>(c.dest_level);
4577 GLint internalformat = static_cast<GLint>(c.internalformat); 4577 GLint internalformat = static_cast<GLint>(c.internalformat);
4578 GLenum dest_type = static_cast<GLenum>(c.dest_type); 4578 GLenum dest_type = static_cast<GLenum>(c.dest_type);
4579 GLboolean unpack_flip_y = static_cast<GLboolean>(c.unpack_flip_y); 4579 GLboolean unpack_flip_y = static_cast<GLboolean>(c.unpack_flip_y);
4580 GLboolean unpack_premultiply_alpha = 4580 GLboolean unpack_premultiply_alpha =
4581 static_cast<GLboolean>(c.unpack_premultiply_alpha); 4581 static_cast<GLboolean>(c.unpack_premultiply_alpha);
4582 GLboolean unpack_unmultiply_alpha = 4582 GLboolean unpack_unmultiply_alpha =
4583 static_cast<GLboolean>(c.unpack_unmultiply_alpha); 4583 static_cast<GLboolean>(c.unpack_unmultiply_alpha);
4584 if (!validators_->texture_internal_format.IsValid(internalformat)) { 4584 if (!validators_->texture_internal_format.IsValid(internalformat)) {
4585 LOCAL_SET_GL_ERROR(GL_INVALID_VALUE, "glCopyTextureCHROMIUM", 4585 LOCAL_SET_GL_ERROR(GL_INVALID_VALUE, "glCopyTextureCHROMIUM",
(...skipping 10 matching lines...) Expand all
4596 unpack_premultiply_alpha, unpack_unmultiply_alpha); 4596 unpack_premultiply_alpha, unpack_unmultiply_alpha);
4597 return error::kNoError; 4597 return error::kNoError;
4598 } 4598 }
4599 4599
4600 error::Error GLES2DecoderImpl::HandleCopySubTextureCHROMIUM( 4600 error::Error GLES2DecoderImpl::HandleCopySubTextureCHROMIUM(
4601 uint32_t immediate_data_size, 4601 uint32_t immediate_data_size,
4602 const volatile void* cmd_data) { 4602 const volatile void* cmd_data) {
4603 const volatile gles2::cmds::CopySubTextureCHROMIUM& c = 4603 const volatile gles2::cmds::CopySubTextureCHROMIUM& c =
4604 *static_cast<const volatile gles2::cmds::CopySubTextureCHROMIUM*>( 4604 *static_cast<const volatile gles2::cmds::CopySubTextureCHROMIUM*>(
4605 cmd_data); 4605 cmd_data);
4606 GLuint source_id = static_cast<GLuint>(c.source_id); 4606 GLenum source_id = static_cast<GLenum>(c.source_id);
4607 GLint source_level = static_cast<GLint>(c.source_level); 4607 GLint source_level = static_cast<GLint>(c.source_level);
4608 GLenum dest_target = static_cast<GLenum>(c.dest_target); 4608 GLenum dest_target = static_cast<GLenum>(c.dest_target);
4609 GLuint dest_id = static_cast<GLuint>(c.dest_id); 4609 GLenum dest_id = static_cast<GLenum>(c.dest_id);
4610 GLint dest_level = static_cast<GLint>(c.dest_level); 4610 GLint dest_level = static_cast<GLint>(c.dest_level);
4611 GLint xoffset = static_cast<GLint>(c.xoffset); 4611 GLint xoffset = static_cast<GLint>(c.xoffset);
4612 GLint yoffset = static_cast<GLint>(c.yoffset); 4612 GLint yoffset = static_cast<GLint>(c.yoffset);
4613 GLint x = static_cast<GLint>(c.x); 4613 GLint x = static_cast<GLint>(c.x);
4614 GLint y = static_cast<GLint>(c.y); 4614 GLint y = static_cast<GLint>(c.y);
4615 GLsizei width = static_cast<GLsizei>(c.width); 4615 GLsizei width = static_cast<GLsizei>(c.width);
4616 GLsizei height = static_cast<GLsizei>(c.height); 4616 GLsizei height = static_cast<GLsizei>(c.height);
4617 GLboolean unpack_flip_y = static_cast<GLboolean>(c.unpack_flip_y); 4617 GLboolean unpack_flip_y = static_cast<GLboolean>(c.unpack_flip_y);
4618 GLboolean unpack_premultiply_alpha = 4618 GLboolean unpack_premultiply_alpha =
4619 static_cast<GLboolean>(c.unpack_premultiply_alpha); 4619 static_cast<GLboolean>(c.unpack_premultiply_alpha);
(...skipping 15 matching lines...) Expand all
4635 unpack_unmultiply_alpha); 4635 unpack_unmultiply_alpha);
4636 return error::kNoError; 4636 return error::kNoError;
4637 } 4637 }
4638 4638
4639 error::Error GLES2DecoderImpl::HandleCompressedCopyTextureCHROMIUM( 4639 error::Error GLES2DecoderImpl::HandleCompressedCopyTextureCHROMIUM(
4640 uint32_t immediate_data_size, 4640 uint32_t immediate_data_size,
4641 const volatile void* cmd_data) { 4641 const volatile void* cmd_data) {
4642 const volatile gles2::cmds::CompressedCopyTextureCHROMIUM& c = 4642 const volatile gles2::cmds::CompressedCopyTextureCHROMIUM& c =
4643 *static_cast<const volatile gles2::cmds::CompressedCopyTextureCHROMIUM*>( 4643 *static_cast<const volatile gles2::cmds::CompressedCopyTextureCHROMIUM*>(
4644 cmd_data); 4644 cmd_data);
4645 GLuint source_id = static_cast<GLuint>(c.source_id); 4645 GLenum source_id = static_cast<GLenum>(c.source_id);
4646 GLuint dest_id = static_cast<GLuint>(c.dest_id); 4646 GLenum dest_id = static_cast<GLenum>(c.dest_id);
4647 DoCompressedCopyTextureCHROMIUM(source_id, dest_id); 4647 DoCompressedCopyTextureCHROMIUM(source_id, dest_id);
4648 return error::kNoError; 4648 return error::kNoError;
4649 } 4649 }
4650 4650
4651 error::Error GLES2DecoderImpl::HandleProduceTextureCHROMIUMImmediate( 4651 error::Error GLES2DecoderImpl::HandleProduceTextureCHROMIUMImmediate(
4652 uint32_t immediate_data_size, 4652 uint32_t immediate_data_size,
4653 const volatile void* cmd_data) { 4653 const volatile void* cmd_data) {
4654 const volatile gles2::cmds::ProduceTextureCHROMIUMImmediate& c = *static_cast< 4654 const volatile gles2::cmds::ProduceTextureCHROMIUMImmediate& c = *static_cast<
4655 const volatile gles2::cmds::ProduceTextureCHROMIUMImmediate*>(cmd_data); 4655 const volatile gles2::cmds::ProduceTextureCHROMIUMImmediate*>(cmd_data);
4656 GLenum target = static_cast<GLenum>(c.target); 4656 GLenum target = static_cast<GLenum>(c.target);
(...skipping 637 matching lines...) Expand 10 before | Expand all | Expand 10 after
5294 state_.enable_flags.cached_sample_alpha_to_one_ext = enabled; 5294 state_.enable_flags.cached_sample_alpha_to_one_ext = enabled;
5295 return true; 5295 return true;
5296 } 5296 }
5297 return false; 5297 return false;
5298 default: 5298 default:
5299 NOTREACHED(); 5299 NOTREACHED();
5300 return false; 5300 return false;
5301 } 5301 }
5302 } 5302 }
5303 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_AUTOGEN_H_ 5303 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_AUTOGEN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698