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

Unified Diff: gpu/command_buffer/tests/gl_manager.cc

Issue 2145643004: Fix preserve backbuffer with native GMBs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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
Index: gpu/command_buffer/tests/gl_manager.cc
diff --git a/gpu/command_buffer/tests/gl_manager.cc b/gpu/command_buffer/tests/gl_manager.cc
index aad304cd2f69a3e467db46ba7cea33d9193a5d0b..6d6658cb73d90e44790fcb8e779b88beb5f161d2 100644
--- a/gpu/command_buffer/tests/gl_manager.cc
+++ b/gpu/command_buffer/tests/gl_manager.cc
@@ -188,7 +188,8 @@ GLManager::Options::Options()
force_shader_name_hashing(false),
multisampled(false),
backbuffer_alpha(true),
- image_factory(nullptr) {}
+ image_factory(nullptr),
+ preserve_backbuffer(false) {}
GLManager::GLManager()
: sync_point_manager_(nullptr),
@@ -293,6 +294,7 @@ void GLManager::InitializeWithCommandLine(
attribs.should_use_native_gmb_for_backbuffer =
options.image_factory != nullptr;
attribs.offscreen_framebuffer_size = options.size;
+ attribs.buffer_preserved = options.preserve_backbuffer;
if (!context_group) {
GpuDriverBugWorkarounds gpu_driver_bug_workaround(&command_line);
« no previous file with comments | « gpu/command_buffer/tests/gl_manager.h ('k') | gpu/command_buffer/tests/gl_native_gmb_backbuffer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698