Chromium Code Reviews| 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 e683a1d5c25baca05e0e7108628f8f031ff46f3c..586f144069e8ac0ed440ae347549166a1cc1bbf2 100644 |
| --- a/content/browser/renderer_host/render_process_host_impl.cc |
| +++ b/content/browser/renderer_host/render_process_host_impl.cc |
| @@ -1037,9 +1037,21 @@ static void AppendCompositorCommandLineFlags(base::CommandLine* command_line) { |
| // The GPU service will always use the preferred type. |
| gfx::GpuMemoryBufferType type = supported_types[0]; |
| - // Surface texture backed GPU memory buffers require TEXTURE_EXTERNAL_OES. |
| - if (type == gfx::SURFACE_TEXTURE_BUFFER) |
| - command_line->AppendSwitch(switches::kUseImageExternal); |
| + switch (type) { |
| + case gfx::SURFACE_TEXTURE_BUFFER: |
| + // Surface texture backed GPU memory buffers require |
| + // TEXTURE_EXTERNAL_OES. |
| + command_line->AppendSwitchASCII(switches::kUseImageTextureTarget, |
| + "external"); |
|
piman
2014/12/03 21:16:50
nit: can you make "external" and "rectangle" a glo
dshwang
2014/12/04 09:21:14
That's good idea. Done.
in content_switches.cc
//
|
| + break; |
| + case gfx::IO_SURFACE_BUFFER: |
| + // IOSurface backed images require GL_TEXTURE_RECTANGLE_ARB. |
| + command_line->AppendSwitchASCII(switches::kUseImageTextureTarget, |
| + "rectangle"); |
| + break; |
| + default: |
| + break; |
| + } |
| } |
| // Appending disable-gpu-feature switches due to software rendering list. |