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

Unified Diff: services/ui/demo/mus_demo.cc

Issue 2233003003: services/ui: Inject GpuService instance where needed, instead of singleton. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 4 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/common/gpu_service.cc ('k') | services/ui/public/cpp/bitmap_uploader.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/demo/mus_demo.cc
diff --git a/services/ui/demo/mus_demo.cc b/services/ui/demo/mus_demo.cc
index 30994adf7dfa9a5d31a4e4b1ceab06b6b8dc25d3..9055d8cfe80b9973f68741245ec5c154aec85a40 100644
--- a/services/ui/demo/mus_demo.cc
+++ b/services/ui/demo/mus_demo.cc
@@ -116,7 +116,7 @@ void MusDemo::OnWmNewDisplay(Window* window, const display::Display& display) {
window_ = window;
// Initialize bitmap uploader for sending frames to MUS.
- uploader_.reset(new ui::BitmapUploader(window_));
+ uploader_.reset(new ui::BitmapUploader(window_, gpu_service_.get()));
uploader_->Init();
// Draw initial frame and start the timer to regularly draw frames.
« no previous file with comments | « services/ui/common/gpu_service.cc ('k') | services/ui/public/cpp/bitmap_uploader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698