Fix aliasing error in skia/legacy

Change-Id: I96fcf769638dd9d8ccb5c0baa095f80800686a84