Make gl_pi_cr exception-safe am: 3dfe34c7e0 am: b1d4a0d26b
am: 207e36f6b3

Change-Id: I35691d121a9c9a08f11b7bdc14f8049634f294ba