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

Unified Diff: ui/gfx/client_native_pixmap_factory.cc

Issue 2803523002: Always create ClientNativePixmapFactory in chrome --mash (Closed)
Patch Set: rebased Created 3 years, 8 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 | « ui/gfx/client_native_pixmap_factory.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/client_native_pixmap_factory.cc
diff --git a/ui/gfx/client_native_pixmap_factory.cc b/ui/gfx/client_native_pixmap_factory.cc
index 37d3306c887e117392e4168c91bf952d26d98948..f88b4fdeef3bbaa724d67d217a15dbc6f5e7051f 100644
--- a/ui/gfx/client_native_pixmap_factory.cc
+++ b/ui/gfx/client_native_pixmap_factory.cc
@@ -18,6 +18,11 @@ ClientNativePixmapFactory* ClientNativePixmapFactory::GetInstance() {
}
// static
+void ClientNativePixmapFactory::ResetInstance() {
+ g_instance = nullptr;
+}
+
+// static
void ClientNativePixmapFactory::SetInstance(
ClientNativePixmapFactory* instance) {
DCHECK(!g_instance);
« no previous file with comments | « ui/gfx/client_native_pixmap_factory.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698