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

Side by Side Diff: ui/ozone/platform/drm/cursor_proxy_mojo.h

Issue 2903353002: Make ozone/drm/mojo more immune to startup races (Closed)
Patch Set: cursor setup independent of evdev / drm startup and timing of PlatformWindow creation. Created 3 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_CURSOR_PROXY_MOJO_H_ 5 #ifndef UI_OZONE_PLATFORM_DRM_CURSOR_PROXY_MOJO_H_
6 #define UI_OZONE_PLATFORM_DRM_CURSOR_PROXY_MOJO_H_ 6 #define UI_OZONE_PLATFORM_DRM_CURSOR_PROXY_MOJO_H_
7 7
8 #include "ui/gfx/native_widget_types.h" 8 #include "ui/gfx/native_widget_types.h"
9 #include "ui/ozone/platform/drm/gpu/inter_thread_messaging_proxy.h" 9 #include "ui/ozone/platform/drm/gpu/inter_thread_messaging_proxy.h"
10 #include "ui/ozone/platform/drm/host/drm_cursor.h" 10 #include "ui/ozone/platform/drm/host/drm_cursor.h"
(...skipping 15 matching lines...) Expand all
26 explicit CursorProxyMojo(service_manager::Connector* connector); 26 explicit CursorProxyMojo(service_manager::Connector* connector);
27 ~CursorProxyMojo() override; 27 ~CursorProxyMojo() override;
28 28
29 private: 29 private:
30 // DrmCursorProxy. 30 // DrmCursorProxy.
31 void CursorSet(gfx::AcceleratedWidget window, 31 void CursorSet(gfx::AcceleratedWidget window,
32 const std::vector<SkBitmap>& bitmaps, 32 const std::vector<SkBitmap>& bitmaps,
33 const gfx::Point& point, 33 const gfx::Point& point,
34 int frame_delay_ms) override; 34 int frame_delay_ms) override;
35 void Move(gfx::AcceleratedWidget window, const gfx::Point& point) override; 35 void Move(gfx::AcceleratedWidget window, const gfx::Point& point) override;
36 void InitializeOnEvdev() override; 36 void InitializeOnEvdevIfNecessary() override;
37 void SendToDelegate(DrmCursorProxy* delegate);
dnicoara 2017/06/05 15:04:43 override
rjkroege 2017/06/05 20:58:27 Done.
37 38
38 std::unique_ptr<service_manager::Connector> connector_; 39 std::unique_ptr<service_manager::Connector> connector_;
39 40
40 // Mojo implementation of the DrmCursorProxy. 41 // Mojo implementation of the DrmCursorProxy.
41 ui::ozone::mojom::DeviceCursorPtr main_cursor_ptr_; 42 ui::ozone::mojom::DeviceCursorPtr main_cursor_ptr_;
42 ui::ozone::mojom::DeviceCursorPtr evdev_cursor_ptr_; 43 ui::ozone::mojom::DeviceCursorPtr evdev_cursor_ptr_;
43 44
44 base::PlatformThreadRef evdev_ref_; 45 base::PlatformThreadRef ui_thread_ref_;
46 DISALLOW_COPY_AND_ASSIGN(CursorProxyMojo);
45 }; 47 };
46 48
47 } // namespace ui 49 } // namespace ui
48 50
49 #endif // UI_OZONE_PLATFORM_DRM_CURSOR_PROXY_MOJO_H_ 51 #endif // UI_OZONE_PLATFORM_DRM_CURSOR_PROXY_MOJO_H_
OLDNEW
« no previous file with comments | « no previous file | ui/ozone/platform/drm/cursor_proxy_mojo.cc » ('j') | ui/ozone/platform/drm/mus_thread_proxy.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698