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

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

Issue 2110213002: Revert of 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: Created 4 years, 5 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>
11 11
12 #include "base/files/scoped_file.h" 12 #include "base/files/scoped_file.h"
13 #include "base/macros.h" 13 #include "base/macros.h"
14 #include "base/memory/weak_ptr.h" 14 #include "base/memory/weak_ptr.h"
15 #include "base/threading/thread.h" 15 #include "base/threading/thread.h"
16 #include "ui/gfx/native_pixmap_handle_ozone.h"
17 #include "ui/gfx/native_widget_types.h" 16 #include "ui/gfx/native_widget_types.h"
18 #include "ui/gfx/vsync_provider.h" 17 #include "ui/gfx/vsync_provider.h"
19 #include "ui/ozone/common/gpu/ozone_gpu_message_params.h" 18 #include "ui/ozone/common/gpu/ozone_gpu_message_params.h"
20 #include "ui/ozone/public/surface_ozone_egl.h" 19 #include "ui/ozone/public/surface_ozone_egl.h"
21 20
22 namespace base { 21 namespace base {
23 struct FileDescriptor; 22 struct FileDescriptor;
24 } 23 }
25 24
26 namespace gfx { 25 namespace gfx {
(...skipping 30 matching lines...) Expand all
57 56
58 // Must be called on the DRM thread. 57 // Must be called on the DRM thread.
59 void CreateBuffer(gfx::AcceleratedWidget widget, 58 void CreateBuffer(gfx::AcceleratedWidget widget,
60 const gfx::Size& size, 59 const gfx::Size& size,
61 gfx::BufferFormat format, 60 gfx::BufferFormat format,
62 gfx::BufferUsage usage, 61 gfx::BufferUsage usage,
63 scoped_refptr<GbmBuffer>* buffer); 62 scoped_refptr<GbmBuffer>* buffer);
64 void CreateBufferFromFds(const gfx::Size& size, 63 void CreateBufferFromFds(const gfx::Size& size,
65 gfx::BufferFormat format, 64 gfx::BufferFormat format,
66 std::vector<base::ScopedFD>&& fds, 65 std::vector<base::ScopedFD>&& fds,
67 const std::vector<gfx::NativePixmapPlane>& planes, 66 std::vector<int> strides,
67 std::vector<int> offsets,
68 scoped_refptr<GbmBuffer>* buffer); 68 scoped_refptr<GbmBuffer>* buffer);
69 69
70 void GetScanoutFormats(gfx::AcceleratedWidget widget, 70 void GetScanoutFormats(gfx::AcceleratedWidget widget,
71 std::vector<gfx::BufferFormat>* scanout_formats); 71 std::vector<gfx::BufferFormat>* scanout_formats);
72 void SchedulePageFlip(gfx::AcceleratedWidget widget, 72 void SchedulePageFlip(gfx::AcceleratedWidget widget,
73 const std::vector<OverlayPlane>& planes, 73 const std::vector<OverlayPlane>& planes,
74 const SwapCompletionCallback& callback); 74 const SwapCompletionCallback& callback);
75 void GetVSyncParameters( 75 void GetVSyncParameters(
76 gfx::AcceleratedWidget widget, 76 gfx::AcceleratedWidget widget,
77 const gfx::VSyncProvider::UpdateVSyncCallback& callback); 77 const gfx::VSyncProvider::UpdateVSyncCallback& callback);
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 std::unique_ptr<ScanoutBufferGenerator> buffer_generator_; 126 std::unique_ptr<ScanoutBufferGenerator> buffer_generator_;
127 std::unique_ptr<ScreenManager> screen_manager_; 127 std::unique_ptr<ScreenManager> screen_manager_;
128 std::unique_ptr<DrmGpuDisplayManager> display_manager_; 128 std::unique_ptr<DrmGpuDisplayManager> display_manager_;
129 129
130 DISALLOW_COPY_AND_ASSIGN(DrmThread); 130 DISALLOW_COPY_AND_ASSIGN(DrmThread);
131 }; 131 };
132 132
133 } // namespace ui 133 } // namespace ui
134 134
135 #endif // UI_OZONE_PLATFORM_DRM_GPU_DRM_THREAD_H_ 135 #endif // UI_OZONE_PLATFORM_DRM_GPU_DRM_THREAD_H_
OLDNEW
« no previous file with comments | « ui/ozone/platform/drm/client_native_pixmap_factory_gbm.cc ('k') | ui/ozone/platform/drm/gpu/drm_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698