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

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

Issue 409793007: Add plane manager to the atomic swap path. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 5 months 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
OLDNEW
(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_DRI_HARDWARE_DISPLAY_PLANE_MANAGER_H_
6 #define UI_OZONE_PLATFORM_DRI_HARDWARE_DISPLAY_PLANE_MANAGER_H_
7
8 #include <stddef.h>
9 #include <stdint.h>
10 #include <xf86drmMode.h>
11 #include <vector>
12
13 #include "base/basictypes.h"
14 #include "base/memory/scoped_vector.h"
15 #include "ui/ozone/platform/dri/hardware_display_plane.h"
16 #include "ui/ozone/platform/dri/scoped_drm_types.h"
17
18 namespace gfx {
19 class Rect;
20 }
dnicoara 2014/07/22 20:48:33 nit: // namespace gfx
21
22 namespace ui {
23
24 class DriWrapper;
25
26 class HardwareDisplayPlaneManager {
27 public:
28 HardwareDisplayPlaneManager(DriWrapper* drm);
29
30 ~HardwareDisplayPlaneManager();
31
32 bool Initialize();
33
34 const ScopedVector<HardwareDisplayPlane>& get_planes() { return planes_; }
35
36 private:
37 // Object containing the connection to the graphics device and wraps the API
38 // calls to control it.
39 DriWrapper* drm_;
40
41 drmModePropertySetPtr property_set_;
42 ScopedVector<HardwareDisplayPlane> planes_;
43
44 DISALLOW_COPY_AND_ASSIGN(HardwareDisplayPlaneManager);
45 };
46
47 } // namespace ui
48
49 #endif // UI_OZONE_PLATFORM_DRI_HARDWARE_DISPLAY_PLANE_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698