Contrary to some speculation, Chris Colfer did not voice Mazie in the 2010 live-action/CGI film Marmaduke. The role of Mazie, the Australian Shepherd love interest of the titular Great Dane, was performed by Emma Roberts.
Colfer’s rising fame in 2010 (Glee debuted in 2009) and his distinctive voice may have led to assumptions he was in more animated projects than he was. Roberts, meanwhile, was transitioning from Nancy Drew (2007) and Hotel for Dogs (2009) into broader roles—Marmaduke fit that trajectory.
Bottom line: Mazie = Emma Roberts. No Colfer cameo here.