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

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

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.h
diff --git a/ui/gl/android/gl_factory_android.h b/ui/gl/android/gl_factory_android.h
new file mode 100644
index 0000000000000000000000000000000000000000..855278e8334bdfa66864a2ab1b1e0e590f087844
--- /dev/null
+++ b/ui/gl/android/gl_factory_android.h
@@ -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.
+
+#ifndef UI_GL_ANDROID_GL_FACTORY_ANDROID_H_
+#define UI_GL_ANDROID_GL_FACTORY_ANDROID_H_
+
+#include "base/memory/ref_counted.h"
+
+namespace gfx {
+
+class GLSurface;
+
+class GLFactoryAndroid {
+ public:
+ static GLFactoryAndroid* GetCurrent();
+ static void SetCurrent(GLFactoryAndroid* instance);
+
+ virtual scoped_refptr<GLSurface> CreateNonOwnedViewSurface() = 0;
+
+ protected:
+ virtual ~GLFactoryAndroid();
+};
+
+} // namespace gfx
+
+#endif // UI_GL_ANDROID_GL_FACTORY_ANDROID_H_

Powered by Google App Engine
This is Rietveld 408576698