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

Unified Diff: ui/base/ozone/surface_factory_delegate_ozone.h

Issue 13886018: Add a factory and defines for native Linux surfaces. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: vsync provider, better transport_dib, etc. Created 7 years, 7 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/base/ozone/surface_factory_delegate_ozone.h
diff --git a/ui/base/ozone/surface_factory_delegate_ozone.h b/ui/base/ozone/surface_factory_delegate_ozone.h
new file mode 100644
index 0000000000000000000000000000000000000000..5661fb8943cf586c13addefbbad29ac6f1eedd57
--- /dev/null
+++ b/ui/base/ozone/surface_factory_delegate_ozone.h
@@ -0,0 +1,30 @@
+// 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_BASE_LINUX_NATIVE_SURFACE_LINUX_FACTORY_DELEGATE_
+#define UI_BASE_LINUX_NATIVE_SURFACE_LINUX_FACTORY_DELEGATE_
piman 2013/05/18 01:47:19 nit: guard is wrong.
rjkroege 2013/05/21 17:36:28 Done.
+
+#include "ui/gfx/native_widget_types.h"
+
+namespace gfx {
+class VSyncProvider;
+} // namespace gfx
+
+namespace ui {
+
+class SurfaceFactoryDelegate {
+ public:
+ virtual ~SurfaceFactoryDelegate();
+ virtual void InitializeHardware() = 0;
+ virtual void ShutdownHardware() = 0;
+ virtual gfx::AcceleratedWidget GetAcceleratedWidget(
+ const gfx::GLSurfaceHandle& handle) = 0;
+ virtual bool AcceleratedWidgetCanBeResized(gfx::AcceleratedWidget w) = 0;
+ virtual bool LoadEGLGLES2Bindings() = 0;
+ virtual gfx::VSyncProvider* GetVSyncProvider(gfx::AcceleratedWidget w) = 0;
+};
+
+} // namespace ui
+
+#endif // UI_BASE_LINUX_NATIVE_SURFACE_LINUX_FACTORY_DELEGATE_
« no previous file with comments | « no previous file | ui/base/ozone/surface_factory_delegate_ozone.cc » ('j') | ui/base/ozone/surface_factory_ozone.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698