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

Unified Diff: components/memory_coordinator/common/client_registry.cc

Issue 2286583002: Make cc::SoftwareImageDecodeController, cc::ResourcePool, and cc::StagingBufferPoo… (Closed)
Patch Set: Fixed BUILD.gn's DEPS Created 4 years, 3 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
Index: components/memory_coordinator/common/client_registry.cc
diff --git a/components/memory_coordinator/common/client_registry.cc b/components/memory_coordinator/common/client_registry.cc
index 57866c880d774fbfccf2638c484d3d64e3209989..9d5bbb4bf0cefe2704f2c401ec19b89b42974b20 100644
--- a/components/memory_coordinator/common/client_registry.cc
+++ b/components/memory_coordinator/common/client_registry.cc
@@ -6,6 +6,8 @@
namespace memory_coordinator {
+ClientRegistry* ClientRegistry::instance_ = nullptr;
+
ClientRegistry::ClientRegistry() : clients_(new ClientList) {}
ClientRegistry::~ClientRegistry() {}
@@ -18,4 +20,12 @@ void ClientRegistry::UnregisterClient(MemoryCoordinatorClient* client) {
clients_->RemoveObserver(client);
}
+ClientRegistry* ClientRegistry::GetInstance() {
+ return instance_;
+}
+
+void ClientRegistry::SetInstance(ClientRegistry* instance) {
+ instance_ = instance;
+}
+
} // namespace memory_coordinator

Powered by Google App Engine
This is Rietveld 408576698