1 // Copyright 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.
5 #ifndef UI_OZONE_PLATFORM_DRI_OZONE_PLATFORM_DRI_H_
6 #define UI_OZONE_PLATFORM_DRI_OZONE_PLATFORM_DRI_H_
8 #include "ui/events/ozone/evdev/event_factory.h"
9 #include "ui/gfx/ozone/impl/software_surface_factory_ozone.h"
10 #include "ui/ozone/ozone_platform.h"
14 // OzonePlatform for Linux DRI (Direct Rendering Infrastructure)
16 // This platform is Linux without any display server (no X, wayland, or
17 // anything). This means chrome alone owns the display and input devices.
18 class OzonePlatformDri : public OzonePlatform {
21 virtual ~OzonePlatformDri();
23 virtual gfx::SurfaceFactoryOzone* GetSurfaceFactoryOzone() OVERRIDE;
24 virtual ui::EventFactoryOzone* GetEventFactoryOzone() OVERRIDE;
27 gfx::SoftwareSurfaceFactoryOzone surface_factory_ozone_;
28 ui::EventFactoryEvdev event_factory_ozone_;
30 DISALLOW_COPY_AND_ASSIGN(OzonePlatformDri);
33 // Constructor hook for use in ozone_platform_list.cc
34 OzonePlatform* CreateOzonePlatformDri();
38 #endif // UI_OZONE_PLATFORM_DRI_OZONE_PLATFORM_DRI_H_