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.
5 #ifndef UI_OZONE_PLATFORM_CACA_CACA_SURFACE_FACTORY_H_
6 #define UI_OZONE_PLATFORM_CACA_CACA_SURFACE_FACTORY_H_
10 #include "base/memory/scoped_ptr.h"
11 #include "ui/gfx/ozone/surface_factory_ozone.h"
21 class CacaSurfaceFactory : public gfx::SurfaceFactoryOzone {
23 CacaSurfaceFactory(CacaConnection* connection);
24 virtual ~CacaSurfaceFactory();
26 // gfx::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<gfx::SurfaceOzoneCanvas> CreateCanvasForWidget(
34 gfx::AcceleratedWidget widget) OVERRIDE;
39 CacaConnection* connection_; // Not owned.
41 DISALLOW_COPY_AND_ASSIGN(CacaSurfaceFactory);
46 #endif // UI_OZONE_PLATFORM_CACA_CACA_SURFACE_FACTORY_H_