[M63 cherrypick] Do not always allocate temp space in GrGLGpu::uploadTexData

The always allocate behavior (which is being changed here) was introduced in:

https://codereview.chromium.org/1249543003/ (Creating functions for uploading a mipmapped texture)

I have also created skbug.com/7258 (Improve GrGLGpu::uploadTexData memory behavior) to drive future improvments.

No-Tree-Checks: true
No-Try: true
No-Presubmit: true
Bug: 780766
Change-Id: I201f4f9117fb09eb235bbf41ffd57ac42badba67
Reviewed-on: https://skia-review.googlesource.com/70101
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
1 file changed