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 e8d6452d69cfc68c8f32a6923d4493c94c286651..dc30f454f31d6c9667aba47aa9a1f1929351e469 100644 |
--- a/gpu/command_buffer/tests/gl_manager.cc |
+++ b/gpu/command_buffer/tests/gl_manager.cc |
@@ -39,9 +39,9 @@ GLManager::Options::Options() |
share_mailbox_manager(NULL), |
virtual_manager(NULL), |
bind_generates_resource(false), |
+ lose_context_when_out_of_memory(false), |
context_lost_allowed(false), |
- image_manager(NULL) { |
-} |
+ image_manager(NULL) {} |
GLManager::GLManager() |
: context_lost_allowed_(false) { |
@@ -189,12 +189,13 @@ void GLManager::Initialize(const GLManager::Options& options) { |
transfer_buffer_.reset(new TransferBuffer(gles2_helper_.get())); |
// Create the object exposing the OpenGL API. |
- gles2_implementation_.reset(new gles2::GLES2Implementation( |
- gles2_helper_.get(), |
- client_share_group, |
- transfer_buffer_.get(), |
- options.bind_generates_resource, |
- gpu_control_.get())); |
+ gles2_implementation_.reset( |
+ new gles2::GLES2Implementation(gles2_helper_.get(), |
+ client_share_group, |
+ transfer_buffer_.get(), |
+ options.bind_generates_resource, |
+ options.lose_context_when_out_of_memory, |
+ gpu_control_.get())); |
ASSERT_TRUE(gles2_implementation_->Initialize( |
kStartTransferBufferSize, |