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

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

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

Powered by Google App Engine
This is Rietveld 408576698