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

Issue 2069653002: Use Offscreen Surface for Split Screen (Closed)

Created:
4 years, 6 months ago by liyuqian
Modified:
4 years, 6 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

Use Offscreen Surface for Split Screen A dashed line is also added to split the screen. Currently, drawing images with sRGB seems to still have bugs. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2069653002 Committed: https://skia.googlesource.com/skia/+/74959a1471cd3b20e2dd79fc0c685e7205a25cd9

Patch Set 1 #

Total comments: 11

Patch Set 2 : Fix nits #

Total comments: 6

Patch Set 3 : More fixes #

Total comments: 1

Patch Set 4 : API #

Patch Set 5 : Header #

Patch Set 6 : Merge #

Patch Set 7 : Better merge #

Unified diffs Side-by-side diffs Delta from patch set Stats (+60 lines, -11 lines) Patch
M tools/viewer/Viewer.cpp View 1 2 3 4 5 6 2 chunks +21 lines, -2 lines 0 comments Download
M tools/viewer/sk_app/Window.h View 1 2 3 2 chunks +4 lines, -0 lines 0 comments Download
M tools/viewer/sk_app/Window.cpp View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M tools/viewer/sk_app/WindowContext.h View 1 2 3 2 chunks +5 lines, -0 lines 0 comments Download
M tools/viewer/sk_app/WindowContext.cpp View 1 2 3 4 5 1 chunk +25 lines, -8 lines 0 comments Download
M tools/viewer/sk_app/android/RasterWindowContext_android.cpp View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 23 (8 generated)
liyuqian
This implementation allows sRGB split screen for all slides (GM, SKP, JPG, and future Sample). ...
4 years, 6 months ago (2016-06-14 16:23:47 UTC) #4
liyuqian
On 2016/06/14 16:23:47, liyuqian wrote: > This implementation allows sRGB split screen for all slides ...
4 years, 6 months ago (2016-06-15 13:27:18 UTC) #5
Brian Osman
Yup, this looks like the right idea to me. (With one important fix that will ...
4 years, 6 months ago (2016-06-15 13:41:59 UTC) #7
msarett
"Currently, drawing images with sRGB seems to still have bugs." Sorry I haven't had a ...
4 years, 6 months ago (2016-06-15 13:48:10 UTC) #8
liyuqian
Thanks Brian and Matt! Please see my response below. I also improved (in my opinion) ...
4 years, 6 months ago (2016-06-15 14:09:15 UTC) #10
djsollen
https://codereview.chromium.org/2069653002/diff/20001/tools/viewer/sk_app/Window.cpp File tools/viewer/sk_app/Window.cpp (right): https://codereview.chromium.org/2069653002/diff/20001/tools/viewer/sk_app/Window.cpp#newcode10 tools/viewer/sk_app/Window.cpp:10: #include "GrRenderTarget.h" why do you need this include? https://codereview.chromium.org/2069653002/diff/20001/tools/viewer/sk_app/Window.h ...
4 years, 6 months ago (2016-06-15 14:14:29 UTC) #11
msarett
https://codereview.chromium.org/2069653002/diff/1/tools/viewer/sk_app/WindowContext.cpp File tools/viewer/sk_app/WindowContext.cpp (right): https://codereview.chromium.org/2069653002/diff/1/tools/viewer/sk_app/WindowContext.cpp#newcode39 tools/viewer/sk_app/WindowContext.cpp:39: // kUnknown_SkAlphaType won't pass On 2016/06/15 14:09:15, liyuqian wrote: ...
4 years, 6 months ago (2016-06-15 14:20:40 UTC) #12
Brian Osman
https://codereview.chromium.org/2069653002/diff/20001/tools/viewer/sk_app/WindowContext.cpp File tools/viewer/sk_app/WindowContext.cpp (right): https://codereview.chromium.org/2069653002/diff/20001/tools/viewer/sk_app/WindowContext.cpp#newcode42 tools/viewer/sk_app/WindowContext.cpp:42: kOpaque_SkAlphaType, kOpaque is probably okay, although kPremul is probably ...
4 years, 6 months ago (2016-06-15 15:32:04 UTC) #13
liyuqian
Please see me fixes and comments below. https://codereview.chromium.org/2069653002/diff/1/tools/viewer/sk_app/WindowContext.cpp File tools/viewer/sk_app/WindowContext.cpp (right): https://codereview.chromium.org/2069653002/diff/1/tools/viewer/sk_app/WindowContext.cpp#newcode42 tools/viewer/sk_app/WindowContext.cpp:42: sRGB ? ...
4 years, 6 months ago (2016-06-15 16:43:12 UTC) #14
liyuqian
Any update (like lgtm :)?
4 years, 6 months ago (2016-06-16 14:47:08 UTC) #15
djsollen
https://codereview.chromium.org/2069653002/diff/40001/tools/viewer/sk_app/WindowContext.h File tools/viewer/sk_app/WindowContext.h (right): https://codereview.chromium.org/2069653002/diff/40001/tools/viewer/sk_app/WindowContext.h#newcode48 tools/viewer/sk_app/WindowContext.h:48: sk_sp<GrRenderTarget>, int colorBits, bool offscreen = false, bool sRGB ...
4 years, 6 months ago (2016-06-16 16:55:06 UTC) #16
liyuqian
Hi Derek, I've revised the API according to your suggestion.
4 years, 6 months ago (2016-06-16 20:24:08 UTC) #17
djsollen
lgtm
4 years, 6 months ago (2016-06-16 20:25:26 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2069653002/120001
4 years, 6 months ago (2016-06-16 20:43:18 UTC) #21
commit-bot: I haz the power
4 years, 6 months ago (2016-06-16 21:10:40 UTC) #23
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://skia.googlesource.com/skia/+/74959a1471cd3b20e2dd79fc0c685e7205a25cd9

Powered by Google App Engine
This is Rietveld 408576698