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

Issue 1391303002: Optional gradient dithering (Closed)

Created:
5 years, 2 months ago by f(malita)
Modified:
5 years, 2 months ago
Reviewers:
reed1, mtklein, tomhudson
CC:
reviews_skia.org
Base URL:
https://chromium.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Optional gradient dithering Update raster gradient impls to observe the paint dithering flag. For now this new behavior is disabled pending internal/external client updates to mitigate diffs. BUG=skia:4436 R=reed@google.com,mtklein@google.com,tomhudson@google.com Committed: https://skia.googlesource.com/skia/+/37d8688927988cc71e968e0b5e90689e4e6ed7ab

Patch Set 1 #

Patch Set 2 : cleanup #

Patch Set 3 : template-based #

Patch Set 4 : straight kDitherStride32 runtime plumbing #

Patch Set 5 : table-based approach #

Unified diffs Side-by-side diffs Delta from patch set Stats (+103 lines, -71 lines) Patch
M src/effects/gradients/SkGradientShader.cpp View 1 2 3 4 15 chunks +96 lines, -67 lines 0 comments Download
M src/effects/gradients/SkGradientShaderPriv.h View 1 2 3 4 6 chunks +7 lines, -4 lines 0 comments Download

Messages

Total messages: 27 (6 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/1391303002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1391303002/40001
5 years, 2 months ago (2015-10-07 21:52:23 UTC) #2
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 2 months ago (2015-10-07 21:58:53 UTC) #4
f(malita)
Patch set #2 is fairly contained, parameterizing the toggle dither stride (0 disables dithering). Unfortunately ...
5 years, 2 months ago (2015-10-07 22:30:08 UTC) #6
reed1
Could we not have just made SkGradientShaderBase::kDitherStride32 be a runtime value instead of a const?
5 years, 2 months ago (2015-10-08 14:39:20 UTC) #7
f(malita)
On 2015/10/08 14:39:20, reed1 wrote: > Could we not have just made SkGradientShaderBase::kDitherStride32 be a ...
5 years, 2 months ago (2015-10-08 15:42:48 UTC) #8
f(malita)
On 2015/10/08 15:42:48, f(malita) wrote: > On 2015/10/08 14:39:20, reed1 wrote: > > Could we ...
5 years, 2 months ago (2015-10-08 15:43:33 UTC) #9
reed1
Another 2nd-order consideration: If we're going to NOT dither, then the tables we built are ...
5 years, 2 months ago (2015-10-08 15:44:23 UTC) #10
f(malita)
On 2015/10/08 15:44:23, reed1 wrote: > Another 2nd-order consideration: > > If we're going to ...
5 years, 2 months ago (2015-10-08 16:01:03 UTC) #11
reed1
On 2015/10/08 16:01:03, f(malita) wrote: > On 2015/10/08 15:44:23, reed1 wrote: > > Another 2nd-order ...
5 years, 2 months ago (2015-10-08 16:20:25 UTC) #12
tomhudson
Since Mike's got concerns about the approach, reading the code may not have been useful, ...
5 years, 2 months ago (2015-10-08 16:43:04 UTC) #13
f(malita)
On 2015/10/08 16:43:04, tomhudson wrote: > What PS#2 does looks like a really expensive, inefficient ...
5 years, 2 months ago (2015-10-08 19:47:26 UTC) #14
tomhudson
On 2015/10/08 19:47:26, f(malita) wrote: > On 2015/10/08 16:43:04, tomhudson wrote: > > What PS#2 ...
5 years, 2 months ago (2015-10-08 19:52:21 UTC) #15
reed1
Hmmmm. 1. I can believe the slow down, esp. in the very trivial cases where ...
5 years, 2 months ago (2015-10-08 20:32:18 UTC) #16
f(malita)
On 2015/10/08 20:32:18, reed1 wrote: > Hmmmm. > > 1. I can believe the slow ...
5 years, 2 months ago (2015-10-08 21:09:46 UTC) #17
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1391303002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1391303002/80001
5 years, 2 months ago (2015-10-08 21:12:54 UTC) #19
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 2 months ago (2015-10-08 21:25:04 UTC) #21
tomhudson
> The gotcha is we may need to recompute the cache tables if the shader ...
5 years, 2 months ago (2015-10-08 21:37:32 UTC) #22
f(malita)
On 2015/10/08 21:37:32, tomhudson wrote: > > The gotcha is we may need to recompute ...
5 years, 2 months ago (2015-10-09 12:41:38 UTC) #23
reed1
lgtm
5 years, 2 months ago (2015-10-09 16:59:29 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1391303002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1391303002/80001
5 years, 2 months ago (2015-10-09 17:22:09 UTC) #26
commit-bot: I haz the power
5 years, 2 months ago (2015-10-09 17:23:16 UTC) #27
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://skia.googlesource.com/skia/+/37d8688927988cc71e968e0b5e90689e4e6ed7ab

Powered by Google App Engine
This is Rietveld 408576698