Index: gpu/command_buffer/service/gles2_cmd_decoder.cc |
diff --git a/gpu/command_buffer/service/gles2_cmd_decoder.cc b/gpu/command_buffer/service/gles2_cmd_decoder.cc |
index b5082992873569155cfd6402ac5f28a620d5b98a..a65d00fa4c8f9e95d77ef33de7ec998a1c9cf5dc 100644 |
--- a/gpu/command_buffer/service/gles2_cmd_decoder.cc |
+++ b/gpu/command_buffer/service/gles2_cmd_decoder.cc |
@@ -3140,6 +3140,8 @@ Capabilities GLES2DecoderImpl::GetCapabilities() { |
caps.commit_overlay_planes = supports_commit_overlay_planes_; |
caps.image = true; |
caps.surfaceless = surfaceless_; |
+ bool is_offscreen = !!offscreen_target_frame_buffer_.get(); |
+ caps.flips_vertically = !is_offscreen && surface_->FlipsVertically(); |
caps.blend_equation_advanced = |
feature_info_->feature_flags().blend_equation_advanced; |