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

Side by Side Diff: ui/ozone/platform/dri/dri_cursor.h

Issue 762963002: ozone: dri: Cache display bounds in DriCursor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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/dri/dri_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_DRI_DRI_CURSOR_H_ 5 #ifndef UI_OZONE_PLATFORM_DRI_DRI_CURSOR_H_
6 #define UI_OZONE_PLATFORM_DRI_DRI_CURSOR_H_ 6 #define UI_OZONE_PLATFORM_DRI_DRI_CURSOR_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "ui/base/cursor/cursor.h" 9 #include "ui/base/cursor/cursor.h"
10 #include "ui/events/ozone/evdev/cursor_delegate_evdev.h" 10 #include "ui/events/ozone/evdev/cursor_delegate_evdev.h"
11 #include "ui/gfx/geometry/point_f.h"
12 #include "ui/gfx/geometry/rect.h"
11 #include "ui/gfx/native_widget_types.h" 13 #include "ui/gfx/native_widget_types.h"
12 14
13 namespace gfx { 15 namespace gfx {
14 class PointF; 16 class PointF;
15 class Vector2dF; 17 class Vector2dF;
16 class Rect; 18 class Rect;
17 } 19 }
18 20
19 namespace ui { 21 namespace ui {
20 22
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 DriGpuPlatformSupportHost* sender_; // Not owned. 56 DriGpuPlatformSupportHost* sender_; // Not owned.
55 57
56 // The current cursor bitmap. 58 // The current cursor bitmap.
57 scoped_refptr<BitmapCursorOzone> cursor_; 59 scoped_refptr<BitmapCursorOzone> cursor_;
58 60
59 // The window under the cursor. 61 // The window under the cursor.
60 gfx::AcceleratedWidget cursor_window_; 62 gfx::AcceleratedWidget cursor_window_;
61 63
62 // The location of the cursor within the window. 64 // The location of the cursor within the window.
63 gfx::PointF cursor_location_; 65 gfx::PointF cursor_location_;
66
67 // The bounsd of the display under the cursor.
68 gfx::Rect cursor_display_bounds_;
64 }; 69 };
65 70
66 } // namespace ui 71 } // namespace ui
67 72
68 #endif // UI_OZONE_PLATFORM_DRI_DRI_CURSOR_H_ 73 #endif // UI_OZONE_PLATFORM_DRI_DRI_CURSOR_H_
OLDNEW
« no previous file with comments | « no previous file | ui/ozone/platform/dri/dri_cursor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698