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

Side by Side Diff: ui/gfx/linux/client_native_pixmap_dmabuf.cc

Issue 2711933002: Rename ClientNativePixmapFactoryGbm to ClientNativePixmapFactoryDmabuf amd move to ui/gfx (Closed)
Patch Set: Rebase Created 3 years, 9 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/gfx/linux/client_native_pixmap_dmabuf.h"
6 6
7 #include <fcntl.h> 7 #include <fcntl.h>
8 #include <linux/version.h> 8 #include <linux/version.h>
9 #include <stddef.h> 9 #include <stddef.h>
10 #include <sys/mman.h> 10 #include <sys/mman.h>
11 #include <xf86drm.h> 11 #include <xf86drm.h>
12 12
13 #include "base/memory/ptr_util.h" 13 #include "base/memory/ptr_util.h"
14 #include "base/process/memory.h" 14 #include "base/process/memory.h"
15 #include "base/trace_event/trace_event.h" 15 #include "base/trace_event/trace_event.h"
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 uint8_t* address = reinterpret_cast<uint8_t*>(data_); 112 uint8_t* address = reinterpret_cast<uint8_t*>(data_);
113 return address + pixmap_handle_.planes[plane].offset; 113 return address + pixmap_handle_.planes[plane].offset;
114 } 114 }
115 115
116 int ClientNativePixmapDmaBuf::GetStride(size_t plane) const { 116 int ClientNativePixmapDmaBuf::GetStride(size_t plane) const {
117 DCHECK_LT(plane, pixmap_handle_.planes.size()); 117 DCHECK_LT(plane, pixmap_handle_.planes.size());
118 return pixmap_handle_.planes[plane].stride; 118 return pixmap_handle_.planes[plane].stride;
119 } 119 }
120 120
121 } // namespace ui 121 } // namespace ui
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698