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

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

Issue 793693003: Tile Compression (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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 3615 matching lines...) Expand 10 before | Expand all | Expand 10 after
3626 if (!validators_->pixel_type.IsValid(dest_type)) { 3626 if (!validators_->pixel_type.IsValid(dest_type)) {
3627 LOCAL_SET_GL_ERROR_INVALID_ENUM("glCopyTextureCHROMIUM", dest_type, 3627 LOCAL_SET_GL_ERROR_INVALID_ENUM("glCopyTextureCHROMIUM", dest_type,
3628 "dest_type"); 3628 "dest_type");
3629 return error::kNoError; 3629 return error::kNoError;
3630 } 3630 }
3631 DoCopyTextureCHROMIUM(target, source_id, dest_id, level, internalformat, 3631 DoCopyTextureCHROMIUM(target, source_id, dest_id, level, internalformat,
3632 dest_type); 3632 dest_type);
3633 return error::kNoError; 3633 return error::kNoError;
3634 } 3634 }
3635 3635
3636 error::Error GLES2DecoderImpl::HandleCopyCompressedTextureCHROMIUM(
3637 uint32_t immediate_data_size,
3638 const void* cmd_data) {
3639 const gles2::cmds::CopyCompressedTextureCHROMIUM& c =
3640 *static_cast<const gles2::cmds::CopyCompressedTextureCHROMIUM*>(cmd_data);
3641 (void)c;
3642 GLenum target = static_cast<GLenum>(c.target);
3643 GLenum source_id = static_cast<GLenum>(c.source_id);
3644 GLenum dest_id = static_cast<GLenum>(c.dest_id);
3645 GLenum internalformat = static_cast<GLenum>(c.internalformat);
3646 GLenum dest_type = static_cast<GLenum>(c.dest_type);
3647 if (!validators_->compressed_texture_format.IsValid(internalformat)) {
3648 LOCAL_SET_GL_ERROR_INVALID_ENUM("glCopyCompressedTextureCHROMIUM",
3649 internalformat, "internalformat");
3650 return error::kNoError;
3651 }
3652 if (!validators_->pixel_type.IsValid(dest_type)) {
3653 LOCAL_SET_GL_ERROR_INVALID_ENUM("glCopyCompressedTextureCHROMIUM",
3654 dest_type, "dest_type");
3655 return error::kNoError;
3656 }
3657 DoCopyCompressedTextureCHROMIUM(target, source_id, dest_id, internalformat,
3658 dest_type);
3659 return error::kNoError;
3660 }
3661
3636 error::Error GLES2DecoderImpl::HandleProduceTextureCHROMIUMImmediate( 3662 error::Error GLES2DecoderImpl::HandleProduceTextureCHROMIUMImmediate(
3637 uint32_t immediate_data_size, 3663 uint32_t immediate_data_size,
3638 const void* cmd_data) { 3664 const void* cmd_data) {
3639 const gles2::cmds::ProduceTextureCHROMIUMImmediate& c = 3665 const gles2::cmds::ProduceTextureCHROMIUMImmediate& c =
3640 *static_cast<const gles2::cmds::ProduceTextureCHROMIUMImmediate*>( 3666 *static_cast<const gles2::cmds::ProduceTextureCHROMIUMImmediate*>(
3641 cmd_data); 3667 cmd_data);
3642 (void)c; 3668 (void)c;
3643 GLenum target = static_cast<GLenum>(c.target); 3669 GLenum target = static_cast<GLenum>(c.target);
3644 uint32_t data_size; 3670 uint32_t data_size;
3645 if (!ComputeDataSize(1, sizeof(GLbyte), 64, &data_size)) { 3671 if (!ComputeDataSize(1, sizeof(GLbyte), 64, &data_size)) {
(...skipping 496 matching lines...) Expand 10 before | Expand all | Expand 10 after
4142 state_.ignore_cached_state) { 4168 state_.ignore_cached_state) {
4143 framebuffer_state_.clear_state_dirty = true; 4169 framebuffer_state_.clear_state_dirty = true;
4144 } 4170 }
4145 return false; 4171 return false;
4146 default: 4172 default:
4147 NOTREACHED(); 4173 NOTREACHED();
4148 return false; 4174 return false;
4149 } 4175 }
4150 } 4176 }
4151 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_AUTOGEN_H_ 4177 #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/service/gles2_cmd_decoder_unittest_3_autogen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698