Index: gpu/gles2_conform_support/egl/display.cc |
diff --git a/gpu/gles2_conform_support/egl/display.cc b/gpu/gles2_conform_support/egl/display.cc |
index 9885cd69286e8525f672b2d87e05450ceb17db21..8b43dffe8b2d4f3341b151557cf6f6424b3fdec9 100644 |
--- a/gpu/gles2_conform_support/egl/display.cc |
+++ b/gpu/gles2_conform_support/egl/display.cc |
@@ -229,13 +229,15 @@ EGLContext Display::CreateContext(EGLConfig config, |
DCHECK(transfer_buffer_.get()); |
bool bind_generates_resources = true; |
- |
- context_.reset(new gpu::gles2::GLES2Implementation( |
- gles2_cmd_helper_.get(), |
- NULL, |
- transfer_buffer_.get(), |
- bind_generates_resources, |
- gpu_control_.get())); |
+ bool lose_context_when_out_of_memory = false; |
+ |
+ context_.reset( |
+ new gpu::gles2::GLES2Implementation(gles2_cmd_helper_.get(), |
+ NULL, |
+ transfer_buffer_.get(), |
+ bind_generates_resources, |
+ lose_context_when_out_of_memory, |
+ gpu_control_.get())); |
if (!context_->Initialize( |
kTransferBufferSize, |