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

Side by Side Diff: ui/ozone/platform/drm/host/drm_cursor.h

Issue 1024083002: [Ozone-Drm] Notify cursor of channel established last (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 5 years, 9 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/host/drm_cursor.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_HOST_DRM_CURSOR_H_ 5 #ifndef UI_OZONE_PLATFORM_DRM_HOST_DRM_CURSOR_H_
6 #define UI_OZONE_PLATFORM_DRM_HOST_DRM_CURSOR_H_ 6 #define UI_OZONE_PLATFORM_DRM_HOST_DRM_CURSOR_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 11 matching lines...) Expand all
22 class Rect; 22 class Rect;
23 } 23 }
24 24
25 namespace ui { 25 namespace ui {
26 26
27 class BitmapCursorOzone; 27 class BitmapCursorOzone;
28 class BitmapCursorFactoryOzone; 28 class BitmapCursorFactoryOzone;
29 class DrmGpuPlatformSupportHost; 29 class DrmGpuPlatformSupportHost;
30 class DrmWindowHostManager; 30 class DrmWindowHostManager;
31 31
32 class DrmCursor : public CursorDelegateEvdev, public GpuPlatformSupportHost { 32 class DrmCursor : public CursorDelegateEvdev, public GpuPlatformSupportHost {
spang 2015/03/20 19:44:11 remove the "GpuPlatformSupportHost"
33 public: 33 public:
34 explicit DrmCursor(DrmWindowHostManager* window_manager, 34 explicit DrmCursor(DrmWindowHostManager* window_manager);
35 DrmGpuPlatformSupportHost* sender);
36 ~DrmCursor() override; 35 ~DrmCursor() override;
37 36
38 void Init();
39
40 // Change the cursor over the specifed window. 37 // Change the cursor over the specifed window.
41 void SetCursor(gfx::AcceleratedWidget window, PlatformCursor platform_cursor); 38 void SetCursor(gfx::AcceleratedWidget window, PlatformCursor platform_cursor);
42 39
43 // Handle window lifecycle. 40 // Handle window lifecycle.
44 void OnWindowAdded(gfx::AcceleratedWidget window, 41 void OnWindowAdded(gfx::AcceleratedWidget window,
45 const gfx::Rect& bounds_in_screen, 42 const gfx::Rect& bounds_in_screen,
46 const gfx::Rect& cursor_confined_bounds); 43 const gfx::Rect& cursor_confined_bounds);
47 void OnWindowRemoved(gfx::AcceleratedWidget window); 44 void OnWindowRemoved(gfx::AcceleratedWidget window);
48 45
49 // Handle window bounds changes. 46 // Handle window bounds changes.
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 gfx::Point GetBitmapLocationLocked(); 80 gfx::Point GetBitmapLocationLocked();
84 81
85 // IPC-related functions. 82 // IPC-related functions.
86 bool IsConnectedLocked(); 83 bool IsConnectedLocked();
87 void SendCursorShowLocked(); 84 void SendCursorShowLocked();
88 void SendCursorHideLocked(); 85 void SendCursorHideLocked();
89 void SendCursorMoveLocked(); 86 void SendCursorMoveLocked();
90 void SendLocked(IPC::Message* message); 87 void SendLocked(IPC::Message* message);
91 88
92 DrmWindowHostManager* window_manager_; // Not owned. 89 DrmWindowHostManager* window_manager_; // Not owned.
93 DrmGpuPlatformSupportHost* gpu_platform_support_host_; // Not owned.
94 90
95 // Task runner for main thread. 91 // Task runner for main thread.
96 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner_; 92 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner_;
97 93
98 struct CursorState { 94 struct CursorState {
99 CursorState(); 95 CursorState();
100 ~CursorState(); 96 ~CursorState();
101 97
102 // The current cursor bitmap (immutable). 98 // The current cursor bitmap (immutable).
103 scoped_refptr<BitmapCursorOzone> bitmap; 99 scoped_refptr<BitmapCursorOzone> bitmap;
(...skipping 19 matching lines...) Expand all
123 // The mutex synchronizing this object. 119 // The mutex synchronizing this object.
124 base::Lock lock; 120 base::Lock lock;
125 }; 121 };
126 122
127 CursorState state_; 123 CursorState state_;
128 }; 124 };
129 125
130 } // namespace ui 126 } // namespace ui
131 127
132 #endif // UI_OZONE_PLATFORM_DRM_HOST_DRM_CURSOR_H_ 128 #endif // UI_OZONE_PLATFORM_DRM_HOST_DRM_CURSOR_H_
OLDNEW
« no previous file with comments | « no previous file | ui/ozone/platform/drm/host/drm_cursor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698