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

Unified Diff: gpu/command_buffer/service/gles2_cmd_decoder.cc

Issue 1560523002: Use EGL_ANGLE_surface_orientation in Chrome to avoid a blit. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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/common/capabilities.cc ('k') | gpu/ipc/gpu_command_buffer_traits_multi.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « gpu/command_buffer/common/capabilities.cc ('k') | gpu/ipc/gpu_command_buffer_traits_multi.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698