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

Unified Diff: ui/gl/android/gl_factory_android.cc

Issue 22277004: Add gfx::SurfaceFactoryWebview (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rename to GLFactoryAndroid Created 7 years, 4 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: ui/gl/android/gl_factory_android.cc
diff --git a/ui/gl/android/gl_factory_android.cc b/ui/gl/android/gl_factory_android.cc
new file mode 100644
index 0000000000000000000000000000000000000000..2135c0b6ab9f75d6389843eb9690a96e86e5c2f3
--- /dev/null
+++ b/ui/gl/android/gl_factory_android.cc
@@ -0,0 +1,26 @@
+// 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/gl_factory_android.h"
+
+namespace gfx {
+
+namespace {
+GLFactoryAndroid* g_factory_instance;
+}
+
+GLFactoryAndroid::~GLFactoryAndroid() {}
+
+// static
+GLFactoryAndroid* GLFactoryAndroid::GetCurrent() {
+ return g_factory_instance;
+}
+
+// static
+void GLFactoryAndroid::SetCurrent(
+ GLFactoryAndroid* instance) {
+ g_factory_instance = instance;
+}
+
+} // namespace gfx

Powered by Google App Engine
This is Rietveld 408576698