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

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

Issue 2623963002: ozone: Allocate scanout buffers according to KMS modifiers. (Closed)
Patch Set: Remove unused modifier_. Created 3 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 | « ui/ozone/platform/drm/gpu/drm_buffer.cc ('k') | ui/ozone/platform/drm/gpu/drm_device.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_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 <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 virtual ScopedDrmConnectorPtr GetConnector(uint32_t connector_id); 77 virtual ScopedDrmConnectorPtr GetConnector(uint32_t connector_id);
78 78
79 // Register any format buffer with the CRTC. On successful registration, the 79 // Register any format buffer with the CRTC. On successful registration, the
80 // CRTC will assign a framebuffer ID to |framebuffer|. 80 // CRTC will assign a framebuffer ID to |framebuffer|.
81 virtual bool AddFramebuffer2(uint32_t width, 81 virtual bool AddFramebuffer2(uint32_t width,
82 uint32_t height, 82 uint32_t height,
83 uint32_t format, 83 uint32_t format,
84 uint32_t handles[4], 84 uint32_t handles[4],
85 uint32_t strides[4], 85 uint32_t strides[4],
86 uint32_t offsets[4], 86 uint32_t offsets[4],
87 uint64_t modifiers[4],
87 uint32_t* framebuffer, 88 uint32_t* framebuffer,
88 uint32_t flags); 89 uint32_t flags);
89 90
90 // Deregister the given |framebuffer|. 91 // Deregister the given |framebuffer|.
91 virtual bool RemoveFramebuffer(uint32_t framebuffer); 92 virtual bool RemoveFramebuffer(uint32_t framebuffer);
92 93
93 // Get the DRM details associated with |framebuffer|. 94 // Get the DRM details associated with |framebuffer|.
94 virtual ScopedDrmFramebufferPtr GetFramebuffer(uint32_t framebuffer); 95 virtual ScopedDrmFramebufferPtr GetFramebuffer(uint32_t framebuffer);
95 96
96 // Schedules a pageflip for CRTC |crtc_id|. This function will return 97 // Schedules a pageflip for CRTC |crtc_id|. This function will return
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 std::unique_ptr<IOWatcher> watcher_; 204 std::unique_ptr<IOWatcher> watcher_;
204 205
205 bool is_primary_device_; 206 bool is_primary_device_;
206 207
207 DISALLOW_COPY_AND_ASSIGN(DrmDevice); 208 DISALLOW_COPY_AND_ASSIGN(DrmDevice);
208 }; 209 };
209 210
210 } // namespace ui 211 } // namespace ui
211 212
212 #endif // UI_OZONE_PLATFORM_DRM_GPU_DRM_DEVICE_H_ 213 #endif // UI_OZONE_PLATFORM_DRM_GPU_DRM_DEVICE_H_
OLDNEW
« no previous file with comments | « ui/ozone/platform/drm/gpu/drm_buffer.cc ('k') | ui/ozone/platform/drm/gpu/drm_device.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698