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

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

Issue 2627193003: ozone: Allocate scanout buffers according to KMS modifiers. (Closed)
Patch Set: 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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 virtual ScopedDrmConnectorPtr GetConnector(uint32_t connector_id); 74 virtual ScopedDrmConnectorPtr GetConnector(uint32_t connector_id);
75 75
76 // Register any format buffer with the CRTC. On successful registration, the 76 // Register any format buffer with the CRTC. On successful registration, the
77 // CRTC will assign a framebuffer ID to |framebuffer|. 77 // CRTC will assign a framebuffer ID to |framebuffer|.
78 virtual bool AddFramebuffer2(uint32_t width, 78 virtual bool AddFramebuffer2(uint32_t width,
79 uint32_t height, 79 uint32_t height,
80 uint32_t format, 80 uint32_t format,
81 uint32_t handles[4], 81 uint32_t handles[4],
82 uint32_t strides[4], 82 uint32_t strides[4],
83 uint32_t offsets[4], 83 uint32_t offsets[4],
84 uint64_t modifiers[4],
84 uint32_t* framebuffer, 85 uint32_t* framebuffer,
85 uint32_t flags); 86 uint32_t flags);
86 87
87 // Deregister the given |framebuffer|. 88 // Deregister the given |framebuffer|.
88 virtual bool RemoveFramebuffer(uint32_t framebuffer); 89 virtual bool RemoveFramebuffer(uint32_t framebuffer);
89 90
90 // Get the DRM details associated with |framebuffer|. 91 // Get the DRM details associated with |framebuffer|.
91 virtual ScopedDrmFramebufferPtr GetFramebuffer(uint32_t framebuffer); 92 virtual ScopedDrmFramebufferPtr GetFramebuffer(uint32_t framebuffer);
92 93
93 // Schedules a pageflip for CRTC |crtc_id|. This function will return 94 // Schedules a pageflip for CRTC |crtc_id|. This function will return
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 std::unique_ptr<IOWatcher> watcher_; 201 std::unique_ptr<IOWatcher> watcher_;
201 202
202 bool is_primary_device_; 203 bool is_primary_device_;
203 204
204 DISALLOW_COPY_AND_ASSIGN(DrmDevice); 205 DISALLOW_COPY_AND_ASSIGN(DrmDevice);
205 }; 206 };
206 207
207 } // namespace ui 208 } // namespace ui
208 209
209 #endif // UI_OZONE_PLATFORM_DRM_GPU_DRM_DEVICE_H_ 210 #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