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

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

Issue 2015693002: gpu: Fix a bug in the new ReturnFrontBuffer() path for pepper. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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/tests/gl_manager.h ('k') | gpu/command_buffer/tests/gl_texture_mailbox_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 64b8ce45684ebbee0892b72c2e46e5053bb910a4..cc3a818d6642f2eb4e120456bf8fb319c7a9a1fd 100644
--- a/gpu/command_buffer/tests/gl_manager.cc
+++ b/gpu/command_buffer/tests/gl_manager.cc
@@ -185,7 +185,8 @@ GLManager::Options::Options()
lose_context_when_out_of_memory(false),
context_lost_allowed(false),
context_type(gles2::CONTEXT_TYPE_OPENGLES2),
- force_shader_name_hashing(false) {}
+ force_shader_name_hashing(false),
+ multisampled(false) {}
GLManager::GLManager()
: sync_point_manager_(nullptr),
@@ -286,6 +287,8 @@ void GLManager::InitializeWithCommandLine(
attribs.depth_size = 16;
attribs.stencil_size = 8;
attribs.context_type = options.context_type;
+ attribs.samples = options.multisampled ? 4 : 0;
+ attribs.sample_buffers = options.multisampled ? 1 : 0;
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_texture_mailbox_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698