The slump in computers and handheld devices comes as the world’s biggest market for smartphones, China, is sliding into a deflationary environment that might worsen.