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

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: address concerns of owners Created 5 years, 10 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 4292 matching lines...) Expand 10 before | Expand all | Expand 10 after
4303 if (!validators_->pixel_type.IsValid(dest_type)) { 4303 if (!validators_->pixel_type.IsValid(dest_type)) {
4304 LOCAL_SET_GL_ERROR_INVALID_ENUM("glCopyTextureCHROMIUM", dest_type, 4304 LOCAL_SET_GL_ERROR_INVALID_ENUM("glCopyTextureCHROMIUM", dest_type,
4305 "dest_type"); 4305 "dest_type");
4306 return error::kNoError; 4306 return error::kNoError;
4307 } 4307 }
4308 DoCopyTextureCHROMIUM(target, source_id, dest_id, level, internalformat, 4308 DoCopyTextureCHROMIUM(target, source_id, dest_id, level, internalformat,
4309 dest_type); 4309 dest_type);
4310 return error::kNoError; 4310 return error::kNoError;
4311 } 4311 }
4312 4312
4313 error::Error GLES2DecoderImpl::HandleCopySubTextureCHROMIUM(
4314 uint32_t immediate_data_size,
4315 const void* cmd_data) {
4316 const gles2::cmds::CopySubTextureCHROMIUM& c =
4317 *static_cast<const gles2::cmds::CopySubTextureCHROMIUM*>(cmd_data);
4318 (void)c;
4319 GLenum target = static_cast<GLenum>(c.target);
4320 GLenum source_id = static_cast<GLenum>(c.source_id);
4321 GLenum dest_id = static_cast<GLenum>(c.dest_id);
4322 GLint level = static_cast<GLint>(c.level);
4323 GLint xoffset = static_cast<GLint>(c.xoffset);
4324 GLint yoffset = static_cast<GLint>(c.yoffset);
4325 DoCopySubTextureCHROMIUM(target, source_id, dest_id, level, xoffset, yoffset);
4326 return error::kNoError;
4327 }
4328
4313 error::Error GLES2DecoderImpl::HandleProduceTextureCHROMIUMImmediate( 4329 error::Error GLES2DecoderImpl::HandleProduceTextureCHROMIUMImmediate(
4314 uint32_t immediate_data_size, 4330 uint32_t immediate_data_size,
4315 const void* cmd_data) { 4331 const void* cmd_data) {
4316 const gles2::cmds::ProduceTextureCHROMIUMImmediate& c = 4332 const gles2::cmds::ProduceTextureCHROMIUMImmediate& c =
4317 *static_cast<const gles2::cmds::ProduceTextureCHROMIUMImmediate*>( 4333 *static_cast<const gles2::cmds::ProduceTextureCHROMIUMImmediate*>(
4318 cmd_data); 4334 cmd_data);
4319 (void)c; 4335 (void)c;
4320 GLenum target = static_cast<GLenum>(c.target); 4336 GLenum target = static_cast<GLenum>(c.target);
4321 uint32_t data_size; 4337 uint32_t data_size;
4322 if (!ComputeDataSize(1, sizeof(GLbyte), 64, &data_size)) { 4338 if (!ComputeDataSize(1, sizeof(GLbyte), 64, &data_size)) {
(...skipping 496 matching lines...) Expand 10 before | Expand all | Expand 10 after
4819 state_.ignore_cached_state) { 4835 state_.ignore_cached_state) {
4820 framebuffer_state_.clear_state_dirty = true; 4836 framebuffer_state_.clear_state_dirty = true;
4821 } 4837 }
4822 return false; 4838 return false;
4823 default: 4839 default:
4824 NOTREACHED(); 4840 NOTREACHED();
4825 return false; 4841 return false;
4826 } 4842 }
4827 } 4843 }
4828 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_AUTOGEN_H_ 4844 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_AUTOGEN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698