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

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

Issue 1604653002: ui/ozone: Fix up VGEM header path (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: place include file in the alphabetical order Created 4 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 | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_vgem.h" 5 #include "ui/ozone/platform/drm/common/client_native_pixmap_vgem.h"
6 6
7 #include <fcntl.h> 7 #include <fcntl.h>
8 #include <libdrm/vgem_drm.h>
8 #include <stddef.h> 9 #include <stddef.h>
9 #include <sys/mman.h> 10 #include <sys/mman.h>
10 #include <vgem_drm.h>
11 #include <xf86drm.h> 11 #include <xf86drm.h>
12 12
13 #include "base/process/memory.h" 13 #include "base/process/memory.h"
14 #include "base/trace_event/trace_event.h" 14 #include "base/trace_event/trace_event.h"
15 15
16 namespace ui { 16 namespace ui {
17 17
18 // static 18 // static
19 scoped_ptr<ClientNativePixmap> ClientNativePixmapVgem::ImportFromDmabuf( 19 scoped_ptr<ClientNativePixmap> ClientNativePixmapVgem::ImportFromDmabuf(
20 int vgem_fd, 20 int vgem_fd,
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 return data_; 70 return data_;
71 } 71 }
72 72
73 void ClientNativePixmapVgem::Unmap() {} 73 void ClientNativePixmapVgem::Unmap() {}
74 74
75 void ClientNativePixmapVgem::GetStride(int* stride) const { 75 void ClientNativePixmapVgem::GetStride(int* stride) const {
76 *stride = stride_; 76 *stride = stride_;
77 } 77 }
78 78
79 } // namespace ui 79 } // namespace ui
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698