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

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

Issue 2886503002: Convert additional ozone/drm callbacks to OnceCallback (Closed)
Patch Set: fixed nit Created 3 years, 7 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 | « no previous file | ui/ozone/platform/drm/gpu/drm_thread.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 const gfx::Size& size, 68 const gfx::Size& size,
69 gfx::BufferFormat format, 69 gfx::BufferFormat format,
70 std::vector<base::ScopedFD>&& fds, 70 std::vector<base::ScopedFD>&& fds,
71 const std::vector<gfx::NativePixmapPlane>& planes, 71 const std::vector<gfx::NativePixmapPlane>& planes,
72 scoped_refptr<GbmBuffer>* buffer); 72 scoped_refptr<GbmBuffer>* buffer);
73 73
74 void GetScanoutFormats(gfx::AcceleratedWidget widget, 74 void GetScanoutFormats(gfx::AcceleratedWidget widget,
75 std::vector<gfx::BufferFormat>* scanout_formats); 75 std::vector<gfx::BufferFormat>* scanout_formats);
76 void SchedulePageFlip(gfx::AcceleratedWidget widget, 76 void SchedulePageFlip(gfx::AcceleratedWidget widget,
77 const std::vector<OverlayPlane>& planes, 77 const std::vector<OverlayPlane>& planes,
78 const SwapCompletionCallback& callback); 78 SwapCompletionOnceCallback callback);
79 void GetVSyncParameters( 79 void GetVSyncParameters(
80 gfx::AcceleratedWidget widget, 80 gfx::AcceleratedWidget widget,
81 const gfx::VSyncProvider::UpdateVSyncCallback& callback); 81 const gfx::VSyncProvider::UpdateVSyncCallback& callback);
82 82
83 void CreateWindow(gfx::AcceleratedWidget widget); 83 void CreateWindow(gfx::AcceleratedWidget widget);
84 void DestroyWindow(gfx::AcceleratedWidget widget); 84 void DestroyWindow(gfx::AcceleratedWidget widget);
85 void SetWindowBounds(gfx::AcceleratedWidget widget, const gfx::Rect& bounds); 85 void SetWindowBounds(gfx::AcceleratedWidget widget, const gfx::Rect& bounds);
86 void SetCursor(const gfx::AcceleratedWidget& widget, 86 void SetCursor(const gfx::AcceleratedWidget& widget,
87 const std::vector<SkBitmap>& bitmaps, 87 const std::vector<SkBitmap>& bitmaps,
88 const gfx::Point& location, 88 const gfx::Point& location,
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 // The mojo implementation requires a BindingSet because the DrmThread serves 136 // The mojo implementation requires a BindingSet because the DrmThread serves
137 // requests from two different client threads. 137 // requests from two different client threads.
138 mojo::BindingSet<ozone::mojom::DeviceCursor> bindings_; 138 mojo::BindingSet<ozone::mojom::DeviceCursor> bindings_;
139 139
140 DISALLOW_COPY_AND_ASSIGN(DrmThread); 140 DISALLOW_COPY_AND_ASSIGN(DrmThread);
141 }; 141 };
142 142
143 } // namespace ui 143 } // namespace ui
144 144
145 #endif // UI_OZONE_PLATFORM_DRM_GPU_DRM_THREAD_H_ 145 #endif // UI_OZONE_PLATFORM_DRM_GPU_DRM_THREAD_H_
OLDNEW
« no previous file with comments | « no previous file | ui/ozone/platform/drm/gpu/drm_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698