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

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

Issue 1134993003: ozone: Implement zero/one-copy texture for Ozone GBM. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase to ToT Created 5 years, 4 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/gbm.gypi ('k') | ui/ozone/platform/drm/gpu/client_native_pixmap_vgem.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef UI_OZONE_PLATFORM_DRM_GPU_CLIENT_NATIVE_PIXMAP_VGEM_H_
6 #define UI_OZONE_PLATFORM_DRM_GPU_CLIENT_NATIVE_PIXMAP_VGEM_H_
7
8 #include "base/file_descriptor_posix.h"
9 #include "ui/gfx/geometry/size.h"
10 #include "ui/gfx/native_pixmap_handle_ozone.h"
11 #include "ui/ozone/public/client_native_pixmap.h"
12
13 namespace ui {
14
15 class ClientNativePixmapVgem : public ClientNativePixmap {
16 public:
17 static scoped_ptr<ClientNativePixmap> ImportFromDmabuf(int vgem_fd,
18 int dmabuf_fd,
19 const gfx::Size& size,
20 int stride);
21
22 ~ClientNativePixmapVgem() override;
23
24 // Overridden from ClientNativePixmap.
25 void* Map() override;
26 void Unmap() override;
27 void GetStride(int* stride) const override;
28
29 private:
30 ClientNativePixmapVgem(int vgem_fd,
31 uint32_t vgem_bo_handle,
32 const gfx::Size& size,
33 int stride);
34
35 const int vgem_fd_;
36 const uint32_t vgem_bo_handle_;
37 const gfx::Size size_;
38 const int stride_;
39 void* data_;
40
41 DISALLOW_COPY_AND_ASSIGN(ClientNativePixmapVgem);
42 };
43
44 } // namespace ui
45
46 #endif // UI_OZONE_PLATFORM_DRM_GPU_CLIENT_NATIVE_PIXMAP_VGEM_H_
OLDNEW
« no previous file with comments | « ui/ozone/platform/drm/gbm.gypi ('k') | ui/ozone/platform/drm/gpu/client_native_pixmap_vgem.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698