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

Issue 2270823002: Some tests around surface creation and snapshotting with color space (Closed)

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

Description

Some tests around surface creation and snapshotting with color space Verify the rules that we're converging on for surfaces: - For 8888, we only support sRGB-like gamma, or no color space at all. - For F16, we require a color space, with linear gamma. - For all other formats, we do not support color spaces. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2270823002 Committed: https://skia.googlesource.com/skia/+/0e22eb8e6efc7d7ab7a601ba555947916d139906

Patch Set 1 #

Total comments: 18

Patch Set 2 : Add GPU tests, make them pass. Require 1.0 gamma for F16. Other fixes. #

Patch Set 3 : Test wrapped backend textures, too. Make those tests pass. Fix problems when sRGB support is missin… #

Total comments: 1

Patch Set 4 : Always use linear-sRGB for F16 in tools #

Patch Set 5 : Move checks around #

Patch Set 6 : Fix ANGLE (no F16 support) #

Patch Set 7 : Centralize checking logic #

Patch Set 8 : Fix gm errors. Can't propagate color space blindly anymore. #

Patch Set 9 : Rebase #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+196 lines, -14 lines) Patch
M bench/nanobench.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M dm/DM.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M gm/surface.cpp View 1 2 3 4 5 6 7 1 chunk +1 line, -2 lines 0 comments Download
M gm/textblobgeometrychange.cpp View 1 2 3 4 5 6 7 1 chunk +1 line, -2 lines 0 comments Download
M samplecode/SampleApp.cpp View 1 2 3 1 chunk +5 lines, -2 lines 0 comments Download
M src/gpu/GrDrawingManager.cpp View 1 2 3 4 5 6 2 chunks +7 lines, -0 lines 0 comments Download
M src/image/SkSurface_Gpu.h View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
M src/image/SkSurface_Gpu.cpp View 1 2 3 4 5 6 4 chunks +44 lines, -0 lines 0 comments Download
M src/image/SkSurface_Raster.cpp View 1 1 chunk +13 lines, -0 lines 0 comments Download
M tests/SurfaceTest.cpp View 1 2 3 4 5 3 chunks +104 lines, -0 lines 1 comment Download
M tests/TestConfigParsing.cpp View 1 2 3 1 chunk +5 lines, -1 line 0 comments Download
M tools/flags/SkCommonFlagsConfig.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M tools/skiaserve/Request.cpp View 1 2 3 2 chunks +10 lines, -4 lines 0 comments Download

Messages

Total messages: 41 (26 generated)
Brian Osman
https://codereview.chromium.org/2270823002/diff/1/src/image/SkSurface_Raster.cpp File src/image/SkSurface_Raster.cpp (right): https://codereview.chromium.org/2270823002/diff/1/src/image/SkSurface_Raster.cpp#newcode65 src/image/SkSurface_Raster.cpp:65: SkColorSpace::kLinear_GammaNamed != info.colorSpace()->gammaNamed()) { Matt mentioned that if someone ...
4 years, 4 months ago (2016-08-23 13:25:57 UTC) #4
msarett
https://codereview.chromium.org/2270823002/diff/1/src/image/SkSurface_Raster.cpp File src/image/SkSurface_Raster.cpp (right): https://codereview.chromium.org/2270823002/diff/1/src/image/SkSurface_Raster.cpp#newcode65 src/image/SkSurface_Raster.cpp:65: SkColorSpace::kLinear_GammaNamed != info.colorSpace()->gammaNamed()) { On 2016/08/23 13:25:56, Brian Osman ...
4 years, 4 months ago (2016-08-23 13:46:11 UTC) #7
mtklein
https://codereview.chromium.org/2270823002/diff/1/tests/SurfaceTest.cpp File tests/SurfaceTest.cpp (right): https://codereview.chromium.org/2270823002/diff/1/tests/SurfaceTest.cpp#newcode930 tests/SurfaceTest.cpp:930: { kN32_SkColorType, linearColorSpace, true, "N32-linear" }, // TODO: Disallow ...
4 years, 4 months ago (2016-08-23 14:24:51 UTC) #10
Brian Osman
https://codereview.chromium.org/2270823002/diff/1/tests/SurfaceTest.cpp File tests/SurfaceTest.cpp (right): https://codereview.chromium.org/2270823002/diff/1/tests/SurfaceTest.cpp#newcode930 tests/SurfaceTest.cpp:930: { kN32_SkColorType, linearColorSpace, true, "N32-linear" }, // TODO: Disallow ...
4 years, 4 months ago (2016-08-23 14:58:33 UTC) #11
mtklein
> The alternative is to explicitly make a new version of the color space with ...
4 years, 4 months ago (2016-08-23 15:54:18 UTC) #12
msarett
On 2016/08/23 15:54:18, mtklein wrote: > > The alternative is to explicitly make a new ...
4 years, 4 months ago (2016-08-23 16:05:03 UTC) #13
Brian Osman
This version now requires F16 surfaces to have a colorspace with gamma 1.0. I'm going ...
4 years, 4 months ago (2016-08-23 19:54:46 UTC) #14
mtklein
This looks just like I was hoping. On 2016/08/23 19:54:46, Brian Osman wrote: > This ...
4 years, 4 months ago (2016-08-24 00:37:39 UTC) #20
Brian Osman
On 2016/08/24 00:37:39, mtklein wrote: > This looks just like I was hoping. > > ...
4 years, 4 months ago (2016-08-24 14:04:49 UTC) #21
Brian Osman
PTAL. Much better version (I think). I moved all the logic to SkSurface_Gpu (to parallel ...
4 years, 3 months ago (2016-08-25 16:47:20 UTC) #22
Brian Osman
I've fixed some more issues with ANGLE, so this should be ready to review/land.
4 years, 3 months ago (2016-08-29 13:57:00 UTC) #31
bsalomon
lgtm https://codereview.chromium.org/2270823002/diff/160001/tests/SurfaceTest.cpp File tests/SurfaceTest.cpp (right): https://codereview.chromium.org/2270823002/diff/160001/tests/SurfaceTest.cpp#newcode981 tests/SurfaceTest.cpp:981: DEF_GPUTEST_FOR_RENDERING_CONTEXTS(SurfaceCreationWithColorSpace_Gpu, reporter, ctxInfo) { ..FOR_ALL_CONTEXTS?
4 years, 3 months ago (2016-08-30 13:10:17 UTC) #36
Brian Osman
On 2016/08/30 13:10:17, bsalomon wrote: > lgtm > > https://codereview.chromium.org/2270823002/diff/160001/tests/SurfaceTest.cpp > File tests/SurfaceTest.cpp (right): > ...
4 years, 3 months ago (2016-08-30 13:55:24 UTC) #37
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/2270823002/160001
4 years, 3 months ago (2016-08-30 13:55:46 UTC) #39
commit-bot: I haz the power
4 years, 3 months ago (2016-08-30 14:08:03 UTC) #41
Message was sent while issue was closed.
Committed patchset #9 (id:160001) as
https://skia.googlesource.com/skia/+/0e22eb8e6efc7d7ab7a601ba555947916d139906

Powered by Google App Engine
This is Rietveld 408576698