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

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

Issue 1598573002: Propagate supported scanout formats from driver to SurfaceFactoryOzone. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
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 "base/macros.h" 10 #include "base/macros.h"
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 52
53 void Start(); 53 void Start();
54 54
55 // Must be called on the DRM thread. 55 // Must be called on the DRM thread.
56 void CreateBuffer(gfx::AcceleratedWidget widget, 56 void CreateBuffer(gfx::AcceleratedWidget widget,
57 const gfx::Size& size, 57 const gfx::Size& size,
58 gfx::BufferFormat format, 58 gfx::BufferFormat format,
59 gfx::BufferUsage usage, 59 gfx::BufferUsage usage,
60 scoped_refptr<GbmBuffer>* buffer); 60 scoped_refptr<GbmBuffer>* buffer);
61 61
62 void GetScanoutFormats(gfx::AcceleratedWidget widget,
63 std::vector<gfx::BufferFormat>* scanout_formats);
62 void SchedulePageFlip(gfx::AcceleratedWidget widget, 64 void SchedulePageFlip(gfx::AcceleratedWidget widget,
63 const std::vector<OverlayPlane>& planes, 65 const std::vector<OverlayPlane>& planes,
64 const SwapCompletionCallback& callback); 66 const SwapCompletionCallback& callback);
65 void GetVSyncParameters( 67 void GetVSyncParameters(
66 gfx::AcceleratedWidget widget, 68 gfx::AcceleratedWidget widget,
67 const gfx::VSyncProvider::UpdateVSyncCallback& callback); 69 const gfx::VSyncProvider::UpdateVSyncCallback& callback);
68 70
69 void CreateWindow(gfx::AcceleratedWidget widget); 71 void CreateWindow(gfx::AcceleratedWidget widget);
70 void DestroyWindow(gfx::AcceleratedWidget widget); 72 void DestroyWindow(gfx::AcceleratedWidget widget);
71 void SetWindowBounds(gfx::AcceleratedWidget widget, const gfx::Rect& bounds); 73 void SetWindowBounds(gfx::AcceleratedWidget widget, const gfx::Rect& bounds);
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 scoped_ptr<ScanoutBufferGenerator> buffer_generator_; 114 scoped_ptr<ScanoutBufferGenerator> buffer_generator_;
113 scoped_ptr<ScreenManager> screen_manager_; 115 scoped_ptr<ScreenManager> screen_manager_;
114 scoped_ptr<DrmGpuDisplayManager> display_manager_; 116 scoped_ptr<DrmGpuDisplayManager> display_manager_;
115 117
116 DISALLOW_COPY_AND_ASSIGN(DrmThread); 118 DISALLOW_COPY_AND_ASSIGN(DrmThread);
117 }; 119 };
118 120
119 } // namespace ui 121 } // namespace ui
120 122
121 #endif // UI_OZONE_PLATFORM_DRM_GPU_DRM_THREAD_H_ 123 #endif // UI_OZONE_PLATFORM_DRM_GPU_DRM_THREAD_H_
OLDNEW
« no previous file with comments | « ui/ozone/platform/drm/gpu/drm_gpu_display_manager.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