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

Side by Side Diff: gpu/command_buffer/service/gles2_cmd_decoder_passthrough_handlers_autogen.cc

Issue 2443023002: gpu: Add CHROMIUM_copy_image extension.
Patch Set: rebase Created 4 years, 1 month 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 4066 matching lines...) Expand 10 before | Expand all | Expand 10 after
4077 cmd_data); 4077 cmd_data);
4078 GLenum target = static_cast<GLenum>(c.target); 4078 GLenum target = static_cast<GLenum>(c.target);
4079 GLint imageId = static_cast<GLint>(c.imageId); 4079 GLint imageId = static_cast<GLint>(c.imageId);
4080 error::Error error = DoReleaseTexImage2DCHROMIUM(target, imageId); 4080 error::Error error = DoReleaseTexImage2DCHROMIUM(target, imageId);
4081 if (error != error::kNoError) { 4081 if (error != error::kNoError) {
4082 return error; 4082 return error;
4083 } 4083 }
4084 return error::kNoError; 4084 return error::kNoError;
4085 } 4085 }
4086 4086
4087 error::Error GLES2DecoderPassthroughImpl::HandleCopyImageSubDataCHROMIUM(
4088 uint32_t immediate_data_size,
4089 const volatile void* cmd_data) {
4090 const volatile gles2::cmds::CopyImageSubDataCHROMIUM& c =
4091 *static_cast<const volatile gles2::cmds::CopyImageSubDataCHROMIUM*>(
4092 cmd_data);
4093 GLint source_image_id = static_cast<GLint>(c.source_image_id);
4094 GLint dest_texture_id = static_cast<GLint>(c.dest_texture_id);
4095 GLint xoffset = static_cast<GLint>(c.xoffset);
4096 GLint yoffset = static_cast<GLint>(c.yoffset);
4097 GLint x = static_cast<GLint>(c.x);
4098 GLint y = static_cast<GLint>(c.y);
4099 GLsizei width = static_cast<GLsizei>(c.width);
4100 GLsizei height = static_cast<GLsizei>(c.height);
4101 GLint in_fence_id = static_cast<GLint>(c.in_fence_id);
4102 GLint out_fence_id = static_cast<GLint>(c.out_fence_id);
4103 error::Error error = DoCopyImageSubDataCHROMIUM(
4104 source_image_id, dest_texture_id, xoffset, yoffset, x, y, width, height,
4105 in_fence_id, out_fence_id);
4106 if (error != error::kNoError) {
4107 return error;
4108 }
4109 return error::kNoError;
4110 }
4111
4087 error::Error GLES2DecoderPassthroughImpl::HandleTraceEndCHROMIUM( 4112 error::Error GLES2DecoderPassthroughImpl::HandleTraceEndCHROMIUM(
4088 uint32_t immediate_data_size, 4113 uint32_t immediate_data_size,
4089 const volatile void* cmd_data) { 4114 const volatile void* cmd_data) {
4090 error::Error error = DoTraceEndCHROMIUM(); 4115 error::Error error = DoTraceEndCHROMIUM();
4091 if (error != error::kNoError) { 4116 if (error != error::kNoError) {
4092 return error; 4117 return error;
4093 } 4118 }
4094 return error::kNoError; 4119 return error::kNoError;
4095 } 4120 }
4096 4121
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
4346 error::Error error = DoUniformMatrix4fvStreamTextureMatrixCHROMIUM( 4371 error::Error error = DoUniformMatrix4fvStreamTextureMatrixCHROMIUM(
4347 location, transpose, transform); 4372 location, transpose, transform);
4348 if (error != error::kNoError) { 4373 if (error != error::kNoError) {
4349 return error; 4374 return error;
4350 } 4375 }
4351 return error::kNoError; 4376 return error::kNoError;
4352 } 4377 }
4353 4378
4354 } // namespace gles2 4379 } // namespace gles2
4355 } // namespace gpu 4380 } // namespace gpu
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698