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

Issue 1919993002: Added --deepColor option to SampleApp, triggers creation of a ten-bit/channel buffer on Windows. (Closed)

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

Description

Added --deepColor option to SampleApp, triggers creation of a ten-bit/channel buffer. (Only on Windows at the moment). Uses new effect to do the final gamma adjustment BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1919993002 Committed: https://skia.googlesource.com/skia/+/2d1ee7936e3536e45c963db004e3b512bb415fd8

Patch Set 1 #

Patch Set 2 : Consistent naming #

Patch Set 3 : Added new writePixelsWithColorSpace #

Patch Set 4 : Broken for testing on laptop #

Patch Set 5 : Rebase #

Patch Set 6 : Rebase and cleanup #

Patch Set 7 : Plumb gamma to shader, fix window title #

Total comments: 3

Patch Set 8 : Rebase #

Patch Set 9 : Much simpler API that only does gamma #

Patch Set 10 : Rebase and cleanup #

Patch Set 11 : More cleanup #

Total comments: 8

Patch Set 12 : Add missing override #

Patch Set 13 : Fix compile problems #

Patch Set 14 : Add tenBitColor option to attach everywhere. #

Patch Set 15 : Rebase #

Patch Set 16 : Mac compile fix #

Patch Set 17 : Add srcRect and dstPoint. Fix docs/comments. #

Patch Set 18 : Unit tests #

Total comments: 1

Patch Set 19 : Terminology change -> deepColor. Put display color bits in AttachmentInfo #

Patch Set 20 : Less confusing API. Use the passed in gamma directly, rather than inverting. #

Patch Set 21 : Typo in comment #

Patch Set 22 : Fix Linux DM assert. Window title reflects actual color depth. #

Patch Set 23 : Fix expected output in unit test #

Patch Set 24 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+541 lines, -94 lines) Patch
M example/HelloWorld.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -1 line 0 comments Download
M experimental/SkV8Example/SkV8Example.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -1 line 0 comments Download
M experimental/iOSSampleApp/SkSampleUIView.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 4 chunks +8 lines, -4 lines 0 comments Download
M gyp/gpu.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +2 lines, -0 lines 0 comments Download
M include/gpu/GrContext.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +9 lines, -1 line 0 comments Download
M include/gpu/GrSurface.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M include/views/SkOSWindow_Android.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +2 lines, -1 line 0 comments Download
M include/views/SkOSWindow_Mac.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +2 lines, -1 line 0 comments Download
M include/views/SkOSWindow_SDL.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +1 line, -1 line 0 comments Download
M include/views/SkOSWindow_Unix.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +1 line, -1 line 0 comments Download
M include/views/SkOSWindow_Win.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 2 chunks +2 lines, -2 lines 0 comments Download
M include/views/SkOSWindow_iOS.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +2 lines, -1 line 0 comments Download
M include/views/SkWindow.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +6 lines, -0 lines 0 comments Download
M platform_tools/android/apps/sample_app/src/main/jni/com_skia_SkiaSampleRenderer.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +2 lines, -1 line 0 comments Download
M platform_tools/android/apps/visualbench/src/main/jni/SkOSWindow_AndroidNative.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +1 line, -0 lines 0 comments Download
M samplecode/SampleApp.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 3 chunks +6 lines, -1 line 0 comments Download
M samplecode/SampleApp.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 17 chunks +57 lines, -33 lines 0 comments Download
M src/gpu/GrContext.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 2 chunks +39 lines, -0 lines 0 comments Download
M src/gpu/GrProcessor.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +1 line, -1 line 0 comments Download
A src/gpu/effects/GrGammaEffect.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +42 lines, -0 lines 0 comments Download
A src/gpu/effects/GrGammaEffect.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +136 lines, -0 lines 0 comments Download
M src/utils/win/SkWGL.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 2 chunks +4 lines, -1 line 0 comments Download
M src/utils/win/SkWGL_win.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 5 chunks +31 lines, -26 lines 0 comments Download
M src/views/SkWindow.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +8 lines, -3 lines 0 comments Download
M src/views/ios/SkOSWindow_iOS.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +1 line, -0 lines 0 comments Download
M src/views/mac/SkOSWindow_Mac.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +2 lines, -1 line 0 comments Download
M src/views/sdl/SkOSWindow_SDL.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +2 lines, -1 line 0 comments Download
M src/views/unix/SkOSWindow_Unix.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +2 lines, -1 line 0 comments Download
M src/views/win/SkOSWindow_win.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 4 chunks +8 lines, -5 lines 0 comments Download
A tests/ApplyGammaTest.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +156 lines, -0 lines 0 comments Download
M tools/VisualBench/VisualBench.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -1 line 0 comments Download
M tools/gpu/gl/win/CreatePlatformGLTestContext_win.cpp View 1 chunk +1 line, -1 line 0 comments Download
M tools/viewer/android/Window_android.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 2 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 60 (29 generated)
Brian Osman
https://codereview.chromium.org/1919993002/diff/120001/samplecode/SampleApp.cpp File samplecode/SampleApp.cpp (right): https://codereview.chromium.org/1919993002/diff/120001/samplecode/SampleApp.cpp#newcode226 samplecode/SampleApp.cpp:226: bool result = win->attach(fBackend, msaaSampleCount, tenBitColor, &attachmentInfo); Seems like ...
4 years, 7 months ago (2016-04-27 19:55:02 UTC) #5
bsalomon
https://codereview.chromium.org/1919993002/diff/120001/samplecode/SampleApp.cpp File samplecode/SampleApp.cpp (right): https://codereview.chromium.org/1919993002/diff/120001/samplecode/SampleApp.cpp#newcode326 samplecode/SampleApp.cpp:326: canvas->readPixels(&bm, 0, 0); On 2016/04/27 19:55:01, Brian Osman wrote: ...
4 years, 7 months ago (2016-04-27 20:28:24 UTC) #6
Brian Osman
On 2016/04/27 20:28:24, bsalomon wrote: > https://codereview.chromium.org/1919993002/diff/120001/samplecode/SampleApp.cpp > File samplecode/SampleApp.cpp (right): > > https://codereview.chromium.org/1919993002/diff/120001/samplecode/SampleApp.cpp#newcode326 > ...
4 years, 7 months ago (2016-04-29 13:57:26 UTC) #7
bsalomon
On 2016/04/29 13:57:26, Brian Osman wrote: > On 2016/04/27 20:28:24, bsalomon wrote: > > > ...
4 years, 7 months ago (2016-04-29 14:37:30 UTC) #8
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1919993002/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1919993002/200001
4 years, 7 months ago (2016-04-29 16:51:47 UTC) #11
Brian Osman
Stripped down to a much simpler and cleaner implementation...
4 years, 7 months ago (2016-04-29 16:51:51 UTC) #12
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: Build-Ubuntu-Clang-x86_64-Debug-Trybot on client.skia.compile (JOB_FAILED, http://build.chromium.org/p/client.skia.compile/builders/Build-Ubuntu-Clang-x86_64-Debug-Trybot/builds/8218)
4 years, 7 months ago (2016-04-29 16:56:15 UTC) #14
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1919993002/240001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1919993002/240001
4 years, 7 months ago (2016-04-29 18:26:00 UTC) #16
bsalomon
I like this much better! https://codereview.chromium.org/1919993002/diff/200001/include/gpu/GrContext.h File include/gpu/GrContext.h (right): https://codereview.chromium.org/1919993002/diff/200001/include/gpu/GrContext.h#newcode302 include/gpu/GrContext.h:302: */ Question about this ...
4 years, 7 months ago (2016-04-29 18:27:20 UTC) #17
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: Build-Ubuntu-GCC-x86_64-Release-Trybot on client.skia.compile (JOB_FAILED, http://build.chromium.org/p/client.skia.compile/builders/Build-Ubuntu-GCC-x86_64-Release-Trybot/builds/8223)
4 years, 7 months ago (2016-04-29 18:29:33 UTC) #19
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1919993002/260001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1919993002/260001
4 years, 7 months ago (2016-04-29 19:06:32 UTC) #21
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-Shared-Trybot on client.skia (JOB_FAILED, http://build.chromium.org/p/client.skia/builders/Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-Shared-Trybot/builds/8203) Build-Ubuntu-GCC-Arm7-Debug-Android-Trybot on ...
4 years, 7 months ago (2016-04-29 19:07:45 UTC) #23
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1919993002/280001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1919993002/280001
4 years, 7 months ago (2016-05-02 17:02:51 UTC) #25
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: Build-Mac-Clang-x86_64-Release-Trybot on client.skia.compile (JOB_FAILED, http://build.chromium.org/p/client.skia.compile/builders/Build-Mac-Clang-x86_64-Release-Trybot/builds/2353)
4 years, 7 months ago (2016-05-02 17:05:22 UTC) #27
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1919993002/340001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1919993002/340001
4 years, 7 months ago (2016-05-02 21:01:18 UTC) #29
Brian Osman
Better? I can try to get the src/dst rect/point thing working if necessary. https://codereview.chromium.org/1919993002/diff/200001/include/gpu/GrContext.h File ...
4 years, 7 months ago (2016-05-02 21:02:45 UTC) #30
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: Test-Ubuntu-GCC-ShuttleA-GPU-GTX660-x86_64-Release-Trybot on client.skia (JOB_FAILED, http://build.chromium.org/p/client.skia/builders/Test-Ubuntu-GCC-ShuttleA-GPU-GTX660-x86_64-Release-Trybot/builds/3329)
4 years, 7 months ago (2016-05-02 21:16:20 UTC) #32
bsalomon
https://codereview.chromium.org/1919993002/diff/200001/include/gpu/GrContext.h File include/gpu/GrContext.h (right): https://codereview.chromium.org/1919993002/diff/200001/include/gpu/GrContext.h#newcode302 include/gpu/GrContext.h:302: */ On 2016/05/02 21:02:45, Brian Osman wrote: > On ...
4 years, 7 months ago (2016-05-02 21:17:40 UTC) #33
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1919993002/400001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1919993002/400001
4 years, 7 months ago (2016-05-03 16:02:01 UTC) #35
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: Test-Ubuntu-GCC-ShuttleA-GPU-GTX660-x86_64-Release-Trybot on client.skia (JOB_FAILED, http://build.chromium.org/p/client.skia/builders/Test-Ubuntu-GCC-ShuttleA-GPU-GTX660-x86_64-Release-Trybot/builds/3345)
4 years, 7 months ago (2016-05-03 16:14:07 UTC) #38
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1919993002/420001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1919993002/420001
4 years, 7 months ago (2016-05-03 20:25:47 UTC) #40
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: Test-Ubuntu-GCC-ShuttleA-GPU-GTX660-x86_64-Release-Trybot on client.skia (JOB_FAILED, http://build.chromium.org/p/client.skia/builders/Test-Ubuntu-GCC-ShuttleA-GPU-GTX660-x86_64-Release-Trybot/builds/3364)
4 years, 7 months ago (2016-05-03 20:36:20 UTC) #42
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1919993002/440001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1919993002/440001
4 years, 7 months ago (2016-05-03 21:00:46 UTC) #44
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-05-03 21:11:00 UTC) #46
Brian Osman
PTAL, planning to reuse some of this code in another upcoming change...
4 years, 7 months ago (2016-05-04 21:10:11 UTC) #47
bsalomon
lgtm
4 years, 7 months ago (2016-05-05 18:53:46 UTC) #48
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1919993002/440001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1919993002/440001
4 years, 7 months ago (2016-05-05 18:55:56 UTC) #50
commit-bot: I haz the power
Try jobs failed on following builders: skia_presubmit-Trybot on client.skia.fyi (JOB_FAILED, http://build.chromium.org/p/client.skia.fyi/builders/skia_presubmit-Trybot/builds/9449)
4 years, 7 months ago (2016-05-05 18:58:30 UTC) #52
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1919993002/460001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1919993002/460001
4 years, 7 months ago (2016-05-05 19:04:45 UTC) #54
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1919993002/460001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1919993002/460001
4 years, 7 months ago (2016-05-05 19:16:07 UTC) #58
commit-bot: I haz the power
4 years, 7 months ago (2016-05-05 19:24:36 UTC) #60
Message was sent while issue was closed.
Committed patchset #24 (id:460001) as
https://skia.googlesource.com/skia/+/2d1ee7936e3536e45c963db004e3b512bb415fd8

Powered by Google App Engine
This is Rietveld 408576698