v3.20.2
Net Income (Loss) Per Share - Schedule of Basic and Diluted Net Loss Per Share Attributable to Common Stockholders (Detail) - USD ($)
$ / shares in Units, shares in Thousands, $ in Thousands
3 Months Ended 6 Months Ended
Jun. 30, 2020
Jun. 30, 2019
Jun. 30, 2020
Jun. 30, 2019
Numerator:        
Net income (loss) $ 40,766 $ (11,079) $ 88,997 $ (12,624)
Denominator:        
Weighted-average shares outstanding - basic (in shares) 191,319 186,678 190,731 184,419
Weighted-average shares outstanding - diluted (in shares) 201,453 186,678 200,843 184,419
Net income (loss) per share - basic (in dollars per share) $ 0.21 $ (0.06) $ 0.47 $ (0.07)
Net income (loss) per share - diluted (in dollars per share) $ 0.20 $ (0.06) $ 0.44 $ (0.07)
Common stock options        
Denominator:        
Potentially dilutive securities (in shares) 538 0 647 0
Restricted stock units (RSUs)        
Denominator:        
Potentially dilutive securities (in shares) 3,613 0 3,791 0
ESPP obligations        
Denominator:        
Potentially dilutive securities (in shares) 11 0 0 0
2022 Notes | Convertible senior notes        
Denominator:        
Potentially dilutive securities (in shares) 3,500 0 3,370 0
Potentially dilutive securities (in shares) 10 0 44 0
2022 Warrants | Warrants        
Denominator:        
Potentially dilutive securities (in shares) 2,462 0 2,260 0