| OLD | NEW |
| (Empty) |
| 1 // Copyright 2014 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_OZONE_PLATFORM_CACA_CACA_SURFACE_FACTORY_H_ | |
| 6 #define UI_OZONE_PLATFORM_CACA_CACA_SURFACE_FACTORY_H_ | |
| 7 | |
| 8 #include <caca.h> | |
| 9 | |
| 10 #include "base/memory/scoped_ptr.h" | |
| 11 #include "ui/ozone/public/surface_factory_ozone.h" | |
| 12 | |
| 13 namespace gfx { | |
| 14 class SurfaceOzone; | |
| 15 } | |
| 16 | |
| 17 namespace ui { | |
| 18 | |
| 19 class CacaConnection; | |
| 20 | |
| 21 class CacaSurfaceFactory : public ui::SurfaceFactoryOzone { | |
| 22 public: | |
| 23 CacaSurfaceFactory(CacaConnection* connection); | |
| 24 virtual ~CacaSurfaceFactory(); | |
| 25 | |
| 26 // ui::SurfaceFactoryOzone overrides: | |
| 27 virtual HardwareState InitializeHardware() OVERRIDE; | |
| 28 virtual void ShutdownHardware() OVERRIDE; | |
| 29 virtual gfx::AcceleratedWidget GetAcceleratedWidget() OVERRIDE; | |
| 30 virtual bool LoadEGLGLES2Bindings( | |
| 31 AddGLLibraryCallback add_gl_library, | |
| 32 SetGLGetProcAddressProcCallback set_gl_get_proc_address) OVERRIDE; | |
| 33 virtual scoped_ptr<ui::SurfaceOzoneCanvas> CreateCanvasForWidget( | |
| 34 gfx::AcceleratedWidget widget) OVERRIDE; | |
| 35 | |
| 36 private: | |
| 37 HardwareState state_; | |
| 38 | |
| 39 CacaConnection* connection_; // Not owned. | |
| 40 | |
| 41 DISALLOW_COPY_AND_ASSIGN(CacaSurfaceFactory); | |
| 42 }; | |
| 43 | |
| 44 } // namespace ui | |
| 45 | |
| 46 #endif // UI_OZONE_PLATFORM_CACA_CACA_SURFACE_FACTORY_H_ | |
| OLD | NEW |