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

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

Issue 1426993003: Ozone: Dont hardcode format to YUV when using Overlay Composition. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 // Schedule a page flip event and present the overlays in |planes|. 52 // Schedule a page flip event and present the overlays in |planes|.
53 bool SchedulePageFlip(HardwareDisplayPlaneList* plane_list, 53 bool SchedulePageFlip(HardwareDisplayPlaneList* plane_list,
54 const OverlayPlaneList& planes, 54 const OverlayPlaneList& planes,
55 bool test_only, 55 bool test_only,
56 scoped_refptr<PageFlipRequest> page_flip_request); 56 scoped_refptr<PageFlipRequest> page_flip_request);
57 57
58 // Returns list of plane id's which can support |plane| configuration. 58 // Returns list of plane id's which can support |plane| configuration.
59 std::vector<uint32_t> GetCompatibleHardwarePlaneIds( 59 std::vector<uint32_t> GetCompatibleHardwarePlaneIds(
60 const OverlayPlane& plane) const; 60 const OverlayPlane& plane) const;
61 61
62 // Returns true if hardware plane with z_order equal to |z_order| can support
63 // |fourcc_format| format.
64 bool IsFormatSupported(uint32_t fourcc_format, uint32_t z_order) const;
65
62 // Called if the page flip event wasn't scheduled (ie: page flip fails). This 66 // Called if the page flip event wasn't scheduled (ie: page flip fails). This
63 // will then signal the request such that the caller doesn't wait for the 67 // will then signal the request such that the caller doesn't wait for the
64 // event forever. 68 // event forever.
65 void SignalPageFlipRequest(gfx::SwapResult result); 69 void SignalPageFlipRequest(gfx::SwapResult result);
66 70
67 // Called when the page flip event occurred. The event is provided by the 71 // Called when the page flip event occurred. The event is provided by the
68 // kernel when a VBlank event finished. This allows the controller to 72 // kernel when a VBlank event finished. This allows the controller to
69 // update internal state and propagate the update to the surface. 73 // update internal state and propagate the update to the surface.
70 // The tuple (seconds, useconds) represents the event timestamp. |seconds| 74 // The tuple (seconds, useconds) represents the event timestamp. |seconds|
71 // represents the number of seconds while |useconds| represents the 75 // represents the number of seconds while |useconds| represents the
(...skipping 30 matching lines...) Expand all
102 106
103 // The time of the last page flip event as reported by the kernel callback. 107 // The time of the last page flip event as reported by the kernel callback.
104 uint64_t time_of_last_flip_ = 0; 108 uint64_t time_of_last_flip_ = 0;
105 109
106 DISALLOW_COPY_AND_ASSIGN(CrtcController); 110 DISALLOW_COPY_AND_ASSIGN(CrtcController);
107 }; 111 };
108 112
109 } // namespace ui 113 } // namespace ui
110 114
111 #endif // UI_OZONE_PLATFORM_DRM_GPU_CRTC_CONTROLLER_H_ 115 #endif // UI_OZONE_PLATFORM_DRM_GPU_CRTC_CONTROLLER_H_
OLDNEW
« no previous file with comments | « no previous file | ui/ozone/platform/drm/gpu/crtc_controller.cc » ('j') | ui/ozone/platform/drm/gpu/drm_window.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698