Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(338)

Unified Diff: content/browser/compositor/gpu_process_transport_factory.cc

Issue 2895273002: Unified the use of BufferToTextureTargetMap for all the Processes (Closed)
Patch Set: Unified the use of BufferToTextureTargetMap for all the Processes Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 bef5b5428e1e7d090a2020b933972c962bededdb..ac1c3899f1561f263beab5f3bcf1c3edba541a55 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() {
danakj 2017/06/28 17:00:19 Remove this function.
sujith 2017/06/30 07:49:03 Done.
+ 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())),
danakj 2017/06/28 17:00:19 you can call the content:: function directly here
sujith 2017/06/30 07:49:03 Done.
task_graph_runner_(new cc::SingleThreadTaskGraphRunner),
callback_factory_(this) {
cc::SetClientNameForMetrics("Browser");

Powered by Google App Engine
This is Rietveld 408576698