Index: android_webview/browser/gl_surface_factory.h |
diff --git a/android_webview/browser/gl_surface_factory.h b/android_webview/browser/gl_surface_factory.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..97aa121428b2e5d9684e1be8ac041e41f6a83b3f |
--- /dev/null |
+++ b/android_webview/browser/gl_surface_factory.h |
@@ -0,0 +1,31 @@ |
+// 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 ANDROID_WEBVIEW_BROWSER_GL_SURFACE_FACTORY_H_ |
+#define ANDROID_WEBVIEW_BROWSER_GL_SURFACE_FACTORY_H_ |
+ |
+#include "ui/gl/android/surface_factory_android.h" |
+ |
+namespace android_webview { |
+ |
+class GLSurfaceFactory : public gfx::SurfaceFactoryAndroid { |
+ public: |
+ static void Install(); |
+ static void SetCurrentFBO(unsigned int fbo); |
+ static unsigned int GetCurrentFBO(); |
+ |
+ GLSurfaceFactory(); |
+ virtual ~GLSurfaceFactory(); |
+ |
+ virtual scoped_refptr<gfx::GLSurface> CreateNonOwnedViewSurface() OVERRIDE; |
+ |
+ private: |
+ static unsigned int current_fbo_; |
+ |
+ DISALLOW_COPY_AND_ASSIGN(GLSurfaceFactory); |
+}; |
+ |
+} // namespace android_webview |
+ |
+#endif // ANDROID_WEBVIEW_BROWSER_GL_SURFACE_FACTORY_H_ |