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

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

Issue 2829543003: gpu: Empty swaps for surfaceless output surfaces. (Closed)
Patch Set: new workaround 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gpu/command_buffer/common/capabilities.h ('k') | gpu/config/gpu_driver_bug_list.json » ('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 b34e6909a82681ff189bf3e9dd063074748a2a8b..fda49fdf2c839b4b4cc7d3454600563e877b576a 100644
--- a/gpu/command_buffer/service/gles2_cmd_decoder.cc
+++ b/gpu/command_buffer/service/gles2_cmd_decoder.cc
@@ -3816,6 +3816,10 @@ Capabilities GLES2DecoderImpl::GetCapabilities() {
!workarounds().disable_software_to_accelerated_canvas_upgrade;
caps.emulate_rgb_buffer_with_rgba =
workarounds().disable_gl_rgb_format;
+ if (workarounds().disable_non_empty_post_sub_buffers_for_onscreen_surfaces &&
+ !surface_->IsOffscreen()) {
+ caps.disable_non_empty_post_sub_buffers = true;
+ }
return caps;
}
« no previous file with comments | « gpu/command_buffer/common/capabilities.h ('k') | gpu/config/gpu_driver_bug_list.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698