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

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

Issue 1565953002: Remove glCompressedCopySubTextureCHROMIUM. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 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 4460 matching lines...) Expand 10 before | Expand all | Expand 10 after
4471 const gles2::cmds::CompressedCopyTextureCHROMIUM& c = 4471 const gles2::cmds::CompressedCopyTextureCHROMIUM& c =
4472 *static_cast<const gles2::cmds::CompressedCopyTextureCHROMIUM*>(cmd_data); 4472 *static_cast<const gles2::cmds::CompressedCopyTextureCHROMIUM*>(cmd_data);
4473 (void)c; 4473 (void)c;
4474 GLenum target = static_cast<GLenum>(c.target); 4474 GLenum target = static_cast<GLenum>(c.target);
4475 GLenum source_id = static_cast<GLenum>(c.source_id); 4475 GLenum source_id = static_cast<GLenum>(c.source_id);
4476 GLenum dest_id = static_cast<GLenum>(c.dest_id); 4476 GLenum dest_id = static_cast<GLenum>(c.dest_id);
4477 DoCompressedCopyTextureCHROMIUM(target, source_id, dest_id); 4477 DoCompressedCopyTextureCHROMIUM(target, source_id, dest_id);
4478 return error::kNoError; 4478 return error::kNoError;
4479 } 4479 }
4480 4480
4481 error::Error GLES2DecoderImpl::HandleCompressedCopySubTextureCHROMIUM(
4482 uint32_t immediate_data_size,
4483 const void* cmd_data) {
4484 const gles2::cmds::CompressedCopySubTextureCHROMIUM& c =
4485 *static_cast<const gles2::cmds::CompressedCopySubTextureCHROMIUM*>(
4486 cmd_data);
4487 (void)c;
4488 GLenum target = static_cast<GLenum>(c.target);
4489 GLenum source_id = static_cast<GLenum>(c.source_id);
4490 GLenum dest_id = static_cast<GLenum>(c.dest_id);
4491 GLint xoffset = static_cast<GLint>(c.xoffset);
4492 GLint yoffset = static_cast<GLint>(c.yoffset);
4493 GLint x = static_cast<GLint>(c.x);
4494 GLint y = static_cast<GLint>(c.y);
4495 GLsizei width = static_cast<GLsizei>(c.width);
4496 GLsizei height = static_cast<GLsizei>(c.height);
4497 if (width < 0) {
4498 LOCAL_SET_GL_ERROR(GL_INVALID_VALUE, "glCompressedCopySubTextureCHROMIUM",
4499 "width < 0");
4500 return error::kNoError;
4501 }
4502 if (height < 0) {
4503 LOCAL_SET_GL_ERROR(GL_INVALID_VALUE, "glCompressedCopySubTextureCHROMIUM",
4504 "height < 0");
4505 return error::kNoError;
4506 }
4507 DoCompressedCopySubTextureCHROMIUM(target, source_id, dest_id, xoffset,
4508 yoffset, x, y, width, height);
4509 return error::kNoError;
4510 }
4511
4512 error::Error GLES2DecoderImpl::HandleProduceTextureCHROMIUMImmediate( 4481 error::Error GLES2DecoderImpl::HandleProduceTextureCHROMIUMImmediate(
4513 uint32_t immediate_data_size, 4482 uint32_t immediate_data_size,
4514 const void* cmd_data) { 4483 const void* cmd_data) {
4515 const gles2::cmds::ProduceTextureCHROMIUMImmediate& c = 4484 const gles2::cmds::ProduceTextureCHROMIUMImmediate& c =
4516 *static_cast<const gles2::cmds::ProduceTextureCHROMIUMImmediate*>( 4485 *static_cast<const gles2::cmds::ProduceTextureCHROMIUMImmediate*>(
4517 cmd_data); 4486 cmd_data);
4518 (void)c; 4487 (void)c;
4519 GLenum target = static_cast<GLenum>(c.target); 4488 GLenum target = static_cast<GLenum>(c.target);
4520 uint32_t data_size; 4489 uint32_t data_size;
4521 if (!ComputeDataSize(1, sizeof(GLbyte), 64, &data_size)) { 4490 if (!ComputeDataSize(1, sizeof(GLbyte), 64, &data_size)) {
(...skipping 626 matching lines...) Expand 10 before | Expand all | Expand 10 after
5148 state_.enable_flags.cached_sample_alpha_to_one_ext = enabled; 5117 state_.enable_flags.cached_sample_alpha_to_one_ext = enabled;
5149 return true; 5118 return true;
5150 } 5119 }
5151 return false; 5120 return false;
5152 default: 5121 default:
5153 NOTREACHED(); 5122 NOTREACHED();
5154 return false; 5123 return false;
5155 } 5124 }
5156 } 5125 }
5157 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_AUTOGEN_H_ 5126 #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