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

Unified Diff: ui/base/cursor/cursor_loader_ozone.h

Issue 2978833002: Making CursorFactoryOzone thread-local (Closed)
Patch Set: Created 3 years, 5 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 | « no previous file | ui/base/cursor/cursor_loader_ozone.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/cursor/cursor_loader_ozone.h
diff --git a/ui/base/cursor/cursor_loader_ozone.h b/ui/base/cursor/cursor_loader_ozone.h
index 00a23283d5855bd4d3ae36d9d716a02693d7eb75..acb95717bd5a040a54149a6d17706185d297274b 100644
--- a/ui/base/cursor/cursor_loader_ozone.h
+++ b/ui/base/cursor/cursor_loader_ozone.h
@@ -13,8 +13,12 @@
namespace ui {
+class CursorFactoryOzone;
+
class UI_BASE_EXPORT CursorLoaderOzone : public CursorLoader {
public:
+ // CursorLoaderOzone will use CursorFactoryOzone corresponding to the thread
+ // it was constructed on.
CursorLoaderOzone();
~CursorLoaderOzone() override;
@@ -33,6 +37,7 @@ class UI_BASE_EXPORT CursorLoaderOzone : public CursorLoader {
// Pointers are owned by ResourceBundle and must not be freed here.
typedef std::map<CursorType, PlatformCursor> ImageCursorMap;
ImageCursorMap cursors_;
+ CursorFactoryOzone* factory_ = nullptr;
DISALLOW_COPY_AND_ASSIGN(CursorLoaderOzone);
};
« no previous file with comments | « no previous file | ui/base/cursor/cursor_loader_ozone.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698