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

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

Issue 2610853005: Modify Copy{Sub}TextureCHROMIUM entry point to add level argument (Closed)
Patch Set: fix chromeos Created 3 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 3659 matching lines...) Expand 10 before | Expand all | Expand 10 after
3670 } 3670 }
3671 return error::kNoError; 3671 return error::kNoError;
3672 } 3672 }
3673 3673
3674 error::Error GLES2DecoderPassthroughImpl::HandleCopyTextureCHROMIUM( 3674 error::Error GLES2DecoderPassthroughImpl::HandleCopyTextureCHROMIUM(
3675 uint32_t immediate_data_size, 3675 uint32_t immediate_data_size,
3676 const volatile void* cmd_data) { 3676 const volatile void* cmd_data) {
3677 const volatile gles2::cmds::CopyTextureCHROMIUM& c = 3677 const volatile gles2::cmds::CopyTextureCHROMIUM& c =
3678 *static_cast<const volatile gles2::cmds::CopyTextureCHROMIUM*>(cmd_data); 3678 *static_cast<const volatile gles2::cmds::CopyTextureCHROMIUM*>(cmd_data);
3679 GLenum source_id = static_cast<GLenum>(c.source_id); 3679 GLenum source_id = static_cast<GLenum>(c.source_id);
3680 GLint source_level = static_cast<GLint>(c.source_level);
3680 GLenum dest_id = static_cast<GLenum>(c.dest_id); 3681 GLenum dest_id = static_cast<GLenum>(c.dest_id);
3682 GLint dest_level = static_cast<GLint>(c.dest_level);
3681 GLint internalformat = static_cast<GLint>(c.internalformat); 3683 GLint internalformat = static_cast<GLint>(c.internalformat);
3682 GLenum dest_type = static_cast<GLenum>(c.dest_type); 3684 GLenum dest_type = static_cast<GLenum>(c.dest_type);
3683 GLboolean unpack_flip_y = static_cast<GLboolean>(c.unpack_flip_y); 3685 GLboolean unpack_flip_y = static_cast<GLboolean>(c.unpack_flip_y);
3684 GLboolean unpack_premultiply_alpha = 3686 GLboolean unpack_premultiply_alpha =
3685 static_cast<GLboolean>(c.unpack_premultiply_alpha); 3687 static_cast<GLboolean>(c.unpack_premultiply_alpha);
3686 GLboolean unpack_unmultiply_alpha = 3688 GLboolean unpack_unmultiply_alpha =
3687 static_cast<GLboolean>(c.unpack_unmultiply_alpha); 3689 static_cast<GLboolean>(c.unpack_unmultiply_alpha);
3688 error::Error error = DoCopyTextureCHROMIUM( 3690 error::Error error = DoCopyTextureCHROMIUM(
3689 source_id, dest_id, internalformat, dest_type, unpack_flip_y, 3691 source_id, source_level, dest_id, dest_level, internalformat, dest_type,
3690 unpack_premultiply_alpha, unpack_unmultiply_alpha); 3692 unpack_flip_y, unpack_premultiply_alpha, unpack_unmultiply_alpha);
3691 if (error != error::kNoError) { 3693 if (error != error::kNoError) {
3692 return error; 3694 return error;
3693 } 3695 }
3694 return error::kNoError; 3696 return error::kNoError;
3695 } 3697 }
3696 3698
3697 error::Error GLES2DecoderPassthroughImpl::HandleCopySubTextureCHROMIUM( 3699 error::Error GLES2DecoderPassthroughImpl::HandleCopySubTextureCHROMIUM(
3698 uint32_t immediate_data_size, 3700 uint32_t immediate_data_size,
3699 const volatile void* cmd_data) { 3701 const volatile void* cmd_data) {
3700 const volatile gles2::cmds::CopySubTextureCHROMIUM& c = 3702 const volatile gles2::cmds::CopySubTextureCHROMIUM& c =
3701 *static_cast<const volatile gles2::cmds::CopySubTextureCHROMIUM*>( 3703 *static_cast<const volatile gles2::cmds::CopySubTextureCHROMIUM*>(
3702 cmd_data); 3704 cmd_data);
3703 GLenum source_id = static_cast<GLenum>(c.source_id); 3705 GLenum source_id = static_cast<GLenum>(c.source_id);
3706 GLint source_level = static_cast<GLint>(c.source_level);
3704 GLenum dest_id = static_cast<GLenum>(c.dest_id); 3707 GLenum dest_id = static_cast<GLenum>(c.dest_id);
3708 GLint dest_level = static_cast<GLint>(c.dest_level);
3705 GLint xoffset = static_cast<GLint>(c.xoffset); 3709 GLint xoffset = static_cast<GLint>(c.xoffset);
3706 GLint yoffset = static_cast<GLint>(c.yoffset); 3710 GLint yoffset = static_cast<GLint>(c.yoffset);
3707 GLint x = static_cast<GLint>(c.x); 3711 GLint x = static_cast<GLint>(c.x);
3708 GLint y = static_cast<GLint>(c.y); 3712 GLint y = static_cast<GLint>(c.y);
3709 GLsizei width = static_cast<GLsizei>(c.width); 3713 GLsizei width = static_cast<GLsizei>(c.width);
3710 GLsizei height = static_cast<GLsizei>(c.height); 3714 GLsizei height = static_cast<GLsizei>(c.height);
3711 GLboolean unpack_flip_y = static_cast<GLboolean>(c.unpack_flip_y); 3715 GLboolean unpack_flip_y = static_cast<GLboolean>(c.unpack_flip_y);
3712 GLboolean unpack_premultiply_alpha = 3716 GLboolean unpack_premultiply_alpha =
3713 static_cast<GLboolean>(c.unpack_premultiply_alpha); 3717 static_cast<GLboolean>(c.unpack_premultiply_alpha);
3714 GLboolean unpack_unmultiply_alpha = 3718 GLboolean unpack_unmultiply_alpha =
3715 static_cast<GLboolean>(c.unpack_unmultiply_alpha); 3719 static_cast<GLboolean>(c.unpack_unmultiply_alpha);
3716 error::Error error = DoCopySubTextureCHROMIUM( 3720 error::Error error = DoCopySubTextureCHROMIUM(
3717 source_id, dest_id, xoffset, yoffset, x, y, width, height, unpack_flip_y, 3721 source_id, source_level, dest_id, dest_level, xoffset, yoffset, x, y,
3718 unpack_premultiply_alpha, unpack_unmultiply_alpha); 3722 width, height, unpack_flip_y, unpack_premultiply_alpha,
3723 unpack_unmultiply_alpha);
3719 if (error != error::kNoError) { 3724 if (error != error::kNoError) {
3720 return error; 3725 return error;
3721 } 3726 }
3722 return error::kNoError; 3727 return error::kNoError;
3723 } 3728 }
3724 3729
3725 error::Error GLES2DecoderPassthroughImpl::HandleCompressedCopyTextureCHROMIUM( 3730 error::Error GLES2DecoderPassthroughImpl::HandleCompressedCopyTextureCHROMIUM(
3726 uint32_t immediate_data_size, 3731 uint32_t immediate_data_size,
3727 const volatile void* cmd_data) { 3732 const volatile void* cmd_data) {
3728 const volatile gles2::cmds::CompressedCopyTextureCHROMIUM& c = 3733 const volatile gles2::cmds::CompressedCopyTextureCHROMIUM& c =
(...skipping 414 matching lines...) Expand 10 before | Expand all | Expand 10 after
4143 error::Error error = DoOverlayPromotionHintCHROMIUM(texture, promotion_hint, 4148 error::Error error = DoOverlayPromotionHintCHROMIUM(texture, promotion_hint,
4144 display_x, display_y); 4149 display_x, display_y);
4145 if (error != error::kNoError) { 4150 if (error != error::kNoError) {
4146 return error; 4151 return error;
4147 } 4152 }
4148 return error::kNoError; 4153 return error::kNoError;
4149 } 4154 }
4150 4155
4151 } // namespace gles2 4156 } // namespace gles2
4152 } // namespace gpu 4157 } // namespace gpu
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698