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

Issue 2190573002: Add SkGammaColorFilter (Closed)

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

Add SkGammaColorFilter WDYT about this as a means of replacing GrContext::applyGamma with a normal SkCanvas::drawImage? GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2190573002 Committed: https://skia.googlesource.com/skia/+/a408c8fb6d367d494437b8709fdfa8c822267e6e

Patch Set 1 #

Patch Set 2 : Clean up #

Total comments: 2

Patch Set 3 : Add assert & comment #

Patch Set 4 : Make gammacolorfilter GM GPU-only #

Patch Set 5 : Add comment #

Patch Set 6 : Add src/gpu/effects to private include dirs in gn file #

Patch Set 7 : ?? #

Unified diffs Side-by-side diffs Delta from patch set Stats (+208 lines, -0 lines) Patch
A gm/gammacolorfilter.cpp View 1 2 3 1 chunk +101 lines, -0 lines 0 comments Download
M gyp/effects.gyp View 1 chunk +1 line, -0 lines 0 comments Download
M gyp/effects.gypi View 2 chunks +2 lines, -0 lines 0 comments Download
A include/effects/SkGammaColorFilter.h View 1 2 3 4 5 1 chunk +48 lines, -0 lines 0 comments Download
A src/effects/SkGammaColorFilter.cpp View 1 2 3 4 5 6 1 chunk +56 lines, -0 lines 0 comments Download

Messages

Total messages: 36 (22 generated)
robertphillips
4 years, 4 months ago (2016-07-27 11:58:36 UTC) #5
mtklein
https://codereview.chromium.org/2190573002/diff/20001/src/effects/SkGammaColorFilter.cpp File src/effects/SkGammaColorFilter.cpp (right): https://codereview.chromium.org/2190573002/diff/20001/src/effects/SkGammaColorFilter.cpp#newcode18 src/effects/SkGammaColorFilter.cpp:18: SkPMColor dst[]) const { Can we assert here? Gamma-correcting ...
4 years, 4 months ago (2016-07-27 12:06:22 UTC) #7
robertphillips
https://codereview.chromium.org/2190573002/diff/20001/src/effects/SkGammaColorFilter.cpp File src/effects/SkGammaColorFilter.cpp (right): https://codereview.chromium.org/2190573002/diff/20001/src/effects/SkGammaColorFilter.cpp#newcode18 src/effects/SkGammaColorFilter.cpp:18: SkPMColor dst[]) const { On 2016/07/27 12:06:22, mtklein wrote: ...
4 years, 4 months ago (2016-07-27 12:17:19 UTC) #8
reed1
Given klein's comments, why does this need to exist? Why need it be public? side-note: ...
4 years, 4 months ago (2016-07-27 12:27:42 UTC) #10
robertphillips
On 2016/07/27 12:27:42, reed1 wrote: > Given klein's comments, why does this need to exist? ...
4 years, 4 months ago (2016-07-27 12:44:24 UTC) #11
Brian Osman
I'm pretty sure bsalomon@ was changing the applyGamma API to eliminate the render target references ...
4 years, 4 months ago (2016-07-27 13:10:45 UTC) #13
Brian Osman
On 2016/07/27 13:10:45, Brian Osman wrote: > I'm pretty sure bsalomon@ was changing the applyGamma ...
4 years, 4 months ago (2016-07-27 13:11:53 UTC) #14
bsalomon
On 2016/07/27 13:11:53, Brian Osman wrote: > On 2016/07/27 13:10:45, Brian Osman wrote: > > ...
4 years, 4 months ago (2016-07-27 13:40:31 UTC) #15
Brian Osman
On 2016/07/27 12:44:24, robertphillips wrote: > On 2016/07/27 12:27:42, reed1 wrote: > > Given klein's ...
4 years, 4 months ago (2016-07-27 18:08:23 UTC) #16
reed1
OK, maybe I'm starting to understand more. 1. I missed the TODO on the raster-side. ...
4 years, 4 months ago (2016-07-27 19:41:25 UTC) #17
reed1
Lets add some dox to the public part... like how is gamma interpreted! - is ...
4 years, 4 months ago (2016-07-27 19:42:45 UTC) #18
robertphillips
I've added a comment. Brian O. please let me know if I've got all the ...
4 years, 4 months ago (2016-07-27 21:30:57 UTC) #19
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/2190573002/120001
4 years, 4 months ago (2016-07-28 16:19:40 UTC) #34
commit-bot: I haz the power
4 years, 4 months ago (2016-07-28 16:20:37 UTC) #36
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://skia.googlesource.com/skia/+/a408c8fb6d367d494437b8709fdfa8c822267e6e

Powered by Google App Engine
This is Rietveld 408576698