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

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

Issue 2895273002: Unified the use of BufferToTextureTargetMap for all the Processes (Closed)
Patch Set: texture_targets as reference 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 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");

Powered by Google App Engine
This is Rietveld 408576698