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

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

Issue 940903002: video_decode_accelerator_unittest: enable test on ozone surfaceless (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix remaining thumbnail issues 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
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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 // recording the plane IDs in the |plane_list|. Only planes compatible with 83 // recording the plane IDs in the |plane_list|. Only planes compatible with
84 // |crtc_id| will be used. |overlay_list| must be sorted bottom-to-top. 84 // |crtc_id| will be used. |overlay_list| must be sorted bottom-to-top.
85 virtual bool AssignOverlayPlanes(HardwareDisplayPlaneList* plane_list, 85 virtual bool AssignOverlayPlanes(HardwareDisplayPlaneList* plane_list,
86 const OverlayPlaneList& overlay_list, 86 const OverlayPlaneList& overlay_list,
87 uint32_t crtc_id, 87 uint32_t crtc_id,
88 CrtcController* crtc); 88 CrtcController* crtc);
89 89
90 // Commit the plane states in |plane_list|. 90 // Commit the plane states in |plane_list|.
91 virtual bool Commit(HardwareDisplayPlaneList* plane_list) = 0; 91 virtual bool Commit(HardwareDisplayPlaneList* plane_list) = 0;
92 92
93 // Commit synchronously the plane states in |plane_list|.
94 virtual bool CommitSync(HardwareDisplayPlaneList* plane_list) = 0;
95
93 // Set all planes in |plane_list| owned by |crtc_id| to free. 96 // Set all planes in |plane_list| owned by |crtc_id| to free.
94 static void ResetPlanes(HardwareDisplayPlaneList* plane_list, 97 static void ResetPlanes(HardwareDisplayPlaneList* plane_list,
95 uint32_t crtc_id); 98 uint32_t crtc_id);
96 99
97 const ScopedVector<HardwareDisplayPlane>& planes() { return planes_; } 100 const ScopedVector<HardwareDisplayPlane>& planes() { return planes_; }
98 101
99 protected: 102 protected:
100 virtual bool SetPlaneData(HardwareDisplayPlaneList* plane_list, 103 virtual bool SetPlaneData(HardwareDisplayPlaneList* plane_list,
101 HardwareDisplayPlane* hw_plane, 104 HardwareDisplayPlane* hw_plane,
102 const OverlayPlane& overlay, 105 const OverlayPlane& overlay,
(...skipping 13 matching lines...) Expand all
116 119
117 ScopedVector<HardwareDisplayPlane> planes_; 120 ScopedVector<HardwareDisplayPlane> planes_;
118 std::vector<uint32_t> crtcs_; 121 std::vector<uint32_t> crtcs_;
119 122
120 DISALLOW_COPY_AND_ASSIGN(HardwareDisplayPlaneManager); 123 DISALLOW_COPY_AND_ASSIGN(HardwareDisplayPlaneManager);
121 }; 124 };
122 125
123 } // namespace ui 126 } // namespace ui
124 127
125 #endif // UI_OZONE_PLATFORM_DRI_HARDWARE_DISPLAY_PLANE_MANAGER_H_ 128 #endif // UI_OZONE_PLATFORM_DRI_HARDWARE_DISPLAY_PLANE_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698