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 7c98454425f643e066d70b6b3c857c11aa4f22ce..662f34126dbc1c3463b351f7dab29bb04b7a3e7d 100644 |
--- a/content/browser/renderer_host/render_process_host_impl.cc |
+++ b/content/browser/renderer_host/render_process_host_impl.cc |
@@ -2010,21 +2010,9 @@ static void AppendCompositorCommandLineFlags(base::CommandLine* command_line) { |
if (IsCheckerImagingEnabled()) |
command_line->AppendSwitch(cc::switches::kEnableCheckerImaging); |
- cc::BufferToTextureTargetMap image_targets; |
- for (int usage_idx = 0; usage_idx <= static_cast<int>(gfx::BufferUsage::LAST); |
- ++usage_idx) { |
- gfx::BufferUsage usage = static_cast<gfx::BufferUsage>(usage_idx); |
- for (int format_idx = 0; |
- format_idx <= static_cast<int>(gfx::BufferFormat::LAST); |
- ++format_idx) { |
- gfx::BufferFormat format = static_cast<gfx::BufferFormat>(format_idx); |
- uint32_t target = gpu::GetImageTextureTarget(format, usage); |
- image_targets[std::make_pair(usage, format)] = target; |
- } |
- } |
command_line->AppendSwitchASCII( |
switches::kContentImageTextureTarget, |
- cc::BufferToTextureTargetMapToString(image_targets)); |
+ cc::BufferToTextureTargetMapToString(GetBufferToTextureTargetMap())); |
// Appending disable-gpu-feature switches due to software rendering list. |
GpuDataManagerImpl* gpu_data_manager = GpuDataManagerImpl::GetInstance(); |