Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef UI_BASE_LINUX_NATIVE_SURFACE_LINUX_FACTORY_DELEGATE_ | |
| 6 #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.
| |
| 7 | |
| 8 #include "ui/gfx/native_widget_types.h" | |
| 9 | |
| 10 namespace gfx { | |
| 11 class VSyncProvider; | |
| 12 } // namespace gfx | |
| 13 | |
| 14 namespace ui { | |
| 15 | |
| 16 class SurfaceFactoryDelegate { | |
| 17 public: | |
| 18 virtual ~SurfaceFactoryDelegate(); | |
| 19 virtual void InitializeHardware() = 0; | |
| 20 virtual void ShutdownHardware() = 0; | |
| 21 virtual gfx::AcceleratedWidget GetAcceleratedWidget( | |
| 22 const gfx::GLSurfaceHandle& handle) = 0; | |
| 23 virtual bool AcceleratedWidgetCanBeResized(gfx::AcceleratedWidget w) = 0; | |
| 24 virtual bool LoadEGLGLES2Bindings() = 0; | |
| 25 virtual gfx::VSyncProvider* GetVSyncProvider(gfx::AcceleratedWidget w) = 0; | |
| 26 }; | |
| 27 | |
| 28 } // namespace ui | |
| 29 | |
| 30 #endif // UI_BASE_LINUX_NATIVE_SURFACE_LINUX_FACTORY_DELEGATE_ | |
| OLD | NEW |