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

Side by Side Diff: gpu/command_buffer/service/gles2_cmd_decoder_passthrough_doers.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 (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 2672 matching lines...) Expand 10 before | Expand all | Expand 10 after
2683 error::Error GLES2DecoderPassthroughImpl::DoPostSubBufferCHROMIUM( 2683 error::Error GLES2DecoderPassthroughImpl::DoPostSubBufferCHROMIUM(
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 GLenum dest_id, 2694 GLenum dest_id,
2695 GLint dest_level,
2694 GLint internalformat, 2696 GLint internalformat,
2695 GLenum dest_type, 2697 GLenum dest_type,
2696 GLboolean unpack_flip_y, 2698 GLboolean unpack_flip_y,
2697 GLboolean unpack_premultiply_alpha, 2699 GLboolean unpack_premultiply_alpha,
2698 GLboolean unpack_unmultiply_alpha) { 2700 GLboolean unpack_unmultiply_alpha) {
2699 glCopyTextureCHROMIUM(GetTextureServiceID(source_id, resources_, false), 2701 glCopyTextureCHROMIUM(GetTextureServiceID(source_id, resources_, false),
2700 GetTextureServiceID(dest_id, resources_, false), 2702 GetTextureServiceID(dest_id, resources_, false),
2701 internalformat, dest_type, unpack_flip_y, 2703 internalformat, dest_type, unpack_flip_y,
2702 unpack_premultiply_alpha, unpack_unmultiply_alpha); 2704 unpack_premultiply_alpha, unpack_unmultiply_alpha);
2703 return error::kNoError; 2705 return error::kNoError;
2704 } 2706 }
2705 2707
2706 error::Error GLES2DecoderPassthroughImpl::DoCopySubTextureCHROMIUM( 2708 error::Error GLES2DecoderPassthroughImpl::DoCopySubTextureCHROMIUM(
2707 GLenum source_id, 2709 GLenum source_id,
2710 GLint source_level,
2708 GLenum dest_id, 2711 GLenum dest_id,
2712 GLint dest_level,
2709 GLint xoffset, 2713 GLint xoffset,
2710 GLint yoffset, 2714 GLint yoffset,
2711 GLint x, 2715 GLint x,
2712 GLint y, 2716 GLint y,
2713 GLsizei width, 2717 GLsizei width,
2714 GLsizei height, 2718 GLsizei height,
2715 GLboolean unpack_flip_y, 2719 GLboolean unpack_flip_y,
2716 GLboolean unpack_premultiply_alpha, 2720 GLboolean unpack_premultiply_alpha,
2717 GLboolean unpack_unmultiply_alpha) { 2721 GLboolean unpack_unmultiply_alpha) {
2718 glCopySubTextureCHROMIUM(GetTextureServiceID(source_id, resources_, false), 2722 glCopySubTextureCHROMIUM(GetTextureServiceID(source_id, resources_, false),
(...skipping 594 matching lines...) Expand 10 before | Expand all | Expand 10 after
3313 GLuint texture, 3317 GLuint texture,
3314 GLboolean promotion_hint, 3318 GLboolean promotion_hint,
3315 GLint display_x, 3319 GLint display_x,
3316 GLint display_y) { 3320 GLint display_y) {
3317 NOTIMPLEMENTED(); 3321 NOTIMPLEMENTED();
3318 return error::kNoError; 3322 return error::kNoError;
3319 } 3323 }
3320 3324
3321 } // namespace gles2 3325 } // namespace gles2
3322 } // namespace gpu 3326 } // namespace gpu
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698