Index: content/browser/compositor/gpu_process_transport_factory.cc |
diff --git a/content/browser/compositor/gpu_process_transport_factory.cc b/content/browser/compositor/gpu_process_transport_factory.cc |
index 73b55bd927c036d6a7f6e4786ac5dc4a3dbdb60e..cfec4b2805f05b4499fed9259e2bc4148d59969a 100644 |
--- a/content/browser/compositor/gpu_process_transport_factory.cc |
+++ b/content/browser/compositor/gpu_process_transport_factory.cc |
@@ -42,6 +42,7 @@ |
#include "content/browser/compositor/reflector_impl.h" |
#include "content/browser/compositor/software_browser_compositor_output_surface.h" |
#include "content/browser/gpu/browser_gpu_memory_buffer_manager.h" |
+#include "content/browser/gpu/compositor_util.h" |
#include "content/browser/gpu/gpu_data_manager_impl.h" |
#include "content/browser/renderer_host/render_widget_host_impl.h" |
#include "content/common/gpu_stream_constants.h" |
@@ -199,10 +200,17 @@ struct GpuProcessTransportFactory::PerCompositorData { |
bool output_is_secure = false; |
}; |
+cc::BufferToTextureTargetMap |
+GpuProcessTransportFactory::GetBufferToTextureTargetMap() { |
+ cc::BufferToTextureTargetMap image_targets; |
+ content::GetBufferToTextureTargetMap(&image_targets); |
+ return image_targets; |
+} |
+ |
GpuProcessTransportFactory::GpuProcessTransportFactory() |
: frame_sink_id_allocator_(kDefaultClientId), |
renderer_settings_( |
- ui::CreateRendererSettings(&gpu::GetImageTextureTarget)), |
+ ui::CreateRendererSettings(GetBufferToTextureTargetMap())), |
task_graph_runner_(new cc::SingleThreadTaskGraphRunner), |
callback_factory_(this) { |
cc::SetClientNameForMetrics("Browser"); |