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

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

Issue 1422563002: [Ozone] Enables overlay render format setting path and by default use UYVY (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_DRM_DEVICE_H_ 5 #ifndef UI_OZONE_PLATFORM_DRM_GPU_DRM_DEVICE_H_
6 #define UI_OZONE_PLATFORM_DRM_GPU_DRM_DEVICE_H_ 6 #define UI_OZONE_PLATFORM_DRM_GPU_DRM_DEVICE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <vector> 10 #include <vector>
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 // Used to set a specific configuration to the CRTC. Normally this function 74 // Used to set a specific configuration to the CRTC. Normally this function
75 // would be called with a CRTC saved state (from |GetCrtc|) to restore it to 75 // would be called with a CRTC saved state (from |GetCrtc|) to restore it to
76 // its original configuration. 76 // its original configuration.
77 virtual bool SetCrtc(drmModeCrtc* crtc, std::vector<uint32_t> connectors); 77 virtual bool SetCrtc(drmModeCrtc* crtc, std::vector<uint32_t> connectors);
78 78
79 virtual bool DisableCrtc(uint32_t crtc_id); 79 virtual bool DisableCrtc(uint32_t crtc_id);
80 80
81 // Returns the connector properties for |connector_id|. 81 // Returns the connector properties for |connector_id|.
82 virtual ScopedDrmConnectorPtr GetConnector(uint32_t connector_id); 82 virtual ScopedDrmConnectorPtr GetConnector(uint32_t connector_id);
83 83
84 // Register a buffer with the CRTC. On successful registration, the CRTC will 84 // Register any format buffer with the CRTC. On successful registration, the
85 // assign a framebuffer ID to |framebuffer|. 85 // CRTC will assign a framebuffer ID to |framebuffer|.
86 virtual bool AddFramebuffer(uint32_t width, 86 virtual bool AddFramebuffer2(uint32_t width,
87 uint32_t height, 87 uint32_t height,
88 uint8_t depth, 88 uint32_t format,
89 uint8_t bpp, 89 uint32_t handles[4],
90 uint32_t stride, 90 uint32_t strides[4],
91 uint32_t handle, 91 uint32_t offsets[4],
92 uint32_t* framebuffer); 92 uint32_t* framebuffer,
93 uint32_t flags);
93 94
94 // Deregister the given |framebuffer|. 95 // Deregister the given |framebuffer|.
95 virtual bool RemoveFramebuffer(uint32_t framebuffer); 96 virtual bool RemoveFramebuffer(uint32_t framebuffer);
96 97
97 // Get the DRM details associated with |framebuffer|. 98 // Get the DRM details associated with |framebuffer|.
98 virtual ScopedDrmFramebufferPtr GetFramebuffer(uint32_t framebuffer); 99 virtual ScopedDrmFramebufferPtr GetFramebuffer(uint32_t framebuffer);
99 100
100 // Schedules a pageflip for CRTC |crtc_id|. This function will return 101 // Schedules a pageflip for CRTC |crtc_id|. This function will return
101 // immediately. Upon completion of the pageflip event, the CRTC will be 102 // immediately. Upon completion of the pageflip event, the CRTC will be
102 // displaying the buffer with ID |framebuffer| and will have a DRM event 103 // displaying the buffer with ID |framebuffer| and will have a DRM event
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 scoped_refptr<PageFlipManager> page_flip_manager_; 206 scoped_refptr<PageFlipManager> page_flip_manager_;
206 207
207 bool is_primary_device_; 208 bool is_primary_device_;
208 209
209 DISALLOW_COPY_AND_ASSIGN(DrmDevice); 210 DISALLOW_COPY_AND_ASSIGN(DrmDevice);
210 }; 211 };
211 212
212 } // namespace ui 213 } // namespace ui
213 214
214 #endif // UI_OZONE_PLATFORM_DRM_GPU_DRM_DEVICE_H_ 215 #endif // UI_OZONE_PLATFORM_DRM_GPU_DRM_DEVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698