DO NOT MERGE Fix extra texture creation in GrResourceProvider::createTexture() with SRGB data.
We would make a temporary surface context around a scratch texture with
a SRGB color space and then attempt writePixels with a src SkImageInfo
with no color space. Then we'd fall back to creating a texture with
initial data.
Now we will make the src SkImageInfo have a SRGB color space and then
assume success.
Bug: 78866720
Test: Manual with adb shell dumpsys gfxinfo PACKAGE_NAME
Conflicts:
- src/gpu/GrResourceProvider.cpp
Change-Id: I541a3b73c72f610533cfbc6892b2782c90e5121d
1 file changed