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

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

Issue 2639973002: Add target argument to Copy{Sub}TextureCHROMIUM entry point (Closed)
Patch Set: use dest_target instead of target 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 3660 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 GLint source_level = static_cast<GLint>(c.source_level);
3681 GLenum dest_target = static_cast<GLenum>(c.dest_target);
3681 GLenum dest_id = static_cast<GLenum>(c.dest_id); 3682 GLenum dest_id = static_cast<GLenum>(c.dest_id);
3682 GLint dest_level = static_cast<GLint>(c.dest_level); 3683 GLint dest_level = static_cast<GLint>(c.dest_level);
3683 GLint internalformat = static_cast<GLint>(c.internalformat); 3684 GLint internalformat = static_cast<GLint>(c.internalformat);
3684 GLenum dest_type = static_cast<GLenum>(c.dest_type); 3685 GLenum dest_type = static_cast<GLenum>(c.dest_type);
3685 GLboolean unpack_flip_y = static_cast<GLboolean>(c.unpack_flip_y); 3686 GLboolean unpack_flip_y = static_cast<GLboolean>(c.unpack_flip_y);
3686 GLboolean unpack_premultiply_alpha = 3687 GLboolean unpack_premultiply_alpha =
3687 static_cast<GLboolean>(c.unpack_premultiply_alpha); 3688 static_cast<GLboolean>(c.unpack_premultiply_alpha);
3688 GLboolean unpack_unmultiply_alpha = 3689 GLboolean unpack_unmultiply_alpha =
3689 static_cast<GLboolean>(c.unpack_unmultiply_alpha); 3690 static_cast<GLboolean>(c.unpack_unmultiply_alpha);
3690 error::Error error = DoCopyTextureCHROMIUM( 3691 error::Error error = DoCopyTextureCHROMIUM(
3691 source_id, source_level, dest_id, dest_level, internalformat, dest_type, 3692 source_id, source_level, dest_target, dest_id, dest_level, internalformat,
3692 unpack_flip_y, unpack_premultiply_alpha, unpack_unmultiply_alpha); 3693 dest_type, unpack_flip_y, unpack_premultiply_alpha,
3694 unpack_unmultiply_alpha);
3693 if (error != error::kNoError) { 3695 if (error != error::kNoError) {
3694 return error; 3696 return error;
3695 } 3697 }
3696 return error::kNoError; 3698 return error::kNoError;
3697 } 3699 }
3698 3700
3699 error::Error GLES2DecoderPassthroughImpl::HandleCopySubTextureCHROMIUM( 3701 error::Error GLES2DecoderPassthroughImpl::HandleCopySubTextureCHROMIUM(
3700 uint32_t immediate_data_size, 3702 uint32_t immediate_data_size,
3701 const volatile void* cmd_data) { 3703 const volatile void* cmd_data) {
3702 const volatile gles2::cmds::CopySubTextureCHROMIUM& c = 3704 const volatile gles2::cmds::CopySubTextureCHROMIUM& c =
3703 *static_cast<const volatile gles2::cmds::CopySubTextureCHROMIUM*>( 3705 *static_cast<const volatile gles2::cmds::CopySubTextureCHROMIUM*>(
3704 cmd_data); 3706 cmd_data);
3705 GLenum source_id = static_cast<GLenum>(c.source_id); 3707 GLenum source_id = static_cast<GLenum>(c.source_id);
3706 GLint source_level = static_cast<GLint>(c.source_level); 3708 GLint source_level = static_cast<GLint>(c.source_level);
3709 GLenum dest_target = static_cast<GLenum>(c.dest_target);
3707 GLenum dest_id = static_cast<GLenum>(c.dest_id); 3710 GLenum dest_id = static_cast<GLenum>(c.dest_id);
3708 GLint dest_level = static_cast<GLint>(c.dest_level); 3711 GLint dest_level = static_cast<GLint>(c.dest_level);
3709 GLint xoffset = static_cast<GLint>(c.xoffset); 3712 GLint xoffset = static_cast<GLint>(c.xoffset);
3710 GLint yoffset = static_cast<GLint>(c.yoffset); 3713 GLint yoffset = static_cast<GLint>(c.yoffset);
3711 GLint x = static_cast<GLint>(c.x); 3714 GLint x = static_cast<GLint>(c.x);
3712 GLint y = static_cast<GLint>(c.y); 3715 GLint y = static_cast<GLint>(c.y);
3713 GLsizei width = static_cast<GLsizei>(c.width); 3716 GLsizei width = static_cast<GLsizei>(c.width);
3714 GLsizei height = static_cast<GLsizei>(c.height); 3717 GLsizei height = static_cast<GLsizei>(c.height);
3715 GLboolean unpack_flip_y = static_cast<GLboolean>(c.unpack_flip_y); 3718 GLboolean unpack_flip_y = static_cast<GLboolean>(c.unpack_flip_y);
3716 GLboolean unpack_premultiply_alpha = 3719 GLboolean unpack_premultiply_alpha =
3717 static_cast<GLboolean>(c.unpack_premultiply_alpha); 3720 static_cast<GLboolean>(c.unpack_premultiply_alpha);
3718 GLboolean unpack_unmultiply_alpha = 3721 GLboolean unpack_unmultiply_alpha =
3719 static_cast<GLboolean>(c.unpack_unmultiply_alpha); 3722 static_cast<GLboolean>(c.unpack_unmultiply_alpha);
3720 error::Error error = DoCopySubTextureCHROMIUM( 3723 error::Error error = DoCopySubTextureCHROMIUM(
3721 source_id, source_level, dest_id, dest_level, xoffset, yoffset, x, y, 3724 source_id, source_level, dest_target, dest_id, dest_level, xoffset,
3722 width, height, unpack_flip_y, unpack_premultiply_alpha, 3725 yoffset, x, y, width, height, unpack_flip_y, unpack_premultiply_alpha,
3723 unpack_unmultiply_alpha); 3726 unpack_unmultiply_alpha);
3724 if (error != error::kNoError) { 3727 if (error != error::kNoError) {
3725 return error; 3728 return error;
3726 } 3729 }
3727 return error::kNoError; 3730 return error::kNoError;
3728 } 3731 }
3729 3732
3730 error::Error GLES2DecoderPassthroughImpl::HandleCompressedCopyTextureCHROMIUM( 3733 error::Error GLES2DecoderPassthroughImpl::HandleCompressedCopyTextureCHROMIUM(
3731 uint32_t immediate_data_size, 3734 uint32_t immediate_data_size,
3732 const volatile void* cmd_data) { 3735 const volatile void* cmd_data) {
(...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after
4148 error::Error error = DoOverlayPromotionHintCHROMIUM(texture, promotion_hint, 4151 error::Error error = DoOverlayPromotionHintCHROMIUM(texture, promotion_hint,
4149 display_x, display_y); 4152 display_x, display_y);
4150 if (error != error::kNoError) { 4153 if (error != error::kNoError) {
4151 return error; 4154 return error;
4152 } 4155 }
4153 return error::kNoError; 4156 return error::kNoError;
4154 } 4157 }
4155 4158
4156 } // namespace gles2 4159 } // namespace gles2
4157 } // namespace gpu 4160 } // namespace gpu
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698