Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(178)

Issue 2173513002: Cleanup of code that converts from GPU-backed resources to SkImageInfo (Closed)

Created:
4 years, 5 months ago by Brian Osman
Modified:
4 years, 5 months ago
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@fix-sync
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Cleanup of code that converts from GPU-backed resources to SkImageInfo Functions like GrMakeInfoFromTexture encouraged incorrect code to be written. Similarly, the ability to construct an info from any GrSurface was never going to be correct. Luckily, the only client of that had all of the correct parameters much higher on the stack (and dictated or replaced most of the properties of the returned info anyway). With this, I can finally remove the color space as an output of the pixel config -> color type conversion, which was never going to be correct. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2173513002 Committed: https://skia.googlesource.com/skia/+/396fcdba14a0101ed43dcc3863585bf50c4ed6cc

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -64 lines) Patch
M include/gpu/GrSurface.h View 1 chunk +0 lines, -1 line 0 comments Download
M include/gpu/SkGr.h View 1 chunk +0 lines, -5 lines 0 comments Download
M src/gpu/GrContext.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M src/gpu/GrSurface.cpp View 1 chunk +0 lines, -9 lines 0 comments Download
M src/gpu/GrSurfacePriv.h View 1 chunk +0 lines, -5 lines 0 comments Download
M src/gpu/SkGpuDevice.h View 2 chunks +8 lines, -4 lines 0 comments Download
M src/gpu/SkGr.cpp View 4 chunks +1 line, -24 lines 0 comments Download
M src/gpu/SkGrPriv.h View 1 chunk +1 line, -1 line 0 comments Download
M src/image/SkImage_Gpu.h View 1 chunk +1 line, -4 lines 0 comments Download
M src/image/SkImage_Gpu.cpp View 2 chunks +10 lines, -9 lines 2 comments Download

Depends on Patchset:

Messages

Total messages: 12 (8 generated)
Brian Osman
https://codereview.chromium.org/2173513002/diff/1/src/image/SkImage_Gpu.cpp File src/image/SkImage_Gpu.cpp (right): https://codereview.chromium.org/2173513002/diff/1/src/image/SkImage_Gpu.cpp#newcode51 src/image/SkImage_Gpu.cpp:51: return SkImageInfo::Make(fTexture->width(), fTexture->height(), ct, fAlphaType, fColorSpace); This is now ...
4 years, 5 months ago (2016-07-21 20:57:08 UTC) #3
bsalomon
nice! lgtm
4 years, 5 months ago (2016-07-21 21:01:35 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2173513002/1
4 years, 5 months ago (2016-07-22 13:25:19 UTC) #10
commit-bot: I haz the power
4 years, 5 months ago (2016-07-22 13:26:14 UTC) #12
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://skia.googlesource.com/skia/+/396fcdba14a0101ed43dcc3863585bf50c4ed6cc

Powered by Google App Engine
This is Rietveld 408576698