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

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

Issue 2717443004: Don't require CHROMIUM_copy_compressed_texture for the passthrough decoder. (Closed)
Patch Set: Created 3 years, 9 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
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_decoder_passthrough.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "ui/gl/gl_version_info.h" 8 #include "ui/gl/gl_version_info.h"
9 9
10 namespace gpu { 10 namespace gpu {
(...skipping 2774 matching lines...) Expand 10 before | Expand all | Expand 10 after
2785 GLenum source_id, 2785 GLenum source_id,
2786 GLint source_level, 2786 GLint source_level,
2787 GLenum dest_target, 2787 GLenum dest_target,
2788 GLenum dest_id, 2788 GLenum dest_id,
2789 GLint dest_level, 2789 GLint dest_level,
2790 GLint internalformat, 2790 GLint internalformat,
2791 GLenum dest_type, 2791 GLenum dest_type,
2792 GLboolean unpack_flip_y, 2792 GLboolean unpack_flip_y,
2793 GLboolean unpack_premultiply_alpha, 2793 GLboolean unpack_premultiply_alpha,
2794 GLboolean unpack_unmultiply_alpha) { 2794 GLboolean unpack_unmultiply_alpha) {
2795 if (!feature_info_->feature_flags().chromium_copy_texture) {
2796 return error::kUnknownCommand;
2797 }
2798
2795 glCopyTextureCHROMIUM(GetTextureServiceID(source_id, resources_, false), 2799 glCopyTextureCHROMIUM(GetTextureServiceID(source_id, resources_, false),
2796 GetTextureServiceID(dest_id, resources_, false), 2800 GetTextureServiceID(dest_id, resources_, false),
2797 internalformat, dest_type, unpack_flip_y, 2801 internalformat, dest_type, unpack_flip_y,
2798 unpack_premultiply_alpha, unpack_unmultiply_alpha); 2802 unpack_premultiply_alpha, unpack_unmultiply_alpha);
2799 return error::kNoError; 2803 return error::kNoError;
2800 } 2804 }
2801 2805
2802 error::Error GLES2DecoderPassthroughImpl::DoCopySubTextureCHROMIUM( 2806 error::Error GLES2DecoderPassthroughImpl::DoCopySubTextureCHROMIUM(
2803 GLenum source_id, 2807 GLenum source_id,
2804 GLint source_level, 2808 GLint source_level,
2805 GLenum dest_target, 2809 GLenum dest_target,
2806 GLenum dest_id, 2810 GLenum dest_id,
2807 GLint dest_level, 2811 GLint dest_level,
2808 GLint xoffset, 2812 GLint xoffset,
2809 GLint yoffset, 2813 GLint yoffset,
2810 GLint x, 2814 GLint x,
2811 GLint y, 2815 GLint y,
2812 GLsizei width, 2816 GLsizei width,
2813 GLsizei height, 2817 GLsizei height,
2814 GLboolean unpack_flip_y, 2818 GLboolean unpack_flip_y,
2815 GLboolean unpack_premultiply_alpha, 2819 GLboolean unpack_premultiply_alpha,
2816 GLboolean unpack_unmultiply_alpha) { 2820 GLboolean unpack_unmultiply_alpha) {
2821 if (!feature_info_->feature_flags().chromium_copy_texture) {
2822 return error::kUnknownCommand;
2823 }
2824
2817 glCopySubTextureCHROMIUM(GetTextureServiceID(source_id, resources_, false), 2825 glCopySubTextureCHROMIUM(GetTextureServiceID(source_id, resources_, false),
2818 GetTextureServiceID(dest_id, resources_, false), 2826 GetTextureServiceID(dest_id, resources_, false),
2819 xoffset, yoffset, x, y, width, height, unpack_flip_y, 2827 xoffset, yoffset, x, y, width, height, unpack_flip_y,
2820 unpack_premultiply_alpha, unpack_unmultiply_alpha); 2828 unpack_premultiply_alpha, unpack_unmultiply_alpha);
2821 return error::kNoError; 2829 return error::kNoError;
2822 } 2830 }
2823 2831
2824 error::Error GLES2DecoderPassthroughImpl::DoCompressedCopyTextureCHROMIUM( 2832 error::Error GLES2DecoderPassthroughImpl::DoCompressedCopyTextureCHROMIUM(
2825 GLenum source_id, 2833 GLenum source_id,
2826 GLenum dest_id) { 2834 GLenum dest_id) {
2835 if (!feature_info_->feature_flags().chromium_copy_compressed_texture) {
2836 return error::kUnknownCommand;
2837 }
2838
2827 glCompressedCopyTextureCHROMIUM( 2839 glCompressedCopyTextureCHROMIUM(
2828 GetTextureServiceID(source_id, resources_, false), 2840 GetTextureServiceID(source_id, resources_, false),
2829 GetTextureServiceID(dest_id, resources_, false)); 2841 GetTextureServiceID(dest_id, resources_, false));
2830 return error::kNoError; 2842 return error::kNoError;
2831 } 2843 }
2832 2844
2833 error::Error GLES2DecoderPassthroughImpl::DoDrawArraysInstancedANGLE( 2845 error::Error GLES2DecoderPassthroughImpl::DoDrawArraysInstancedANGLE(
2834 GLenum mode, 2846 GLenum mode,
2835 GLint first, 2847 GLint first,
2836 GLsizei count, 2848 GLsizei count,
(...skipping 614 matching lines...) Expand 10 before | Expand all | Expand 10 after
3451 GLuint texture, 3463 GLuint texture,
3452 GLboolean promotion_hint, 3464 GLboolean promotion_hint,
3453 GLint display_x, 3465 GLint display_x,
3454 GLint display_y) { 3466 GLint display_y) {
3455 NOTIMPLEMENTED(); 3467 NOTIMPLEMENTED();
3456 return error::kNoError; 3468 return error::kNoError;
3457 } 3469 }
3458 3470
3459 } // namespace gles2 3471 } // namespace gles2
3460 } // namespace gpu 3472 } // namespace gpu
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_decoder_passthrough.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698