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

Side by Side Diff: gpu/command_buffer/service/gles2_cmd_decoder_passthrough_doers.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 (c) 2016 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2016 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 #include "gpu/command_buffer/service/gles2_cmd_decoder_passthrough.h" 5 #include "gpu/command_buffer/service/gles2_cmd_decoder_passthrough.h"
6 6
7 #include "base/strings/string_number_conversions.h" 7 #include "base/strings/string_number_conversions.h"
8 8
9 namespace gpu { 9 namespace gpu {
10 namespace gles2 { 10 namespace gles2 {
(...skipping 2673 matching lines...) Expand 10 before | Expand all | Expand 10 after
2684 GLint x, 2684 GLint x,
2685 GLint y, 2685 GLint y,
2686 GLint width, 2686 GLint width,
2687 GLint height) { 2687 GLint height) {
2688 return error::kNoError; 2688 return error::kNoError;
2689 } 2689 }
2690 2690
2691 error::Error GLES2DecoderPassthroughImpl::DoCopyTextureCHROMIUM( 2691 error::Error GLES2DecoderPassthroughImpl::DoCopyTextureCHROMIUM(
2692 GLenum source_id, 2692 GLenum source_id,
2693 GLint source_level, 2693 GLint source_level,
2694 GLenum dest_target,
2694 GLenum dest_id, 2695 GLenum dest_id,
2695 GLint dest_level, 2696 GLint dest_level,
2696 GLint internalformat, 2697 GLint internalformat,
2697 GLenum dest_type, 2698 GLenum dest_type,
2698 GLboolean unpack_flip_y, 2699 GLboolean unpack_flip_y,
2699 GLboolean unpack_premultiply_alpha, 2700 GLboolean unpack_premultiply_alpha,
2700 GLboolean unpack_unmultiply_alpha) { 2701 GLboolean unpack_unmultiply_alpha) {
2701 glCopyTextureCHROMIUM(GetTextureServiceID(source_id, resources_, false), 2702 glCopyTextureCHROMIUM(GetTextureServiceID(source_id, resources_, false),
2702 GetTextureServiceID(dest_id, resources_, false), 2703 GetTextureServiceID(dest_id, resources_, false),
2703 internalformat, dest_type, unpack_flip_y, 2704 internalformat, dest_type, unpack_flip_y,
2704 unpack_premultiply_alpha, unpack_unmultiply_alpha); 2705 unpack_premultiply_alpha, unpack_unmultiply_alpha);
2705 return error::kNoError; 2706 return error::kNoError;
2706 } 2707 }
2707 2708
2708 error::Error GLES2DecoderPassthroughImpl::DoCopySubTextureCHROMIUM( 2709 error::Error GLES2DecoderPassthroughImpl::DoCopySubTextureCHROMIUM(
2709 GLenum source_id, 2710 GLenum source_id,
2710 GLint source_level, 2711 GLint source_level,
2712 GLenum dest_target,
2711 GLenum dest_id, 2713 GLenum dest_id,
2712 GLint dest_level, 2714 GLint dest_level,
2713 GLint xoffset, 2715 GLint xoffset,
2714 GLint yoffset, 2716 GLint yoffset,
2715 GLint x, 2717 GLint x,
2716 GLint y, 2718 GLint y,
2717 GLsizei width, 2719 GLsizei width,
2718 GLsizei height, 2720 GLsizei height,
2719 GLboolean unpack_flip_y, 2721 GLboolean unpack_flip_y,
2720 GLboolean unpack_premultiply_alpha, 2722 GLboolean unpack_premultiply_alpha,
(...skipping 596 matching lines...) Expand 10 before | Expand all | Expand 10 after
3317 GLuint texture, 3319 GLuint texture,
3318 GLboolean promotion_hint, 3320 GLboolean promotion_hint,
3319 GLint display_x, 3321 GLint display_x,
3320 GLint display_y) { 3322 GLint display_y) {
3321 NOTIMPLEMENTED(); 3323 NOTIMPLEMENTED();
3322 return error::kNoError; 3324 return error::kNoError;
3323 } 3325 }
3324 3326
3325 } // namespace gles2 3327 } // namespace gles2
3326 } // namespace gpu 3328 } // namespace gpu
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698