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

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

Issue 2576263002: ozone: Allocate scanout buffer according to KMS modifiers (Closed)
Patch Set: ozone: Allocate scanout buffer according to KMS modifiers Created 4 years 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_DRM_GPU_CRTC_CONTROLLER_H_ 5 #ifndef UI_OZONE_PLATFORM_DRM_GPU_CRTC_CONTROLLER_H_
6 #define UI_OZONE_PLATFORM_DRM_GPU_CRTC_CONTROLLER_H_ 6 #define UI_OZONE_PLATFORM_DRM_GPU_CRTC_CONTROLLER_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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 // Schedule a page flip event and present the overlays in |planes|. 51 // Schedule a page flip event and present the overlays in |planes|.
52 bool SchedulePageFlip(HardwareDisplayPlaneList* plane_list, 52 bool SchedulePageFlip(HardwareDisplayPlaneList* plane_list,
53 const OverlayPlaneList& planes, 53 const OverlayPlaneList& planes,
54 bool test_only, 54 bool test_only,
55 scoped_refptr<PageFlipRequest> page_flip_request); 55 scoped_refptr<PageFlipRequest> page_flip_request);
56 56
57 // Returns true if hardware plane with z_order equal to |z_order| can support 57 // Returns true if hardware plane with z_order equal to |z_order| can support
58 // |fourcc_format| format. 58 // |fourcc_format| format.
59 bool IsFormatSupported(uint32_t fourcc_format, uint32_t z_order) const; 59 bool IsFormatSupported(uint32_t fourcc_format, uint32_t z_order) const;
60 60
61 std::vector<uint64_t> GetFormatModifiers(uint32_t format);
Daniele Castagna 2016/12/20 18:03:28 nit: a comment explaining what a modifier for a fo
hoegsberg1 2016/12/22 23:05:20 Acknowledged.
62
61 // Called if the page flip event wasn't scheduled (ie: page flip fails). This 63 // Called if the page flip event wasn't scheduled (ie: page flip fails). This
62 // will then signal the request such that the caller doesn't wait for the 64 // will then signal the request such that the caller doesn't wait for the
63 // event forever. 65 // event forever.
64 void SignalPageFlipRequest(gfx::SwapResult result); 66 void SignalPageFlipRequest(gfx::SwapResult result);
65 67
66 // Called when the page flip event occurred. The event is provided by the 68 // Called when the page flip event occurred. The event is provided by the
67 // kernel when a VBlank event finished. This allows the controller to 69 // kernel when a VBlank event finished. This allows the controller to
68 // update internal state and propagate the update to the surface. 70 // update internal state and propagate the update to the surface.
69 // The tuple (seconds, useconds) represents the event timestamp. |seconds| 71 // The tuple (seconds, useconds) represents the event timestamp. |seconds|
70 // represents the number of seconds while |useconds| represents the 72 // represents the number of seconds while |useconds| represents the
(...skipping 30 matching lines...) Expand all
101 103
102 // The time of the last page flip event as reported by the kernel callback. 104 // The time of the last page flip event as reported by the kernel callback.
103 uint64_t time_of_last_flip_ = 0; 105 uint64_t time_of_last_flip_ = 0;
104 106
105 DISALLOW_COPY_AND_ASSIGN(CrtcController); 107 DISALLOW_COPY_AND_ASSIGN(CrtcController);
106 }; 108 };
107 109
108 } // namespace ui 110 } // namespace ui
109 111
110 #endif // UI_OZONE_PLATFORM_DRM_GPU_CRTC_CONTROLLER_H_ 112 #endif // UI_OZONE_PLATFORM_DRM_GPU_CRTC_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698