Hi,I'd like to do the Mojification work for /content/browser/device_sensors/ just like what have been done for /content/browser/battery_status.Extract them to /device then we can make /content slimmer.The solution is just similar with battery_status Mojification work.Would you mind to let me know whether the idea is valid? If it's worth a try I'll start to implement. Thanks a lot~BR,Han Leon
--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev...@chromium.org.
For now renderer side has some timer logic to poll the sensor data which is provided via shared memory, if we use DataPipe instead, I'm not sure whether it will bring more data transmission latency or not, so I'm considering to employ Mojo SharedBuffer instead, although I'm not clear with it now.
My draft solution as below, eager to your comments. And, If it is not a good timing to do this work, would you please give some suggestions about some other Mojo work and I'm very happy to contribute. Thanks :)
1st phase:
Just use Mojo service to replace old IPC messages.
Renderer side:
As for DeviceSensorEventPump, keep timer related logic and SharedMemorySeqLockReader related logic, but disconnect it from PlatformEventObserver, instead let it hold a mojo service ptr to do IPC.
Browser side:
To replace the 3 device_XXX_message_filter, define DeviceSensorsService mojo interface and impl it, register the service to the ServiceRegistry of RenderProcessHost.
Re-use current data fetcher.
Move /content/browser/device_sensors to /device/device_sensors.
2nd phase:
Considering to use Mojo SharedBuffer instead of current base::SharedMemoryHandle. Need to clarify its usage and implementation details later.
Hi,
Well my problem is that my android device with arcanoid technology is very complicated... so, somebody know the asterisk technology?? I need some info about this application!
--
Alvaro Navas.
Ingeniero en Conectividad y Redes.
Re-send..
From: Leon [mailto:leon...@intel.com]
Sent: Wednesday, May 13, 2015 3:34 PM
To: mojo...@chromium.org
Cc: chromi...@chromium.org; blun...@chromium.org; Han, Leon
Subject: Re: Intent To Implement: Extract device_sensors from /content into /device via Mojification
For now renderer side has some timer logic to poll the sensor data which is provided via shared memory, if we use DataPipe instead, I'm not sure whether it will bring more data transmission latency or not, so I'm considering to employ Mojo SharedBuffer instead, although I'm not clear with it now.
My draft solution as below, eager to your comments. And, If it is not a good timing to do this work, would you please give some suggestions about some other Mojo work and I'm very happy to contribute. Thanks :)
1st phase:
Just use Mojo service to replace old IPC messages.
Renderer side:
1. As for DeviceSensorEventPump, keep timer related logic and SharedMemorySeqLockReader related logic, but disconnect it from PlatformEventObserver, instead let it hold a mojo service ptr to do IPC.
Browser side:
1. To replace the 3 device_XXX_message_filter, define DeviceSensorsService mojo interface and impl it, register the service to the ServiceRegistry of RenderProcessHost.
2. Re-use current data fetcher.
3. Move /content/browser/device_sensors to /device/device_sensors.
2nd phase:
1. Considering to use Mojo SharedBuffer instead of current base::SharedMemoryHandle. Need to clarify its usage and implementation details later.
Thanks a lot. @Amistry
Sorry to disturb, add device_sensors owners here, could you please help review this intent and draft solution? Thanks all.
@darin, jamesr, timvolodine, hans, leandrogracia