| Index: content/browser/renderer_host/render_process_host_impl.cc
|
| diff --git a/content/browser/renderer_host/render_process_host_impl.cc b/content/browser/renderer_host/render_process_host_impl.cc
|
| index ccf3d722432f255d9e27be197e0d7b846ccc1022..2764d92a50ac49463a37c51284276c91a0c8d05a 100644
|
| --- a/content/browser/renderer_host/render_process_host_impl.cc
|
| +++ b/content/browser/renderer_host/render_process_host_impl.cc
|
| @@ -105,6 +105,7 @@
|
| #include "content/common/child_process_host_impl.h"
|
| #include "content/common/child_process_messages.h"
|
| #include "content/common/content_switches_internal.h"
|
| +#include "content/common/gpu/client/gpu_memory_buffer_impl.h"
|
| #include "content/common/gpu/gpu_messages.h"
|
| #include "content/common/mojo/mojo_messages.h"
|
| #include "content/common/resource_messages.h"
|
| @@ -1021,6 +1022,10 @@ static void AppendCompositorCommandLineFlags(base::CommandLine* command_line) {
|
| if (IsForceGpuRasterizationEnabled())
|
| command_line->AppendSwitch(switches::kForceGpuRasterization);
|
|
|
| + // Surface texture backed GPU memory buffers require TEXTURE_EXTERNAL_OES.
|
| + if (GpuMemoryBufferImpl::GetPreferredType() == gfx::SURFACE_TEXTURE_BUFFER)
|
| + command_line->AppendSwitch(switches::kUseImageExternal);
|
| +
|
| // Appending disable-gpu-feature switches due to software rendering list.
|
| GpuDataManagerImpl* gpu_data_manager = GpuDataManagerImpl::GetInstance();
|
| DCHECK(gpu_data_manager);
|
|
|