Index: ui/gl/android/surface_factory_android.cc |
diff --git a/ui/gl/android/surface_factory_android.cc b/ui/gl/android/surface_factory_android.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..97cb2acc8eee67801236b1d729624f3673090250 |
--- /dev/null |
+++ b/ui/gl/android/surface_factory_android.cc |
@@ -0,0 +1,27 @@ |
+// Copyright (c) 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 "ui/gl/android/surface_factory_android.h" |
+ |
+namespace gfx { |
+ |
+namespace { |
+ |
+SurfaceFactoryAndroid* g_factory_instance; |
+} // namespace |
+ |
+SurfaceFactoryAndroid::~SurfaceFactoryAndroid() {} |
+ |
+// static |
+SurfaceFactoryAndroid* SurfaceFactoryAndroid::GetInstance() { |
+ return g_factory_instance; |
+} |
+ |
+// static |
+void SurfaceFactoryAndroid::SetInstance( |
+ SurfaceFactoryAndroid* instance) { |
+ g_factory_instance = instance; |
+} |
+ |
+} // namespace gfx |