Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(308)

Side by Side Diff: ui/ozone/platform/dri/ozone_platform_dri.h

Issue 44933002: Implement OzonePlatform (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ui/ozone/ozone_switches.cc ('k') | ui/ozone/platform/dri/ozone_platform_dri.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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_OZONE_PLATFORM_DRI_OZONE_PLATFORM_DRI_H_
6 #define UI_OZONE_PLATFORM_DRI_OZONE_PLATFORM_DRI_H_
7
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"
11
12 namespace ui {
13
14 // OzonePlatform for Linux DRI (Direct Rendering Infrastructure)
15 //
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 {
19 public:
20 OzonePlatformDri();
21 virtual ~OzonePlatformDri();
22
23 virtual gfx::SurfaceFactoryOzone* GetSurfaceFactoryOzone() OVERRIDE;
24 virtual ui::EventFactoryOzone* GetEventFactoryOzone() OVERRIDE;
25
26 private:
27 gfx::SoftwareSurfaceFactoryOzone surface_factory_ozone_;
28 ui::EventFactoryEvdev event_factory_ozone_;
29
30 DISALLOW_COPY_AND_ASSIGN(OzonePlatformDri);
31 };
32
33 } // namespace ui
34
35 #endif // UI_OZONE_PLATFORM_DRI_OZONE_PLATFORM_DRI_H_
OLDNEW
« no previous file with comments | « ui/ozone/ozone_switches.cc ('k') | ui/ozone/platform/dri/ozone_platform_dri.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698