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 ebd821c345895c360342ffbfcbbca6466f8ee683..c09901f5e0b3c3562b645ce7d258c1601ad58c41 100644 |
--- a/gpu/command_buffer/tests/gl_manager.cc |
+++ b/gpu/command_buffer/tests/gl_manager.cc |
@@ -139,6 +139,10 @@ scoped_ptr<gfx::GpuMemoryBuffer> GLManager::CreateGpuMemoryBuffer( |
} |
void GLManager::Initialize(const GLManager::Options& options) { |
+ InitializeWithCommandLine(options, nullptr); |
+} |
+void GLManager::InitializeWithCommandLine(const GLManager::Options& options, |
+ base::CommandLine* command_line) { |
const int32 kCommandBufferSize = 1024 * 1024; |
const size_t kStartTransferBufferSize = 4 * 1024 * 1024; |
const size_t kMinTransferBufferSize = 1 * 256 * 1024; |
@@ -186,14 +190,19 @@ void GLManager::Initialize(const GLManager::Options& options) { |
attrib_helper.blue_size = 8; |
attrib_helper.alpha_size = 8; |
attrib_helper.depth_size = 16; |
+ attrib_helper.stencil_size = 8; |
attrib_helper.Serialize(&attribs); |
+ DCHECK(!command_line || !context_group); |
if (!context_group) { |
+ scoped_refptr<gles2::FeatureInfo> feature_info; |
+ if (command_line) |
+ feature_info = new gles2::FeatureInfo(*command_line); |
context_group = |
new gles2::ContextGroup(mailbox_manager_.get(), |
NULL, |
new gpu::gles2::ShaderTranslatorCache, |
- NULL, |
+ feature_info, |
options.bind_generates_resource); |
} |