Home | History | Annotate | Download | only in device_sensors

Lines Matching refs:buffer

12 static bool SetMotionBuffer(content::DeviceMotionHardwareBuffer* buffer,
14 if (!buffer)
16 buffer->seqlock.WriteBegin();
17 buffer->data.allAvailableSensorsAreActive = enabled;
18 buffer->seqlock.WriteEnd();
23 content::DeviceOrientationHardwareBuffer* buffer, bool enabled) {
24 if (!buffer)
26 buffer->seqlock.WriteBegin();
27 buffer->data.allAvailableSensorsAreActive = enabled;
28 buffer->seqlock.WriteEnd();
32 static bool SetLightBuffer(content::DeviceLightHardwareBuffer* buffer,
34 if (!buffer)
36 buffer->seqlock.WriteBegin();
37 buffer->data.value = lux;
38 buffer->seqlock.WriteEnd();
53 bool DataFetcherSharedMemory::Start(ConsumerType consumer_type, void* buffer) {
54 DCHECK(buffer);
58 motion_buffer_ = static_cast<DeviceMotionHardwareBuffer*>(buffer);
63 static_cast<DeviceOrientationHardwareBuffer*>(buffer);
68 light_buffer_ = static_cast<DeviceLightHardwareBuffer*>(buffer);