| Index: services/ui/demo/bitmap_uploader.cc
|
| diff --git a/services/ui/demo/bitmap_uploader.cc b/services/ui/demo/bitmap_uploader.cc
|
| index a0c7b3f775d1f230ff0fe6af6d8c2d7e478cb7a9..1f34310322673b6747955b3eda24a6a6ec138484 100644
|
| --- a/services/ui/demo/bitmap_uploader.cc
|
| +++ b/services/ui/demo/bitmap_uploader.cc
|
| @@ -40,7 +40,8 @@ BitmapUploader::BitmapUploader(Window* window)
|
|
|
| void BitmapUploader::Init(ui::GpuService* gpu_service) {
|
| gpu_service->EstablishGpuChannel(base::Bind(
|
| - &BitmapUploader::OnGpuChannelEstablished, weak_factory_.GetWeakPtr()));
|
| + &BitmapUploader::OnGpuChannelEstablished, weak_factory_.GetWeakPtr(),
|
| + gpu_service->gpu_memory_buffer_manager()));
|
| }
|
|
|
| BitmapUploader::~BitmapUploader() {
|
| @@ -173,10 +174,11 @@ void BitmapUploader::Upload() {
|
| }
|
|
|
| void BitmapUploader::OnGpuChannelEstablished(
|
| + gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager,
|
| scoped_refptr<gpu::GpuChannelHost> gpu_channel) {
|
| compositor_frame_sink_ = window_->RequestCompositorFrameSink(
|
| mojom::CompositorFrameSinkType::DEFAULT,
|
| - new ContextProvider(std::move(gpu_channel)));
|
| + new ContextProvider(std::move(gpu_channel)), gpu_memory_buffer_manager);
|
| compositor_frame_sink_->BindToClient(this);
|
| }
|
|
|
|
|