issue #3935 Refactor for cc.Texture2D.defaultPixelFormat

issue #3935 Refactor for cc.Texture2D.defaultPixelFormat