New issue
Advanced search Search tips

Issue 613233 link

Starred by 4 users

Issue metadata

Status: Assigned
Owner:
Components:
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 3
Type: Feature



Sign in to add a comment

cc: put background filters on the makeWithFilter() fast-path

Project Member Reported by senorblanco@chromium.org, May 19 2016

Issue description

(Foreground) filters are being optimized to use Skia's SkImage::makeWithFilter() fast path: https://codereview.chromium.org/1959033002/. However, background filters use a separate sampler input in the cc shdaer and thus can't yet benefit from this optimization. As part of that patch, I've moved the legacy (non-optimized) code from ApplyImageFilter() to ApplyBackgroundFilters(), where they still create a destination SkSurface and call drawImage().

Fixing this will probably require adding a background_tex_tramsform uniform, so that the background texture input can be scaled and offset separately from the contents texture.
 
Components: Internals>Compositing Blink>CSS>Filters
Labels: -Type-Bug OS-All Type-Feature
Hi, are you planning to work on this bug? May be I could help you with that one - looks like an interesting change to try.
You're welcome to give it a shot. I don't think anyone plans to work on it in the near future.
Thanks, will try to upload the patch this or next week.

Comment 6 by suzyh@chromium.org, Apr 5 2017

Components: -Blink>CSS>Filters Blink>Compositing>Filters
Project Member

Comment 7 by sheriffbot@chromium.org, Apr 13 2018

Labels: Hotlist-Recharge-Cold
Status: Untriaged (was: Available)
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue.

Sorry for the inconvenience if the bug really should have been left as Available.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Owner: senorblanco@chromium.org
Status: Assigned (was: Untriaged)
senorblanco: Please triage this, or close it if it's obsolete.
Project Member

Comment 9 by bugdroid1@chromium.org, May 4 2018

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/c5db50711bfd255df9bb4715b21efa5581147216

commit c5db50711bfd255df9bb4715b21efa5581147216
Author: Vadim Petrov <lof84@yandex-team.ru>
Date: Fri May 04 13:17:48 2018

Improve performance of background filters

Part 1: Refactoring and improve background filters shaders.

Bug: 613233
Cq-Include-Trybots: master.tryserver.blink:linux_trusty_blink_rel;luci.chromium.try:android_optional_gpu_tests_rel
Change-Id: I93c7ecf0933f6c7095bfc94d0d404097b6e1a384
Reviewed-on: https://chromium-review.googlesource.com/899350
Commit-Queue: Vadim Petrov <lof84@yandex-team.ru>
Reviewed-by: Stephen White <senorblanco@chromium.org>
Reviewed-by: danakj <danakj@chromium.org>
Cr-Commit-Position: refs/heads/master@{#556036}
[modify] https://crrev.com/c5db50711bfd255df9bb4715b21efa5581147216/cc/trees/layer_tree_host_pixeltest_masks.cc
[modify] https://crrev.com/c5db50711bfd255df9bb4715b21efa5581147216/components/viz/service/display/gl_renderer.cc
[modify] https://crrev.com/c5db50711bfd255df9bb4715b21efa5581147216/components/viz/service/display/shader.cc
[add] https://crrev.com/c5db50711bfd255df9bb4715b21efa5581147216/components/viz/test/data/mask_of_background_filter_and_blend.png

Owner: masonfreed@chromium.org

Sign in to add a comment