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

Issue 16034013: Remove unpremul/remul from SkArithmeticMode, both raster and GPU, since the SVG spec actually defin… (Closed)

Created:
7 years, 6 months ago by Stephen White
Modified:
7 years, 6 months ago
Reviewers:
reed, bsalomon, reed1
CC:
skia-review_googlegroups.com
Visibility:
Public.

Description

Disable the unpremultiply/remultiply in SkArithmeticMode, both raster and GPU, since the SVG spec actually defines arithmetic compositing to operate on premul colours directly. The unpremul/remul code has been placed behind a gUseUnpremul global, which is default false. The non-unpremul path uses a min() to keep the colours to valid premult values. Note: This change will require new baselines for the arithmode and xfermodeimagefilter GMs. R=reed@google.com Committed: https://code.google.com/p/skia/source/detail?r=9555

Patch Set 1 #

Patch Set 2 : Here's a version with the old code back under a runtime flag. #

Patch Set 3 : Fix keygen. #

Total comments: 1

Patch Set 4 : Put unpremultiply code behind if (false). #

Unified diffs Side-by-side diffs Delta from patch set Stats (+55 lines, -36 lines) Patch
M src/effects/SkArithmeticMode.cpp View 1 2 3 3 chunks +55 lines, -36 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
Stephen White
PTAL
7 years, 6 months ago (2013-06-11 17:45:49 UTC) #1
reed1
still trying to figure out why I went with unpremul in the first place. clearly ...
7 years, 6 months ago (2013-06-11 17:48:57 UTC) #2
Stephen White
On 2013/06/11 17:48:57, reed1 wrote: > still trying to figure out why I went with ...
7 years, 6 months ago (2013-06-11 17:59:25 UTC) #3
reed1
On 2013/06/11 17:59:25, Stephen White wrote: > On 2013/06/11 17:48:57, reed1 wrote: > > still ...
7 years, 6 months ago (2013-06-11 21:21:24 UTC) #4
Stephen White
Here's a version with the unpremul code back, but behind a runtime flag.
7 years, 6 months ago (2013-06-11 21:39:05 UTC) #5
Stephen White
On 2013/06/11 21:21:24, reed1 wrote: > On 2013/06/11 17:59:25, Stephen White wrote: > > On ...
7 years, 6 months ago (2013-06-11 21:45:19 UTC) #6
reed1
https://codereview.chromium.org/16034013/diff/9001/include/effects/SkArithmeticMode.h File include/effects/SkArithmeticMode.h (right): https://codereview.chromium.org/16034013/diff/9001/include/effects/SkArithmeticMode.h#newcode29 include/effects/SkArithmeticMode.h:29: SkScalar k3, SkScalar k4, bool unpremultiply); If we want ...
7 years, 6 months ago (2013-06-11 21:45:40 UTC) #7
Stephen White
Here's a version with the unpremul code behind if (false).
7 years, 6 months ago (2013-06-11 21:59:51 UTC) #8
Stephen White
On 2013/06/11 21:59:51, Stephen White wrote: > Here's a version with the unpremul code behind ...
7 years, 6 months ago (2013-06-11 22:03:23 UTC) #9
reed1
since there's more than one place where the (false) was needed, perhaps a comment block ...
7 years, 6 months ago (2013-06-12 13:19:39 UTC) #10
Stephen White
On 2013/06/12 13:19:39, reed1 wrote: > since there's more than one place where the (false) ...
7 years, 6 months ago (2013-06-12 13:52:52 UTC) #11
Stephen White
7 years, 6 months ago (2013-06-12 22:15:46 UTC) #12
Message was sent while issue was closed.
Committed patchset #4 manually as r9555 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698