HONG KONG—Tencent Holdings Ltd. said it had bought all of the shares in U.S. online-game company Riot Games it didn’t already own, in a deal that gives the Chinese Internet giant full control of the developer of the popular “League of Legends.”

Before the deal, Tencent owned a 93% stake in Riot.

Financial terms of the transaction weren’t...