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

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

Issue 2039813002: Add format modifier IDs for EGL_EXT_image_dma_buf_import extension (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add format modifier IDs for EGL_EXT_image_dma_buf_import extension Created 4 years, 6 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 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 #ifndef UI_OZONE_PLATFORM_DRM_GPU_DRM_THREAD_H_ 5 #ifndef UI_OZONE_PLATFORM_DRM_GPU_DRM_THREAD_H_
6 #define UI_OZONE_PLATFORM_DRM_GPU_DRM_THREAD_H_ 6 #define UI_OZONE_PLATFORM_DRM_GPU_DRM_THREAD_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 55
56 // Must be called on the DRM thread. 56 // Must be called on the DRM thread.
57 void CreateBuffer(gfx::AcceleratedWidget widget, 57 void CreateBuffer(gfx::AcceleratedWidget widget,
58 const gfx::Size& size, 58 const gfx::Size& size,
59 gfx::BufferFormat format, 59 gfx::BufferFormat format,
60 gfx::BufferUsage usage, 60 gfx::BufferUsage usage,
61 scoped_refptr<GbmBuffer>* buffer); 61 scoped_refptr<GbmBuffer>* buffer);
62 void CreateBufferFromFds(const gfx::Size& size, 62 void CreateBufferFromFds(const gfx::Size& size,
63 gfx::BufferFormat format, 63 gfx::BufferFormat format,
64 std::vector<base::ScopedFD>&& fds, 64 std::vector<base::ScopedFD>&& fds,
65 std::vector<int> strides, 65 std::vector<gfx::GbmBufferPlane>&& planes,
Daniele Castagna 2016/06/15 03:50:20 just const ref is fine.
vinceh 2016/06/15 04:35:18 OK. Will fix.
66 std::vector<int> offsets,
67 scoped_refptr<GbmBuffer>* buffer); 66 scoped_refptr<GbmBuffer>* buffer);
68 67
69 void GetScanoutFormats(gfx::AcceleratedWidget widget, 68 void GetScanoutFormats(gfx::AcceleratedWidget widget,
70 std::vector<gfx::BufferFormat>* scanout_formats); 69 std::vector<gfx::BufferFormat>* scanout_formats);
71 void SchedulePageFlip(gfx::AcceleratedWidget widget, 70 void SchedulePageFlip(gfx::AcceleratedWidget widget,
72 const std::vector<OverlayPlane>& planes, 71 const std::vector<OverlayPlane>& planes,
73 const SwapCompletionCallback& callback); 72 const SwapCompletionCallback& callback);
74 void GetVSyncParameters( 73 void GetVSyncParameters(
75 gfx::AcceleratedWidget widget, 74 gfx::AcceleratedWidget widget,
76 const gfx::VSyncProvider::UpdateVSyncCallback& callback); 75 const gfx::VSyncProvider::UpdateVSyncCallback& callback);
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 std::unique_ptr<ScanoutBufferGenerator> buffer_generator_; 123 std::unique_ptr<ScanoutBufferGenerator> buffer_generator_;
125 std::unique_ptr<ScreenManager> screen_manager_; 124 std::unique_ptr<ScreenManager> screen_manager_;
126 std::unique_ptr<DrmGpuDisplayManager> display_manager_; 125 std::unique_ptr<DrmGpuDisplayManager> display_manager_;
127 126
128 DISALLOW_COPY_AND_ASSIGN(DrmThread); 127 DISALLOW_COPY_AND_ASSIGN(DrmThread);
129 }; 128 };
130 129
131 } // namespace ui 130 } // namespace ui
132 131
133 #endif // UI_OZONE_PLATFORM_DRM_GPU_DRM_THREAD_H_ 132 #endif // UI_OZONE_PLATFORM_DRM_GPU_DRM_THREAD_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698