blob: 9c040e9a3fc377cc8e6753a0f75904df511f6633 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
// Copyright 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_OZONE_PLATFORM_DRI_OZONE_PLATFORM_DRI_H_
#define UI_OZONE_PLATFORM_DRI_OZONE_PLATFORM_DRI_H_
#include "ui/events/ozone/evdev/event_factory.h"
#include "ui/gfx/ozone/impl/software_surface_factory_ozone.h"
#include "ui/ozone/ozone_platform.h"
namespace ui {
// OzonePlatform for Linux DRI (Direct Rendering Infrastructure)
//
// This platform is Linux without any display server (no X, wayland, or
// anything). This means chrome alone owns the display and input devices.
class OzonePlatformDri : public OzonePlatform {
public:
OzonePlatformDri();
virtual ~OzonePlatformDri();
virtual gfx::SurfaceFactoryOzone* GetSurfaceFactoryOzone() OVERRIDE;
virtual ui::EventFactoryOzone* GetEventFactoryOzone() OVERRIDE;
private:
gfx::SoftwareSurfaceFactoryOzone surface_factory_ozone_;
ui::EventFactoryEvdev event_factory_ozone_;
DISALLOW_COPY_AND_ASSIGN(OzonePlatformDri);
};
} // namespace ui
#endif // UI_OZONE_PLATFORM_DRI_OZONE_PLATFORM_DRI_H_
|