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

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

Issue 864513004: gpu: introduce glCopySubTextureCHROMIUM (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 4179 matching lines...) Expand 10 before | Expand all | Expand 10 after
4190 if (!validators_->pixel_type.IsValid(dest_type)) { 4190 if (!validators_->pixel_type.IsValid(dest_type)) {
4191 LOCAL_SET_GL_ERROR_INVALID_ENUM("glCopyTextureCHROMIUM", dest_type, 4191 LOCAL_SET_GL_ERROR_INVALID_ENUM("glCopyTextureCHROMIUM", dest_type,
4192 "dest_type"); 4192 "dest_type");
4193 return error::kNoError; 4193 return error::kNoError;
4194 } 4194 }
4195 DoCopyTextureCHROMIUM(target, source_id, dest_id, level, internalformat, 4195 DoCopyTextureCHROMIUM(target, source_id, dest_id, level, internalformat,
4196 dest_type); 4196 dest_type);
4197 return error::kNoError; 4197 return error::kNoError;
4198 } 4198 }
4199 4199
4200 error::Error GLES2DecoderImpl::HandleCopySubTextureCHROMIUM(
4201 uint32_t immediate_data_size,
4202 const void* cmd_data) {
4203 const gles2::cmds::CopySubTextureCHROMIUM& c =
4204 *static_cast<const gles2::cmds::CopySubTextureCHROMIUM*>(cmd_data);
4205 (void)c;
4206 GLenum target = static_cast<GLenum>(c.target);
4207 GLenum source_id = static_cast<GLenum>(c.source_id);
4208 GLenum dest_id = static_cast<GLenum>(c.dest_id);
4209 GLint level = static_cast<GLint>(c.level);
4210 GLint xoffset = static_cast<GLint>(c.xoffset);
4211 GLint yoffset = static_cast<GLint>(c.yoffset);
4212 DoCopySubTextureCHROMIUM(target, source_id, dest_id, level, xoffset, yoffset);
4213 return error::kNoError;
4214 }
4215
4200 error::Error GLES2DecoderImpl::HandleProduceTextureCHROMIUMImmediate( 4216 error::Error GLES2DecoderImpl::HandleProduceTextureCHROMIUMImmediate(
4201 uint32_t immediate_data_size, 4217 uint32_t immediate_data_size,
4202 const void* cmd_data) { 4218 const void* cmd_data) {
4203 const gles2::cmds::ProduceTextureCHROMIUMImmediate& c = 4219 const gles2::cmds::ProduceTextureCHROMIUMImmediate& c =
4204 *static_cast<const gles2::cmds::ProduceTextureCHROMIUMImmediate*>( 4220 *static_cast<const gles2::cmds::ProduceTextureCHROMIUMImmediate*>(
4205 cmd_data); 4221 cmd_data);
4206 (void)c; 4222 (void)c;
4207 GLenum target = static_cast<GLenum>(c.target); 4223 GLenum target = static_cast<GLenum>(c.target);
4208 uint32_t data_size; 4224 uint32_t data_size;
4209 if (!ComputeDataSize(1, sizeof(GLbyte), 64, &data_size)) { 4225 if (!ComputeDataSize(1, sizeof(GLbyte), 64, &data_size)) {
(...skipping 496 matching lines...) Expand 10 before | Expand all | Expand 10 after
4706 state_.ignore_cached_state) { 4722 state_.ignore_cached_state) {
4707 framebuffer_state_.clear_state_dirty = true; 4723 framebuffer_state_.clear_state_dirty = true;
4708 } 4724 }
4709 return false; 4725 return false;
4710 default: 4726 default:
4711 NOTREACHED(); 4727 NOTREACHED();
4712 return false; 4728 return false;
4713 } 4729 }
4714 } 4730 }
4715 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_AUTOGEN_H_ 4731 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_AUTOGEN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698