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

Unified Diff: content/renderer/android/synchronous_compositor_factory.cc

Issue 16119003: Move SynchronousCompositor into content/browser (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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: content/renderer/android/synchronous_compositor_factory.cc
diff --git a/content/renderer/android/synchronous_compositor_factory.cc b/content/renderer/android/synchronous_compositor_factory.cc
new file mode 100644
index 0000000000000000000000000000000000000000..93ce4971def3ac4cd742c677addd68b086de8d5e
--- /dev/null
+++ b/content/renderer/android/synchronous_compositor_factory.cc
@@ -0,0 +1,25 @@
+// Copyright 2013 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 "content/renderer/android/synchronous_compositor_factory.h"
+
+namespace content {
+
+namespace {
+SynchronousCompositorFactory* g_instance = NULL;
+} // namespace
+
+// static
+void SynchronousCompositorFactory::SetInstance(
+ SynchronousCompositorFactory* instance) {
+ DCHECK(g_instance == NULL || instance == NULL);
+ g_instance = instance;
+}
+
+// static
+SynchronousCompositorFactory* SynchronousCompositorFactory::GetInstance() {
+ return g_instance;
+}
+
+} // namespace content

Powered by Google App Engine
This is Rietveld 408576698