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

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

Issue 2781863002: Revert of Update the passthrough command decoder to use the new CHROMIUM_copy_texture. (Closed)
Patch Set: Created 3 years, 8 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 #include "ui/gl/gl_version_info.h" 8 #include "ui/gl/gl_version_info.h"
9 9
10 namespace gpu { 10 namespace gpu {
(...skipping 3231 matching lines...) Expand 10 before | Expand all | Expand 10 after
3242 3242
3243 error::Error GLES2DecoderPassthroughImpl::DoPostSubBufferCHROMIUM( 3243 error::Error GLES2DecoderPassthroughImpl::DoPostSubBufferCHROMIUM(
3244 GLint x, 3244 GLint x,
3245 GLint y, 3245 GLint y,
3246 GLint width, 3246 GLint width,
3247 GLint height) { 3247 GLint height) {
3248 return error::kNoError; 3248 return error::kNoError;
3249 } 3249 }
3250 3250
3251 error::Error GLES2DecoderPassthroughImpl::DoCopyTextureCHROMIUM( 3251 error::Error GLES2DecoderPassthroughImpl::DoCopyTextureCHROMIUM(
3252 GLuint source_id, 3252 GLenum source_id,
3253 GLint source_level, 3253 GLint source_level,
3254 GLenum dest_target, 3254 GLenum dest_target,
3255 GLuint dest_id, 3255 GLenum dest_id,
3256 GLint dest_level, 3256 GLint dest_level,
3257 GLint internalformat, 3257 GLint internalformat,
3258 GLenum dest_type, 3258 GLenum dest_type,
3259 GLboolean unpack_flip_y, 3259 GLboolean unpack_flip_y,
3260 GLboolean unpack_premultiply_alpha, 3260 GLboolean unpack_premultiply_alpha,
3261 GLboolean unpack_unmultiply_alpha) { 3261 GLboolean unpack_unmultiply_alpha) {
3262 if (!feature_info_->feature_flags().chromium_copy_texture) { 3262 if (!feature_info_->feature_flags().chromium_copy_texture) {
3263 return error::kUnknownCommand; 3263 return error::kUnknownCommand;
3264 } 3264 }
3265 3265
3266 glCopyTextureCHROMIUM(GetTextureServiceID(source_id, resources_, false), 3266 glCopyTextureCHROMIUM(GetTextureServiceID(source_id, resources_, false),
3267 source_level, dest_target,
3268 GetTextureServiceID(dest_id, resources_, false), 3267 GetTextureServiceID(dest_id, resources_, false),
3269 dest_level, internalformat, dest_type, unpack_flip_y, 3268 internalformat, dest_type, unpack_flip_y,
3270 unpack_premultiply_alpha, unpack_unmultiply_alpha); 3269 unpack_premultiply_alpha, unpack_unmultiply_alpha);
3271 return error::kNoError; 3270 return error::kNoError;
3272 } 3271 }
3273 3272
3274 error::Error GLES2DecoderPassthroughImpl::DoCopySubTextureCHROMIUM( 3273 error::Error GLES2DecoderPassthroughImpl::DoCopySubTextureCHROMIUM(
3275 GLuint source_id, 3274 GLenum source_id,
3276 GLint source_level, 3275 GLint source_level,
3277 GLenum dest_target, 3276 GLenum dest_target,
3278 GLuint dest_id, 3277 GLenum dest_id,
3279 GLint dest_level, 3278 GLint dest_level,
3280 GLint xoffset, 3279 GLint xoffset,
3281 GLint yoffset, 3280 GLint yoffset,
3282 GLint x, 3281 GLint x,
3283 GLint y, 3282 GLint y,
3284 GLsizei width, 3283 GLsizei width,
3285 GLsizei height, 3284 GLsizei height,
3286 GLboolean unpack_flip_y, 3285 GLboolean unpack_flip_y,
3287 GLboolean unpack_premultiply_alpha, 3286 GLboolean unpack_premultiply_alpha,
3288 GLboolean unpack_unmultiply_alpha) { 3287 GLboolean unpack_unmultiply_alpha) {
3289 if (!feature_info_->feature_flags().chromium_copy_texture) { 3288 if (!feature_info_->feature_flags().chromium_copy_texture) {
3290 return error::kUnknownCommand; 3289 return error::kUnknownCommand;
3291 } 3290 }
3292 3291
3293 glCopySubTextureCHROMIUM( 3292 glCopySubTextureCHROMIUM(GetTextureServiceID(source_id, resources_, false),
3294 GetTextureServiceID(source_id, resources_, false), source_level, 3293 GetTextureServiceID(dest_id, resources_, false),
3295 dest_target, GetTextureServiceID(dest_id, resources_, false), dest_level, 3294 xoffset, yoffset, x, y, width, height, unpack_flip_y,
3296 xoffset, yoffset, x, y, width, height, unpack_flip_y, 3295 unpack_premultiply_alpha, unpack_unmultiply_alpha);
3297 unpack_premultiply_alpha, unpack_unmultiply_alpha);
3298 return error::kNoError; 3296 return error::kNoError;
3299 } 3297 }
3300 3298
3301 error::Error GLES2DecoderPassthroughImpl::DoCompressedCopyTextureCHROMIUM( 3299 error::Error GLES2DecoderPassthroughImpl::DoCompressedCopyTextureCHROMIUM(
3302 GLuint source_id, 3300 GLenum source_id,
3303 GLuint dest_id) { 3301 GLenum dest_id) {
3304 if (!feature_info_->feature_flags().chromium_copy_compressed_texture) { 3302 if (!feature_info_->feature_flags().chromium_copy_compressed_texture) {
3305 return error::kUnknownCommand; 3303 return error::kUnknownCommand;
3306 } 3304 }
3307 3305
3308 glCompressedCopyTextureCHROMIUM( 3306 glCompressedCopyTextureCHROMIUM(
3309 GetTextureServiceID(source_id, resources_, false), 3307 GetTextureServiceID(source_id, resources_, false),
3310 GetTextureServiceID(dest_id, resources_, false)); 3308 GetTextureServiceID(dest_id, resources_, false));
3311 return error::kNoError; 3309 return error::kNoError;
3312 } 3310 }
3313 3311
(...skipping 653 matching lines...) Expand 10 before | Expand all | Expand 10 after
3967 } 3965 }
3968 3966
3969 error::Error GLES2DecoderPassthroughImpl::DoSetEnableDCLayersCHROMIUM( 3967 error::Error GLES2DecoderPassthroughImpl::DoSetEnableDCLayersCHROMIUM(
3970 GLboolean enable) { 3968 GLboolean enable) {
3971 NOTIMPLEMENTED(); 3969 NOTIMPLEMENTED();
3972 return error::kNoError; 3970 return error::kNoError;
3973 } 3971 }
3974 3972
3975 } // namespace gles2 3973 } // namespace gles2
3976 } // namespace gpu 3974 } // namespace gpu
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698