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

Unified 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, 10 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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));
« 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