| Index: gpu/command_buffer/service/gles2_cmd_decoder_passthrough_doers.cc
|
| diff --git a/gpu/command_buffer/service/gles2_cmd_decoder_passthrough_doers.cc b/gpu/command_buffer/service/gles2_cmd_decoder_passthrough_doers.cc
|
| index ab0eed3b67dc834f8c518624350ed97717283865..fd1e55961b70814fe78b93a9f7396d4ea64b979e 100644
|
| --- a/gpu/command_buffer/service/gles2_cmd_decoder_passthrough_doers.cc
|
| +++ b/gpu/command_buffer/service/gles2_cmd_decoder_passthrough_doers.cc
|
| @@ -2792,6 +2792,10 @@ error::Error GLES2DecoderPassthroughImpl::DoCopyTextureCHROMIUM(
|
| GLboolean unpack_flip_y,
|
| GLboolean unpack_premultiply_alpha,
|
| GLboolean unpack_unmultiply_alpha) {
|
| + if (!feature_info_->feature_flags().chromium_copy_texture) {
|
| + return error::kUnknownCommand;
|
| + }
|
| +
|
| glCopyTextureCHROMIUM(GetTextureServiceID(source_id, resources_, false),
|
| GetTextureServiceID(dest_id, resources_, false),
|
| internalformat, dest_type, unpack_flip_y,
|
| @@ -2814,6 +2818,10 @@ error::Error GLES2DecoderPassthroughImpl::DoCopySubTextureCHROMIUM(
|
| GLboolean unpack_flip_y,
|
| GLboolean unpack_premultiply_alpha,
|
| GLboolean unpack_unmultiply_alpha) {
|
| + if (!feature_info_->feature_flags().chromium_copy_texture) {
|
| + return error::kUnknownCommand;
|
| + }
|
| +
|
| glCopySubTextureCHROMIUM(GetTextureServiceID(source_id, resources_, false),
|
| GetTextureServiceID(dest_id, resources_, false),
|
| xoffset, yoffset, x, y, width, height, unpack_flip_y,
|
| @@ -2824,6 +2832,10 @@ error::Error GLES2DecoderPassthroughImpl::DoCopySubTextureCHROMIUM(
|
| error::Error GLES2DecoderPassthroughImpl::DoCompressedCopyTextureCHROMIUM(
|
| GLenum source_id,
|
| GLenum dest_id) {
|
| + if (!feature_info_->feature_flags().chromium_copy_compressed_texture) {
|
| + return error::kUnknownCommand;
|
| + }
|
| +
|
| glCompressedCopyTextureCHROMIUM(
|
| GetTextureServiceID(source_id, resources_, false),
|
| GetTextureServiceID(dest_id, resources_, false));
|
|
|