Notifying all processes of state change?

瀏覽次數:137 次
跳到第一則未讀訊息

Chris Davis (EDGE)

未讀,
2021年10月12日 晚上7:05:242021/10/12
收件者:chromi...@chromium.org

What is the preferred way to notify all chromium processes (gpu, utility, renderer, etc) of state change?  I would like to avoid wiring up multiple mojo interfaces to broadcast state change from the browser process.  I have a setting I need to communicate to all process types and want to avoid restarting the browser.

 

Thanks,

Chris

Will Harris

未讀,
2021年10月13日 下午1:40:042021/10/13
收件者:chrd...@microsoft.com、chromi...@chromium.org
What kind of state change are you trying to notify these processes of?

Will

--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google Groups "Chromium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/MW2PR00MB0393D7E75593B9993794D92FD1B69%40MW2PR00MB0393.namprd00.prod.outlook.com.

Chris Davis (EDGE)

未讀,
2021年10月14日 凌晨1:52:442021/10/14
收件者:w...@chromium.org、chromi...@chromium.org

Just a simple Boolean state that each process needs to be updated with.

Justin Schuh

未讀,
2021年10月15日 中午12:35:382021/10/15
收件者:chrd...@microsoft.com、w...@chromium.org、chromi...@chromium.org
I think Will was asking for an example of a specific state change event that all processes should be notified of. I know I'm struggling to think of a case where e.g. a renderer and a utility process should ever be notified of the same event.


Chris Davis (EDGE)

未讀,
2021年10月15日 中午12:49:562021/10/15
收件者:jsc...@chromium.org、w...@chromium.org、chromi...@chromium.org

In my specific case for Edge we have a performance setting which turns off high resolution timers.  We currently communicate this to renderers via the renderer preferences but I would also want this updated in utility processes and the gpu process.

Bruce Dawson

未讀,
2021年10月15日 下午1:21:242021/10/15
收件者:Chromium-dev、chrd...@microsoft.com、w...@chromium.org、chromi...@chromium.org、Justin Schuh
Currently all processes listen for power notifications and disable high-resolution timers when switching to battery power. Are you wiring up a user-visible setting to control this?

Chris Davis (EDGE)

未讀,
2021年10月15日 下午1:32:132021/10/15
收件者:Bruce Dawson、chromi...@chromium.org、w...@chromium.org、chromi...@chromium.org、jsc...@chromium.org

Yes, this would be a user setting.

dan...@chromium.org

未讀,
2021年10月15日 下午1:47:452021/10/15
收件者:Chris Davis (EDGE)、Bruce Dawson、chromi...@chromium.org、w...@chromium.org、jsc...@chromium.org

Dave Tapuska

未讀,
2021年10月19日 下午2:15:082021/10/19
收件者:danakj chromium、Chris Davis (EDGE)、Bruce Dawson、chromi...@chromium.org、w...@chromium.org、jsc...@chromium.org
回覆所有人
回覆作者
轉寄
0 則新訊息