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

Unified Diff: ui/ozone/platform/x11/x11_cursor_factory_ozone.cc

Issue 2798883003: [ozone,views-mus] Build CursorDataFactoryOzone. (Closed)
Patch Set: sadrul comments Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/ozone/platform/x11/x11_cursor_factory_ozone.h ('k') | ui/ozone/public/cursor_factory_ozone.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/platform/x11/x11_cursor_factory_ozone.cc
diff --git a/ui/ozone/platform/x11/x11_cursor_factory_ozone.cc b/ui/ozone/platform/x11/x11_cursor_factory_ozone.cc
index 50df6919fb43c577802637d692c2d490b4c10041..97106f1c9551bed5518cf3004a357d07fd2c564d 100644
--- a/ui/ozone/platform/x11/x11_cursor_factory_ozone.cc
+++ b/ui/ozone/platform/x11/x11_cursor_factory_ozone.cc
@@ -43,7 +43,8 @@ PlatformCursor X11CursorFactoryOzone::GetDefaultCursor(int type) {
PlatformCursor X11CursorFactoryOzone::CreateImageCursor(
const SkBitmap& bitmap,
- const gfx::Point& hotspot) {
+ const gfx::Point& hotspot,
+ float bitmap_dpi) {
// There is a problem with custom cursors that have no custom data. The
// resulting SkBitmap is empty and X crashes when creating a zero size cursor
// image. Return invisible cursor here instead.
@@ -59,7 +60,8 @@ PlatformCursor X11CursorFactoryOzone::CreateImageCursor(
PlatformCursor X11CursorFactoryOzone::CreateAnimatedCursor(
const std::vector<SkBitmap>& bitmaps,
const gfx::Point& hotspot,
- int frame_delay_ms) {
+ int frame_delay_ms,
+ float bitmap_dpi) {
X11CursorOzone* cursor = new X11CursorOzone(bitmaps, hotspot, frame_delay_ms);
cursor->AddRef();
return ToPlatformCursor(cursor);
« no previous file with comments | « ui/ozone/platform/x11/x11_cursor_factory_ozone.h ('k') | ui/ozone/public/cursor_factory_ozone.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698