| Index: content/gpu/gpu_main.cc
|
| diff --git a/content/gpu/gpu_main.cc b/content/gpu/gpu_main.cc
|
| index 1a543ca8509fd44a7d3695a50e9be731291bf6cc..f520aebfa7a22ab2609124771fbac7f7eb8071b8 100644
|
| --- a/content/gpu/gpu_main.cc
|
| +++ b/content/gpu/gpu_main.cc
|
| @@ -365,9 +365,12 @@
|
|
|
| logging::SetLogMessageHandler(NULL);
|
|
|
| + std::vector<gfx::GpuMemoryBufferType> supported_types;
|
| + GpuMemoryBufferFactory::GetSupportedTypes(&supported_types);
|
| + DCHECK(!supported_types.empty());
|
| + // Note: We always use the preferred type.
|
| scoped_ptr<GpuMemoryBufferFactory> gpu_memory_buffer_factory =
|
| - GpuMemoryBufferFactory::Create(
|
| - GpuChildThread::GetGpuMemoryBufferFactoryType());
|
| + GpuMemoryBufferFactory::Create(supported_types[0]);
|
|
|
| GpuProcess gpu_process;
|
|
|
|
|