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

Issue 2360663002: Add a transient image filter cache to SkImage::makeWithFilter & PDF (Closed)

Created:
4 years, 3 months ago by Brian Osman
Modified:
4 years, 3 months ago
CC:
reviews_skia.org
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Add a transient image filter cache to SkImage::makeWithFilter & PDF Added a bench for makeWithFilter (~23 ms -> ~6 ms median locally). Also fixed indentation. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2360663002 Committed: https://skia.googlesource.com/skia/+/04a44d0fd45f5596c716e99e7a3bbcc03db0e05a

Patch Set 1 #

Total comments: 2

Patch Set 2 : Improved #

Total comments: 2

Patch Set 3 : Fix PDF device more - override getImageFilterCache #

Unified diffs Side-by-side diffs Delta from patch set Stats (+88 lines, -37 lines) Patch
M bench/ImageFilterDAGBench.cpp View 1 2 3 chunks +41 lines, -0 lines 0 comments Download
M src/core/SkImageFilterCache.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M src/gpu/SkGpuDevice.cpp View 1 2 2 chunks +1 line, -3 lines 0 comments Download
M src/image/SkImage.cpp View 1 2 2 chunks +34 lines, -32 lines 0 comments Download
M src/pdf/SkPDFDevice.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M src/pdf/SkPDFDevice.cpp View 1 2 3 chunks +9 lines, -2 lines 0 comments Download

Messages

Total messages: 26 (15 generated)
Brian Osman
4 years, 3 months ago (2016-09-21 14:51:59 UTC) #5
Stephen White
Could you try adding a bench for this? ImageFilterDAGBench is probably a good model.
4 years, 3 months ago (2016-09-21 15:01:11 UTC) #7
robertphillips
https://codereview.chromium.org/2360663002/diff/1/src/image/SkImage.cpp File src/image/SkImage.cpp (right): https://codereview.chromium.org/2360663002/diff/1/src/image/SkImage.cpp#newcode346 src/image/SkImage.cpp:346: Is there no way we can just have one ...
4 years, 3 months ago (2016-09-21 15:05:26 UTC) #8
Brian Osman
Centralized cache size, added cache to PDF, added bench. https://codereview.chromium.org/2360663002/diff/1/src/image/SkImage.cpp File src/image/SkImage.cpp (right): https://codereview.chromium.org/2360663002/diff/1/src/image/SkImage.cpp#newcode346 src/image/SkImage.cpp:346: ...
4 years, 3 months ago (2016-09-21 15:39:21 UTC) #11
Stephen White
https://codereview.chromium.org/2360663002/diff/20001/src/core/SkImageFilterCache.h File src/core/SkImageFilterCache.h (right): https://codereview.chromium.org/2360663002/diff/20001/src/core/SkImageFilterCache.h#newcode51 src/core/SkImageFilterCache.h:51: enum { kDefaultSize = 32 * 1024 * 1024 ...
4 years, 3 months ago (2016-09-21 15:47:04 UTC) #14
robertphillips
lgtm % Stephen's comment & Hal's feedback https://codereview.chromium.org/2360663002/diff/20001/bench/ImageFilterDAGBench.cpp File bench/ImageFilterDAGBench.cpp (right): https://codereview.chromium.org/2360663002/diff/20001/bench/ImageFilterDAGBench.cpp#newcode73 bench/ImageFilterDAGBench.cpp:73: sk_sp<SkImageFilter> mergeFilter ...
4 years, 3 months ago (2016-09-21 15:50:25 UTC) #15
hal.canary
PDF: lgtm
4 years, 3 months ago (2016-09-21 15:51:39 UTC) #16
Brian Osman
Renamed enum to kDefaultTransientSize. Fixed dangerous aliasing in the bench. Move the PDF cache construction ...
4 years, 3 months ago (2016-09-21 16:03:27 UTC) #19
Stephen White
LGTM. Thanks for the fix!
4 years, 3 months ago (2016-09-21 16:06:22 UTC) #20
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/2360663002/40001
4 years, 3 months ago (2016-09-21 16:07:26 UTC) #24
commit-bot: I haz the power
4 years, 3 months ago (2016-09-21 16:47:00 UTC) #26
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://skia.googlesource.com/skia/+/04a44d0fd45f5596c716e99e7a3bbcc03db0e05a

Powered by Google App Engine
This is Rietveld 408576698