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

Unified Diff: content/renderer/mus/render_widget_mus_connection.cc

Issue 2452483002: Move GpuMemoryBufferManager and SharedBitmapManager to CompositorFrameSink (Closed)
Patch Set: rebase Created 4 years, 2 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
« no previous file with comments | « content/renderer/mus/render_widget_mus_connection.h ('k') | content/renderer/render_thread_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/mus/render_widget_mus_connection.cc
diff --git a/content/renderer/mus/render_widget_mus_connection.cc b/content/renderer/mus/render_widget_mus_connection.cc
index c5633ad3b8ed38035d0150399c4b7b6fa6e88bc6..80464706d3b82ad7093297a084daaef91f33f56f 100644
--- a/content/renderer/mus/render_widget_mus_connection.cc
+++ b/content/renderer/mus/render_widget_mus_connection.cc
@@ -40,7 +40,8 @@ void RenderWidgetMusConnection::Bind(
std::unique_ptr<cc::CompositorFrameSink>
RenderWidgetMusConnection::CreateCompositorFrameSink(
- scoped_refptr<gpu::GpuChannelHost> gpu_channel_host) {
+ scoped_refptr<gpu::GpuChannelHost> gpu_channel_host,
+ gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager) {
DCHECK(thread_checker_.CalledOnValidThread());
DCHECK(!window_compositor_frame_sink_binding_);
@@ -48,7 +49,7 @@ RenderWidgetMusConnection::CreateCompositorFrameSink(
ui::WindowCompositorFrameSink::Create(
make_scoped_refptr(
new ui::ContextProvider(std::move(gpu_channel_host))),
- &window_compositor_frame_sink_binding_));
+ gpu_memory_buffer_manager, &window_compositor_frame_sink_binding_));
if (compositor_mus_connection_) {
compositor_mus_connection_->AttachCompositorFrameSinkOnMainThread(
std::move(window_compositor_frame_sink_binding_));
« no previous file with comments | « content/renderer/mus/render_widget_mus_connection.h ('k') | content/renderer/render_thread_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698