| Index: content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc
|
| diff --git a/content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc b/content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc
|
| index 3bf0eebd8cb67bc4d34107d85d7155548a7b9dac..2900408faa80a7e80c5f3b125dcc46d4089cbc44 100644
|
| --- a/content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc
|
| +++ b/content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc
|
| @@ -185,24 +185,14 @@ bool WebGraphicsContext3DCommandBufferImpl::InitializeCommandBuffer(
|
| share_group_command_buffer = share_context->command_buffer_.get();
|
| }
|
|
|
| + ::gpu::gles2::ContextCreationAttribHelper attribs_for_gles2;
|
| + ConvertAttributes(attributes_, &attribs_for_gles2);
|
| + attribs_for_gles2.lose_context_when_out_of_memory_ =
|
| + lose_context_when_out_of_memory_;
|
| + attribs_for_gles2.bind_generates_resource_ = false;
|
| + DCHECK(attribs_for_gles2.buffer_preserved_);
|
| std::vector<int32> attribs;
|
| - attribs.push_back(ALPHA_SIZE);
|
| - attribs.push_back(attributes_.alpha ? 8 : 0);
|
| - attribs.push_back(DEPTH_SIZE);
|
| - attribs.push_back(attributes_.depth ? 24 : 0);
|
| - attribs.push_back(STENCIL_SIZE);
|
| - attribs.push_back(attributes_.stencil ? 8 : 0);
|
| - attribs.push_back(SAMPLES);
|
| - attribs.push_back(attributes_.antialias ? 4 : 0);
|
| - attribs.push_back(SAMPLE_BUFFERS);
|
| - attribs.push_back(attributes_.antialias ? 1 : 0);
|
| - attribs.push_back(FAIL_IF_MAJOR_PERF_CAVEAT);
|
| - attribs.push_back(attributes_.failIfMajorPerformanceCaveat ? 1 : 0);
|
| - attribs.push_back(LOSE_CONTEXT_WHEN_OUT_OF_MEMORY);
|
| - attribs.push_back(lose_context_when_out_of_memory_ ? 1 : 0);
|
| - attribs.push_back(BIND_GENERATES_RESOURCES);
|
| - attribs.push_back(0);
|
| - attribs.push_back(NONE);
|
| + attribs_for_gles2.Serialize(&attribs);
|
|
|
| // Create a proxy to a command buffer in the GPU process.
|
| if (onscreen) {
|
|
|