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

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

Issue 2776753002: Update the passthrough command decoder to use the new CHROMIUM_copy_texture. (Closed)
Patch Set: Re-roll ANGLE 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 GLenum source_id, 3252 GLuint source_id,
3253 GLint source_level, 3253 GLint source_level,
3254 GLenum dest_target, 3254 GLenum dest_target,
3255 GLenum dest_id, 3255 GLuint 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,
3267 GetTextureServiceID(dest_id, resources_, false), 3268 GetTextureServiceID(dest_id, resources_, false),
3268 internalformat, dest_type, unpack_flip_y, 3269 dest_level, internalformat, dest_type, unpack_flip_y,
3269 unpack_premultiply_alpha, unpack_unmultiply_alpha); 3270 unpack_premultiply_alpha, unpack_unmultiply_alpha);
3270 return error::kNoError; 3271 return error::kNoError;
3271 } 3272 }
3272 3273
3273 error::Error GLES2DecoderPassthroughImpl::DoCopySubTextureCHROMIUM( 3274 error::Error GLES2DecoderPassthroughImpl::DoCopySubTextureCHROMIUM(
3274 GLenum source_id, 3275 GLuint source_id,
3275 GLint source_level, 3276 GLint source_level,
3276 GLenum dest_target, 3277 GLenum dest_target,
3277 GLenum dest_id, 3278 GLuint dest_id,
3278 GLint dest_level, 3279 GLint dest_level,
3279 GLint xoffset, 3280 GLint xoffset,
3280 GLint yoffset, 3281 GLint yoffset,
3281 GLint x, 3282 GLint x,
3282 GLint y, 3283 GLint y,
3283 GLsizei width, 3284 GLsizei width,
3284 GLsizei height, 3285 GLsizei height,
3285 GLboolean unpack_flip_y, 3286 GLboolean unpack_flip_y,
3286 GLboolean unpack_premultiply_alpha, 3287 GLboolean unpack_premultiply_alpha,
3287 GLboolean unpack_unmultiply_alpha) { 3288 GLboolean unpack_unmultiply_alpha) {
3288 if (!feature_info_->feature_flags().chromium_copy_texture) { 3289 if (!feature_info_->feature_flags().chromium_copy_texture) {
3289 return error::kUnknownCommand; 3290 return error::kUnknownCommand;
3290 } 3291 }
3291 3292
3292 glCopySubTextureCHROMIUM(GetTextureServiceID(source_id, resources_, false), 3293 glCopySubTextureCHROMIUM(
3293 GetTextureServiceID(dest_id, resources_, false), 3294 GetTextureServiceID(source_id, resources_, false), source_level,
3294 xoffset, yoffset, x, y, width, height, unpack_flip_y, 3295 dest_target, GetTextureServiceID(dest_id, resources_, false), dest_level,
3295 unpack_premultiply_alpha, unpack_unmultiply_alpha); 3296 xoffset, yoffset, x, y, width, height, unpack_flip_y,
3297 unpack_premultiply_alpha, unpack_unmultiply_alpha);
3296 return error::kNoError; 3298 return error::kNoError;
3297 } 3299 }
3298 3300
3299 error::Error GLES2DecoderPassthroughImpl::DoCompressedCopyTextureCHROMIUM( 3301 error::Error GLES2DecoderPassthroughImpl::DoCompressedCopyTextureCHROMIUM(
3300 GLenum source_id, 3302 GLuint source_id,
3301 GLenum dest_id) { 3303 GLuint dest_id) {
3302 if (!feature_info_->feature_flags().chromium_copy_compressed_texture) { 3304 if (!feature_info_->feature_flags().chromium_copy_compressed_texture) {
3303 return error::kUnknownCommand; 3305 return error::kUnknownCommand;
3304 } 3306 }
3305 3307
3306 glCompressedCopyTextureCHROMIUM( 3308 glCompressedCopyTextureCHROMIUM(
3307 GetTextureServiceID(source_id, resources_, false), 3309 GetTextureServiceID(source_id, resources_, false),
3308 GetTextureServiceID(dest_id, resources_, false)); 3310 GetTextureServiceID(dest_id, resources_, false));
3309 return error::kNoError; 3311 return error::kNoError;
3310 } 3312 }
3311 3313
(...skipping 653 matching lines...) Expand 10 before | Expand all | Expand 10 after
3965 } 3967 }
3966 3968
3967 error::Error GLES2DecoderPassthroughImpl::DoSetEnableDCLayersCHROMIUM( 3969 error::Error GLES2DecoderPassthroughImpl::DoSetEnableDCLayersCHROMIUM(
3968 GLboolean enable) { 3970 GLboolean enable) {
3969 NOTIMPLEMENTED(); 3971 NOTIMPLEMENTED();
3970 return error::kNoError; 3972 return error::kNoError;
3971 } 3973 }
3972 3974
3973 } // namespace gles2 3975 } // namespace gles2
3974 } // namespace gpu 3976 } // namespace gpu
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698