Index: ui/gl/android/surface_factory_webview.h |
diff --git a/ui/gl/android/surface_factory_webview.h b/ui/gl/android/surface_factory_webview.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..b5af9e369f70fc346467a1f4f79b69f92962e563 |
--- /dev/null |
+++ b/ui/gl/android/surface_factory_webview.h |
@@ -0,0 +1,25 @@ |
+// 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_WEBVIEW_H_ |
+#define UI_GL_ANDROID_SURFACE_FACTORY_WEBVIEW_H_ |
+ |
+#include "base/memory/ref_counted.h" |
+#include "ui/gl/gl_surface.h" |
+ |
+namespace gfx { |
+ |
no sievers
2013/08/06 01:50:06
nit: fwd declare GLSurface
boliu
2013/08/06 02:14:26
That works?...wow, that works. Done.
|
+class SurfaceFactoryWebView { |
+ public: |
+ virtual ~SurfaceFactoryWebView(); |
no sievers
2013/08/06 01:50:06
nit: protected destructor
boliu
2013/08/06 02:14:26
Done.
|
+ |
+ static SurfaceFactoryWebView* GetInstance(); |
+ static void SetInstance(SurfaceFactoryWebView* instance); |
+ |
+ virtual scoped_refptr<GLSurface> CreateNonOwnedViewSurface() = 0; |
+}; |
+ |
+} // namespace gfx |
+ |
+#endif // UI_GL_ANDROID_SURFACE_FACTORY_WEBVIEW_H_ |