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

Side by Side Diff: ui/ozone/platform/drm/common/client_native_pixmap_dmabuf.cc

Issue 2298353002: gfx: Use unsigned strides for gpu memory buffers. (Closed)
Patch Set: . Created 4 years, 3 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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 #include "ui/ozone/platform/drm/common/client_native_pixmap_dmabuf.h" 5 #include "ui/ozone/platform/drm/common/client_native_pixmap_dmabuf.h"
6 6
7 #include <fcntl.h> 7 #include <fcntl.h>
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <sys/mman.h> 9 #include <sys/mman.h>
10 #include <xf86drm.h> 10 #include <xf86drm.h>
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 TRACE_EVENT0("drm", "DmaBuf:Map"); 89 TRACE_EVENT0("drm", "DmaBuf:Map");
90 PrimeSyncStart(dmabuf_fd_.get()); 90 PrimeSyncStart(dmabuf_fd_.get());
91 return data_; 91 return data_;
92 } 92 }
93 93
94 void ClientNativePixmapDmaBuf::Unmap() { 94 void ClientNativePixmapDmaBuf::Unmap() {
95 TRACE_EVENT0("drm", "DmaBuf:Unmap"); 95 TRACE_EVENT0("drm", "DmaBuf:Unmap");
96 PrimeSyncEnd(dmabuf_fd_.get()); 96 PrimeSyncEnd(dmabuf_fd_.get());
97 } 97 }
98 98
99 void ClientNativePixmapDmaBuf::GetStride(int* stride) const { 99 void ClientNativePixmapDmaBuf::GetStride(uint32_t* stride) const {
100 *stride = stride_; 100 *stride = stride_;
101 } 101 }
102 102
103 } // namespace ui 103 } // namespace ui
OLDNEW
« no previous file with comments | « ui/ozone/platform/drm/common/client_native_pixmap_dmabuf.h ('k') | ui/ozone/platform/drm/gpu/gbm_buffer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698