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 fa2183bab1c09dd850da18ca0e94e119a202b52d..9915f4e5178b02d693dcdc23c735d7bd254b6132 100644 |
--- a/content/browser/renderer_host/render_process_host_impl.cc |
+++ b/content/browser/renderer_host/render_process_host_impl.cc |
@@ -170,6 +170,7 @@ |
#include "gpu/command_buffer/client/gpu_switches.h" |
#include "gpu/command_buffer/common/gles2_cmd_utils.h" |
#include "gpu/command_buffer/service/gpu_switches.h" |
+#include "gpu/ipc/host/gpu_memory_buffer_support.h" |
#include "ipc/ipc.mojom.h" |
#include "ipc/ipc_channel.h" |
#include "ipc/ipc_channel_mojo.h" |
@@ -1559,10 +1560,8 @@ static void AppendCompositorCommandLineFlags(base::CommandLine* command_line) { |
format_idx <= static_cast<int>(gfx::BufferFormat::LAST); |
++format_idx) { |
gfx::BufferFormat format = static_cast<gfx::BufferFormat>(format_idx); |
- uint32_t target = |
- BrowserGpuMemoryBufferManager::GetImageTextureTarget(format, usage); |
- image_targets.insert(cc::BufferToTextureTargetMap::value_type( |
- cc::BufferToTextureTargetKey(usage, format), target)); |
+ uint32_t target = gpu::GetImageTextureTarget(format, usage); |
+ image_targets[std::make_pair(usage, format)] = target; |
} |
} |
command_line->AppendSwitchASCII( |