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

Issue 1950983007: Add sRGB mode toggle to Viewer. (Closed)

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

Description

Add sRGB mode toggle to Viewer. Unlike SampleApp, this just switches out the format of the window surface (and then adjusts the gamma-correct flag on the SkSurfaces). BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1950983007 Committed: https://skia.googlesource.com/skia/+/05de216ffb864cb1f3a4fa37a2c3a772be38a0c9

Patch Set 1 #

Total comments: 7

Patch Set 2 : Address review feedback #

Patch Set 3 : Bundle window surface parameters in struct, use SkColorType/SkColorProfileType #

Unified diffs Side-by-side diffs Delta from patch set Stats (+115 lines, -35 lines) Patch
M tools/viewer/Viewer.h View 1 chunk +1 line, -0 lines 0 comments Download
M tools/viewer/Viewer.cpp View 1 2 4 chunks +22 lines, -9 lines 0 comments Download
A tools/viewer/sk_app/DisplayParams.h View 1 2 1 chunk +27 lines, -0 lines 0 comments Download
M tools/viewer/sk_app/VulkanWindowContext.h View 1 2 5 chunks +12 lines, -7 lines 0 comments Download
M tools/viewer/sk_app/VulkanWindowContext.cpp View 1 2 7 chunks +28 lines, -10 lines 0 comments Download
M tools/viewer/sk_app/Window.h View 1 2 3 chunks +5 lines, -1 line 0 comments Download
M tools/viewer/sk_app/Window.cpp View 1 2 1 chunk +8 lines, -0 lines 0 comments Download
M tools/viewer/sk_app/WindowContext.h View 1 2 2 chunks +4 lines, -0 lines 0 comments Download
M tools/viewer/sk_app/android/Window_android.h View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M tools/viewer/sk_app/android/Window_android.cpp View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
M tools/viewer/sk_app/win/Window_win.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M tools/viewer/sk_app/win/Window_win.cpp View 1 2 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 24 (9 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1950983007/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1950983007/1
4 years, 7 months ago (2016-05-06 18:04:22 UTC) #3
Brian Osman
I wish this didn't have to touch so much code, but I need to plumb ...
4 years, 7 months ago (2016-05-06 18:05:33 UTC) #5
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-05-06 18:27:33 UTC) #7
jvanverth1
lgtm other than minor comment below. Btw, this will probably conflict with https://codereview.chromium.org/1952323004/ https://codereview.chromium.org/1950983007/diff/1/tools/viewer/sk_app/android/Window_android.h File ...
4 years, 7 months ago (2016-05-06 18:27:55 UTC) #8
liyuqian
On 2016/05/06 18:27:55, jvanverth1 wrote: > lgtm other than minor comment below. Btw, this will ...
4 years, 7 months ago (2016-05-06 18:29:37 UTC) #9
bsalomon
https://codereview.chromium.org/1950983007/diff/1/tools/viewer/Viewer.cpp File tools/viewer/Viewer.cpp (right): https://codereview.chromium.org/1950983007/diff/1/tools/viewer/Viewer.cpp#newcode162 tools/viewer/Viewer.cpp:162: updateTitle(); this-> https://codereview.chromium.org/1950983007/diff/1/tools/viewer/sk_app/VulkanWindowContext.h File tools/viewer/sk_app/VulkanWindowContext.h (right): https://codereview.chromium.org/1950983007/diff/1/tools/viewer/sk_app/VulkanWindowContext.h#newcode72 tools/viewer/sk_app/VulkanWindowContext.h:72: bool ...
4 years, 7 months ago (2016-05-06 18:30:15 UTC) #10
bsalomon
On 2016/05/06 18:30:15, bsalomon wrote: > https://codereview.chromium.org/1950983007/diff/1/tools/viewer/Viewer.cpp > File tools/viewer/Viewer.cpp (right): > > https://codereview.chromium.org/1950983007/diff/1/tools/viewer/Viewer.cpp#newcode162 > ...
4 years, 7 months ago (2016-05-06 18:31:24 UTC) #11
Brian Osman
Updated the easy stuff... https://codereview.chromium.org/1950983007/diff/1/tools/viewer/sk_app/VulkanWindowContext.h File tools/viewer/sk_app/VulkanWindowContext.h (right): https://codereview.chromium.org/1950983007/diff/1/tools/viewer/sk_app/VulkanWindowContext.h#newcode72 tools/viewer/sk_app/VulkanWindowContext.h:72: bool createSwapchain(uint32_t width, uint32_t height, ...
4 years, 7 months ago (2016-05-06 18:42:06 UTC) #12
jvanverth1
On 2016/05/06 18:42:06, Brian Osman wrote: > Updated the easy stuff... > > https://codereview.chromium.org/1950983007/diff/1/tools/viewer/sk_app/VulkanWindowContext.h > ...
4 years, 7 months ago (2016-05-06 18:47:08 UTC) #13
bsalomon
https://codereview.chromium.org/1950983007/diff/1/tools/viewer/sk_app/VulkanWindowContext.h File tools/viewer/sk_app/VulkanWindowContext.h (right): https://codereview.chromium.org/1950983007/diff/1/tools/viewer/sk_app/VulkanWindowContext.h#newcode72 tools/viewer/sk_app/VulkanWindowContext.h:72: bool createSwapchain(uint32_t width, uint32_t height, bool srgb); On 2016/05/06 ...
4 years, 7 months ago (2016-05-06 18:48:32 UTC) #14
Brian Osman
Switched to using SkColorType ad SkColorProfileType, plus I bundled those and the MSAA sample count ...
4 years, 7 months ago (2016-05-06 20:01:14 UTC) #15
bsalomon
On 2016/05/06 20:01:14, Brian Osman wrote: > Switched to using SkColorType ad SkColorProfileType, plus I ...
4 years, 7 months ago (2016-05-06 20:03:37 UTC) #16
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1950983007/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1950983007/40001
4 years, 7 months ago (2016-05-06 20:05:43 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1950983007/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1950983007/40001
4 years, 7 months ago (2016-05-06 20:20:13 UTC) #22
commit-bot: I haz the power
4 years, 7 months ago (2016-05-06 20:29:00 UTC) #24
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://skia.googlesource.com/skia/+/05de216ffb864cb1f3a4fa37a2c3a772be38a0c9

Powered by Google App Engine
This is Rietveld 408576698