 Chromium Code Reviews
 Chromium Code Reviews Issue 
            2916823002:
    Move Mus into chrome's process when running with --mus.
    
  
    Issue 
            2916823002:
    Move Mus into chrome's process when running with --mus. 
  | DescriptionMove Mus into browser process when running with --mus.
Moves Mus into browser process when running Mustash (chrome --mus).
Window Server is running on its own thread with ThreadPriority::DISPLAY when
running in browser process.
For now both WS and GPU are moved. Once WS/GPU split if finished, GPU will need
to be moved into its separate process.
A lot of this CL is fixing up various singletons to work when Mus is running
in-process. For example, CursorFactoryOzone and InputDeviceManage are made
thread-local instead of global singletons, because both Mus and ash/chrome
need an instance.
Another significant aspect of this CL is making cursors work when Mus is
running in-process. Cursor manipulation requires loading resources from a
ResourceBundle, which can only happen on the browser thread. As such, Mus
creates ui::ImageCursors objects for its displays, but the ownership is
then passed to the browser thread, and all manipulation of these objects
is subsequently also done on the browser thread via Mus posting tasks.
BUG=722527
   Patch Set 1 #Patch Set 2 : Some comments and cleanup. #Patch Set 3 : Addressing most feedback, making this work on device. #
      Total comments: 13
      
     Patch Set 4 : Thread-safety #Patch Set 5 : Comments, cleanup #Patch Set 6 : More cleanup and fixing WS tests. #Patch Set 7 : Rebase #Patch Set 8 : Missed ifdef #Patch Set 9 : More ifdefs #Patch Set 10 : Undo Screen TLS change, don't use Screen::GetScreen() in Mus. #
      Total comments: 40
      
     Patch Set 11 : Addressing feedback, fixing the cursor issue, rebase. #Patch Set 12 : Some comments #Patch Set 13 : Multi-display support. #Patch Set 14 : Rebase on top of https://codereview.chromium.org/2978833002/ #Patch Set 15 : Fix Android build #Patch Set 16 : Merge https://codereview.chromium.org/2976923002 in for now. #Patch Set 17 : Missing include for Android, Windows #Patch Set 18 : Fixing non-ozone CrOS build #Patch Set 19 : Turning PlatformEventSource into a thread-local singleton #Patch Set 20 : Removing debug include. #Depends on Patchset: Messages
    Total messages: 94 (58 generated)
     |