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

Unified Diff: services/ui/demo/bitmap_uploader.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 | « services/ui/demo/bitmap_uploader.h ('k') | services/ui/public/cpp/window.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
}
« no previous file with comments | « services/ui/demo/bitmap_uploader.h ('k') | services/ui/public/cpp/window.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698