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

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

Issue 812913003: ozone: fix HDPMLegacy - do the PF after overlays, also clear old overlays (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add tests Created 5 years, 11 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
« no previous file with comments | « no previous file | ui/ozone/platform/dri/hardware_display_plane_manager.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_OZONE_PLATFORM_DRI_HARDWARE_DISPLAY_PLANE_MANAGER_H_ 5 #ifndef UI_OZONE_PLATFORM_DRI_HARDWARE_DISPLAY_PLANE_MANAGER_H_
6 #define UI_OZONE_PLATFORM_DRI_HARDWARE_DISPLAY_PLANE_MANAGER_H_ 6 #define UI_OZONE_PLATFORM_DRI_HARDWARE_DISPLAY_PLANE_MANAGER_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 #include <xf86drmMode.h> 10 #include <xf86drmMode.h>
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 int plane; 57 int plane;
58 int framebuffer; 58 int framebuffer;
59 gfx::Rect bounds; 59 gfx::Rect bounds;
60 gfx::Rect src_rect; 60 gfx::Rect src_rect;
61 }; 61 };
62 std::vector<Plane> planes; 62 std::vector<Plane> planes;
63 }; 63 };
64 // In the case of non-atomic operation, this info will be used for 64 // In the case of non-atomic operation, this info will be used for
65 // pageflipping. 65 // pageflipping.
66 std::vector<PageFlipInfo> legacy_page_flips; 66 std::vector<PageFlipInfo> legacy_page_flips;
67
68 // Set if the last operation on this list was a Commit().
69 bool committed;
67 }; 70 };
68 71
69 class HardwareDisplayPlaneManager { 72 class HardwareDisplayPlaneManager {
70 public: 73 public:
71 HardwareDisplayPlaneManager(); 74 HardwareDisplayPlaneManager();
72 virtual ~HardwareDisplayPlaneManager(); 75 virtual ~HardwareDisplayPlaneManager();
73 76
74 // This parses information from the drm driver, adding any new planes 77 // This parses information from the drm driver, adding any new planes
75 // or crtcs found. 78 // or crtcs found.
76 bool Initialize(DriWrapper* drm); 79 bool Initialize(DriWrapper* drm);
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 115
113 ScopedVector<HardwareDisplayPlane> planes_; 116 ScopedVector<HardwareDisplayPlane> planes_;
114 std::vector<uint32_t> crtcs_; 117 std::vector<uint32_t> crtcs_;
115 118
116 DISALLOW_COPY_AND_ASSIGN(HardwareDisplayPlaneManager); 119 DISALLOW_COPY_AND_ASSIGN(HardwareDisplayPlaneManager);
117 }; 120 };
118 121
119 } // namespace ui 122 } // namespace ui
120 123
121 #endif // UI_OZONE_PLATFORM_DRI_HARDWARE_DISPLAY_PLANE_MANAGER_H_ 124 #endif // UI_OZONE_PLATFORM_DRI_HARDWARE_DISPLAY_PLANE_MANAGER_H_
OLDNEW
« no previous file with comments | « no previous file | ui/ozone/platform/dri/hardware_display_plane_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698