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

Issue 1830303002: Require sRGB write control for sRGB support. Add flag to GrPaint to suppress linear -> sRGB convers… (Closed)

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

Description

Require sRGB write control for sRGB support. Add flag to GrPaint to suppress linear -> sRGB conversion on write. Use that to fix YUV conversion, which directly produces sRGB data. (Technically, it produces data in whatever the color space of the JPEG might be). BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1830303002 Committed: https://skia.googlesource.com/skia/+/64d094d7756534a9b9b0997aab225d9ceba098b6

Patch Set 1 #

Total comments: 3

Patch Set 2 : Added comment to srgbSupport() #

Unified diffs Side-by-side diffs Delta from patch set Stats (+56 lines, -28 lines) Patch
M include/gpu/GrCaps.h View 1 1 chunk +7 lines, -0 lines 0 comments Download
M include/gpu/GrPaint.h View 3 chunks +9 lines, -0 lines 0 comments Download
M src/gpu/GrPaint.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M src/gpu/GrPipeline.h View 2 chunks +6 lines, -2 lines 0 comments Download
M src/gpu/GrPipeline.cpp View 1 chunk +3 lines, -0 lines 0 comments Download
M src/gpu/GrPipelineBuilder.h View 1 chunk +8 lines, -1 line 0 comments Download
M src/gpu/GrPipelineBuilder.cpp View 1 chunk +2 lines, -0 lines 0 comments Download
M src/gpu/GrYUVProvider.cpp View 1 chunk +3 lines, -0 lines 0 comments Download
M src/gpu/gl/GrGLCaps.h View 2 chunks +0 lines, -8 lines 0 comments Download
M src/gpu/gl/GrGLCaps.cpp View 4 chunks +3 lines, -5 lines 0 comments Download
M src/gpu/gl/GrGLGpu.h View 1 chunk +1 line, -1 line 0 comments Download
M src/gpu/gl/GrGLGpu.cpp View 3 chunks +13 lines, -11 lines 0 comments Download

Messages

Total messages: 13 (7 generated)
Brian Osman
https://codereview.chromium.org/1830303002/diff/1/src/gpu/gl/GrGLGpu.cpp File src/gpu/gl/GrGLGpu.cpp (right): https://codereview.chromium.org/1830303002/diff/1/src/gpu/gl/GrGLGpu.cpp#newcode2860 src/gpu/gl/GrGLGpu.cpp:2860: if (this->glCaps().srgbSupport()) { Easy-to-miss: Had to promote this code ...
4 years, 9 months ago (2016-03-24 18:39:17 UTC) #3
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1830303002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1830303002/1
4 years, 9 months ago (2016-03-24 18:39:33 UTC) #5
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-03-24 18:55:23 UTC) #7
bsalomon
lgtm https://codereview.chromium.org/1830303002/diff/1/src/gpu/gl/GrGLCaps.h File src/gpu/gl/GrGLCaps.h (left): https://codereview.chromium.org/1830303002/diff/1/src/gpu/gl/GrGLCaps.h#oldcode331 src/gpu/gl/GrGLCaps.h:331: bool srgbWriteControl() const { return fSRGBWriteControl; } Perhaps ...
4 years, 9 months ago (2016-03-25 01:29:54 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1830303002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1830303002/20001
4 years, 9 months ago (2016-03-25 12:48:23 UTC) #11
commit-bot: I haz the power
4 years, 9 months ago (2016-03-25 13:02:03 UTC) #13
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://skia.googlesource.com/skia/+/64d094d7756534a9b9b0997aab225d9ceba098b6

Powered by Google App Engine
This is Rietveld 408576698