summaryrefslogtreecommitdiff
path: root/chromium/content/browser/compositor/viz_process_transport_factory.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/content/browser/compositor/viz_process_transport_factory.h')
-rw-r--r--chromium/content/browser/compositor/viz_process_transport_factory.h19
1 files changed, 6 insertions, 13 deletions
diff --git a/chromium/content/browser/compositor/viz_process_transport_factory.h b/chromium/content/browser/compositor/viz_process_transport_factory.h
index 69643cd4a0f..44c00cbc446 100644
--- a/chromium/content/browser/compositor/viz_process_transport_factory.h
+++ b/chromium/content/browser/compositor/viz_process_transport_factory.h
@@ -38,7 +38,7 @@ class ContextProviderCommandBuffer;
}
namespace viz {
-class ForwardingCompositingModeReporterImpl;
+class CompositingModeReporterImpl;
class RasterContextProvider;
}
@@ -59,7 +59,7 @@ class VizProcessTransportFactory : public ui::ContextFactory,
VizProcessTransportFactory(
gpu::GpuChannelEstablishFactory* gpu_channel_establish_factory,
scoped_refptr<base::SingleThreadTaskRunner> resize_task_runner,
- viz::ForwardingCompositingModeReporterImpl* forwarding_mode_reporter);
+ viz::CompositingModeReporterImpl* compositing_mode_reporter);
~VizProcessTransportFactory() override;
// Connects HostFrameSinkManager to FrameSinkManagerImpl in viz process.
@@ -157,12 +157,10 @@ class VizProcessTransportFactory : public ui::ContextFactory,
gpu::GpuChannelEstablishFactory* const gpu_channel_establish_factory_;
scoped_refptr<base::SingleThreadTaskRunner> const resize_task_runner_;
- // Acts as a proxy from the mojo connection to the authoritive
- // |compositing_mode_reporter_|. This will forward the state on to clients of
- // the browser process (eg the renderers). Since the browser process is not
- // restartable, it prevents these clients from having to reconnect to their
- // CompositingModeReporter.
- viz::ForwardingCompositingModeReporterImpl* const forwarding_mode_reporter_;
+
+ // Controls the compositing mode based on what mode the display compositors
+ // are using.
+ viz::CompositingModeReporterImpl* const compositing_mode_reporter_;
base::flat_map<ui::Compositor*, CompositorData> compositor_data_map_;
bool is_gpu_compositing_disabled_ = false;
@@ -180,11 +178,6 @@ class VizProcessTransportFactory : public ui::ContextFactory,
std::unique_ptr<cc::SingleThreadTaskGraphRunner> task_graph_runner_;
const viz::RendererSettings renderer_settings_;
- // The class is a CompositingModeWatcher, which is bound to mojo through
- // this member.
- mojo::Binding<viz::mojom::CompositingModeWatcher>
- compositing_mode_watcher_binding_;
-
base::WeakPtrFactory<VizProcessTransportFactory> weak_ptr_factory_;
DISALLOW_COPY_AND_ASSIGN(VizProcessTransportFactory);