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

Unified Diff: android_webview/browser/gl_surface_factory.h

Issue 22277004: Add gfx::SurfaceFactoryWebview (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: static member var 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: 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_

Powered by Google App Engine
This is Rietveld 408576698