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

Side by Side Diff: ui/ozone/platform/drm/gpu/hardware_display_plane_atomic.h

Issue 994503004: Preliminary atomic patch (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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 2015 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_DRM_GPU_HARDWARE_DISPLAY_PLANE_ATOMIC_H_
6 #define UI_OZONE_PLATFORM_DRM_GPU_HARDWARE_DISPLAY_PLANE_ATOMIC_H_
7
8 #include "ui/ozone/platform/drm/gpu/hardware_display_plane.h"
9
10 #include <xf86drmMode.h>
11
12 namespace ui {
13
14 class DrmDevice;
15
16 class HardwareDisplayPlaneAtomic : public HardwareDisplayPlane {
17 public:
18 HardwareDisplayPlaneAtomic(uint32_t plane_id, uint32_t possible_crtcs);
19 ~HardwareDisplayPlaneAtomic() override;
20
21 bool Initialize(DrmDevice* drm) override;
dnicoara 2015/03/09 20:10:41 // HardwareDisplayPlane:
achaulk 2015/03/09 20:23:48 Done.
22 bool SetPlaneData(drmModePropertySet* property_set,
dnicoara 2015/03/09 20:10:41 Non-virtual should be above virtual declarations.
achaulk 2015/03/09 20:23:49 Done.
23 uint32_t crtc_id,
24 uint32_t framebuffer,
25 const gfx::Rect& crtc_rect,
26 const gfx::Rect& src_rect);
27
28 private:
29 struct Property {
30 Property();
31 bool Initialize(DrmDevice* drm,
32 const char* name,
33 const ScopedDrmObjectPropertyPtr& plane_properties);
34 uint32_t id_;
35 };
36
37 Property crtc_prop_;
38 Property fb_prop_;
39 Property crtc_x_prop_;
40 Property crtc_y_prop_;
41 Property crtc_w_prop_;
42 Property crtc_h_prop_;
43 Property src_x_prop_;
44 Property src_y_prop_;
45 Property src_w_prop_;
46 Property src_h_prop_;
47 };
48
49 } // namespace ui
50
51 #endif // UI_OZONE_PLATFORM_DRM_GPU_HARDWARE_DISPLAY_PLANE_ATOMIC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698