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

Issue 2480823002: skrpb: evaluate color filters for constant shaders once. (Closed)

Created:
4 years, 1 month ago by mtklein_C
Modified:
4 years, 1 month ago
Reviewers:
msarett, Brian Osman, reed1
CC:
reviews_skia.org
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

skrpb: evaluate color filters for constant shaders once. The simplest thing to do here is just run shader+color filter pipeline at construction time to create a new constant color shader (replacing the paint color). This reduces a pipeline like: - constant_color (paint color) - matrix_4x5 - clamp_a - load_d_foo, xfermode, lerp, store_foo to - constant_color (paint color -> matrix_4x5 -> clamp_a) - load_d_foo, xfermode, lerp, store_foo To implement this all, we add a new store_f32 stage that writes SkPM4f, and finally get around to implementing Sk8f::Store4() (store while reinterlacing). Sk4f::Store4() already exists for both SSE and NEON. Next step: reduce simple constant_color -> store pipelines (src mode, full coverage) into non-pipeline memsets. GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2480823002 Committed: https://skia.googlesource.com/skia/+/a4a4488a4c3f16758f7e2b050168fe8d2f3b2a4d

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+102 lines, -40 lines) Patch
M src/core/SkRasterPipeline.h View 1 chunk +1 line, -1 line 0 comments Download
M src/core/SkRasterPipelineBlitter.cpp View 3 chunks +49 lines, -36 lines 0 comments Download
M src/opts/SkNx_sse.h View 2 chunks +31 lines, -0 lines 0 comments Download
M src/opts/SkRasterPipeline_opts.h View 2 chunks +21 lines, -3 lines 0 comments Download

Messages

Total messages: 13 (8 generated)
mtklein_C
4 years, 1 month ago (2016-11-04 18:43:53 UTC) #5
reed1
lgtm
4 years, 1 month ago (2016-11-04 20:11:38 UTC) #8
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/2480823002/1
4 years, 1 month ago (2016-11-04 20:19:12 UTC) #10
commit-bot: I haz the power
Committed patchset #1 (id:1) as https://skia.googlesource.com/skia/+/a4a4488a4c3f16758f7e2b050168fe8d2f3b2a4d
4 years, 1 month ago (2016-11-04 20:20:10 UTC) #12
dogben
4 years, 1 month ago (2016-11-06 13:24:16 UTC) #13
Message was sent while issue was closed.
A revert of this CL (patchset #1 id:1) has been created in
https://codereview.chromium.org/2481023002/ by benjaminwagner@google.com.

The reason for reverting is: Just testing if this CL really broke the ASAN bot..

Powered by Google App Engine
This is Rietveld 408576698