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

Unified Diff: gpu/ipc/common/android/android_overlay_provider_lookup.cc

Issue 2178973004: DialogSurfaceManager implementation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: cleanup Created 3 years, 10 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: gpu/ipc/common/android/android_overlay_provider_lookup.cc
diff --git a/gpu/ipc/common/android/android_overlay_provider_lookup.cc b/gpu/ipc/common/android/android_overlay_provider_lookup.cc
new file mode 100644
index 0000000000000000000000000000000000000000..331f788ec9bd5a69fc64ba5d4ced6ccfdf923caa
--- /dev/null
+++ b/gpu/ipc/common/android/android_overlay_provider_lookup.cc
@@ -0,0 +1,28 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "gpu/ipc/common/android/android_overlay_provider_lookup.h"
+
+#include "base/logging.h"
+
+namespace gpu {
+
+namespace {
+AndroidOverlayProviderLookup* g_instance = NULL;
+} // anonymous namespace
+
+// static
+AndroidOverlayProviderLookup* AndroidOverlayProviderLookup::GetInstance() {
+ DCHECK(g_instance);
+ return g_instance;
+}
+
+// static
+void AndroidOverlayProviderLookup::InitInstance(
+ AndroidOverlayProviderLookup* lookup) {
+ DCHECK(!g_instance || !lookup);
+ g_instance = lookup;
+}
+
+} // namespace gpu

Powered by Google App Engine
This is Rietveld 408576698