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

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

Issue 2194003002: services/ui: Have an explicit lifetime/ownership of ui::GpuService. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: tot merge 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/demo/mus_demo.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/demo/mus_demo.h
diff --git a/services/ui/demo/mus_demo.h b/services/ui/demo/mus_demo.h
index 8957cc4f54fa4eeaa69a26ed8bfe70836ec81fe5..78dbde7fb345bad159413ca3cd2b6813186afbd1 100644
--- a/services/ui/demo/mus_demo.h
+++ b/services/ui/demo/mus_demo.h
@@ -21,6 +21,8 @@
namespace ui {
class BitmapUploader;
+class GpuService;
+
namespace demo {
// A simple MUS Demo mojo app. This app connects to the mojo:ui, creates a new
@@ -69,6 +71,7 @@ class MusDemo : public shell::Service,
Window* window_ = nullptr;
WindowTreeClient* window_tree_client_ = nullptr;
+ std::unique_ptr<GpuService> gpu_service_;
// Used to send frames to mus.
std::unique_ptr<ui::BitmapUploader> uploader_;
« no previous file with comments | « services/ui/common/gpu_service.cc ('k') | services/ui/demo/mus_demo.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698