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

Unified Diff: ui/base/cursor/cursor_loader_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/base/BUILD.gn ('k') | ui/base/cursor/ozone/bitmap_cursor_factory_ozone.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/cursor/cursor_loader_ozone.cc
diff --git a/ui/base/cursor/cursor_loader_ozone.cc b/ui/base/cursor/cursor_loader_ozone.cc
index 08b831e6d959712e91f4fe22475189423156d8fc..1d74eec7345c738bf3ad0b7a3d36549fe3c2300f 100644
--- a/ui/base/cursor/cursor_loader_ozone.cc
+++ b/ui/base/cursor/cursor_loader_ozone.cc
@@ -24,8 +24,8 @@ void CursorLoaderOzone::LoadImageCursor(int id,
GetImageCursorBitmap(resource_id, scale(), rotation(), &hotspot, &bitmap);
- cursors_[id] =
- CursorFactoryOzone::GetInstance()->CreateImageCursor(bitmap, hotspot);
+ cursors_[id] = CursorFactoryOzone::GetInstance()->CreateImageCursor(
+ bitmap, hotspot, scale());
}
void CursorLoaderOzone::LoadAnimatedCursor(int id,
@@ -39,7 +39,7 @@ void CursorLoaderOzone::LoadAnimatedCursor(int id,
resource_id, scale(), rotation(), &hotspot, &bitmaps);
cursors_[id] = CursorFactoryOzone::GetInstance()->CreateAnimatedCursor(
- bitmaps, hotspot, frame_delay_ms);
+ bitmaps, hotspot, frame_delay_ms, scale());
}
void CursorLoaderOzone::UnloadAll() {
« no previous file with comments | « ui/base/BUILD.gn ('k') | ui/base/cursor/ozone/bitmap_cursor_factory_ozone.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698