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

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

Issue 2156093004: Use mojo for cursor control in ozone drm (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more proof-reading 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_PROXY_H_ 5 #ifndef UI_OZONE_PLATFORM_DRM_GPU_DRM_THREAD_PROXY_H_
6 #define UI_OZONE_PLATFORM_DRM_GPU_DRM_THREAD_PROXY_H_ 6 #define UI_OZONE_PLATFORM_DRM_GPU_DRM_THREAD_PROXY_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "base/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
12 #include "ui/ozone/platform/drm/gpu/drm_thread.h" 12 #include "ui/ozone/platform/drm/gpu/drm_thread.h"
13 #include "ui/ozone/public/interfaces/cursor.mojom.h"
14
15 namespace shell {
16 class Connection;
17 }
13 18
14 namespace ui { 19 namespace ui {
15 20
16 class DrmWindowProxy; 21 class DrmWindowProxy;
17 class InterThreadMessagingProxy; 22 class InterThreadMessagingProxy;
18 23
19 // Mediates the communication between GPU main/IO threads and the DRM thread. It 24 // Mediates the communication between GPU main/IO threads and the DRM thread. It
20 // serves proxy objects that are safe to call on the GPU threads. The proxy 25 // serves proxy objects that are safe to call on the GPU threads. The proxy
21 // objects then deal with safely posting the messages to the DRM thread. 26 // objects then deal with safely posting the messages to the DRM thread.
22 class DrmThreadProxy { 27 class DrmThreadProxy {
(...skipping 13 matching lines...) Expand all
36 41
37 scoped_refptr<GbmBuffer> CreateBufferFromFds( 42 scoped_refptr<GbmBuffer> CreateBufferFromFds(
38 const gfx::Size& size, 43 const gfx::Size& size,
39 gfx::BufferFormat format, 44 gfx::BufferFormat format,
40 std::vector<base::ScopedFD>&& fds, 45 std::vector<base::ScopedFD>&& fds,
41 const std::vector<gfx::NativePixmapPlane>& planes); 46 const std::vector<gfx::NativePixmapPlane>& planes);
42 47
43 void GetScanoutFormats(gfx::AcceleratedWidget widget, 48 void GetScanoutFormats(gfx::AcceleratedWidget widget,
44 std::vector<gfx::BufferFormat>* scanout_formats); 49 std::vector<gfx::BufferFormat>* scanout_formats);
45 50
51 void AddBinding(shell::Connection* connection,
52 ozone::mojom::CursorRequest request);
53
46 private: 54 private:
47 DrmThread drm_thread_; 55 DrmThread drm_thread_;
48 56
49 DISALLOW_COPY_AND_ASSIGN(DrmThreadProxy); 57 DISALLOW_COPY_AND_ASSIGN(DrmThreadProxy);
50 }; 58 };
51 59
52 } // namespace ui 60 } // namespace ui
53 61
54 #endif // UI_OZONE_PLATFORM_DRM_GPU_DRM_THREAD_PROXY_H_ 62 #endif // UI_OZONE_PLATFORM_DRM_GPU_DRM_THREAD_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698