Index: ui/gl/android/surface_factory_android.h |
diff --git a/ui/gl/android/surface_factory_android.h b/ui/gl/android/surface_factory_android.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..93cf585b404aac27b4ff94aeaef7b0c50d7b7503 |
--- /dev/null |
+++ b/ui/gl/android/surface_factory_android.h |
@@ -0,0 +1,28 @@ |
+// 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_SURFACE_FACTORY_ANDROID_H_ |
+#define UI_GL_ANDROID_SURFACE_FACTORY_ANDROID_H_ |
+ |
+#include "base/memory/ref_counted.h" |
+ |
+namespace gfx { |
+ |
+class GLSurface; |
+ |
+class SurfaceFactoryAndroid { |
+ public: |
+ |
+ static SurfaceFactoryAndroid* GetInstance(); |
+ static void SetInstance(SurfaceFactoryAndroid* instance); |
+ |
+ virtual scoped_refptr<GLSurface> CreateNonOwnedViewSurface() = 0; |
+ |
+ protected: |
+ virtual ~SurfaceFactoryAndroid(); |
+}; |
+ |
+} // namespace gfx |
+ |
+#endif // UI_GL_ANDROID_SURFACE_FACTORY_ANDROID_H_ |