Chromium Code Reviews| 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_ |