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

Issue 2500533003: Cache display items from SVGImage contents. (Closed)

Created:
4 years, 1 month ago by chrishtr
Modified:
4 years, 1 month ago
Reviewers:
pdr.
CC:
ajuma+watch_chromium.org, blink-reviews, blink-reviews-paint_chromium.org, blink-reviews-platform-graphics_chromium.org, Rik, chromium-reviews, danakj+watch_chromium.org, dshwang, drott+blinkwatch_chromium.org, krit, f(malita), fs, gyuyoung2, jbroman, Justin Novosad, kouhei+svg_chromium.org, pdr+graphicswatchlist_chromium.org, pdr+svgwatchlist_chromium.org, rwlbuis, Stephen Chennney
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Cache display items from SVGImage contents. It works as follows: 1. SkPictureBuilder now allows an existing PaintController to be passed in the constructor. 2. SVGImage stores a local PaintController for painting image contents. 3. When painting frames that do not invalidate the SVGImage contents, the PaintController for the image will have the cached DisplayItems from it, and subsequence caching will allow the LayoutView of the Page belonging to the SVGImage to be reused. 4. If any invalidation happens on the SVGImage, the usual caching behavior of SVG will result in the PaintController for the SVG noticing and not caching DisplayItems or subsequences as appropriate. (*) (*) this is easy now, because of the changes made earlier this year to use global invalidation cache epochs rather than PaintController-specific ones. BUG=663953 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 Committed: https://crrev.com/bb1c8b9d3e4acb60fb489f878963e2ccbb936b61 Cr-Commit-Position: refs/heads/master@{#431695}

Patch Set 1 #

Patch Set 2 : none #

Patch Set 3 : none #

Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -10 lines) Patch
M third_party/WebKit/Source/core/svg/graphics/SVGImage.h View 2 2 chunks +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/svg/graphics/SVGImage.cpp View 1 2 2 chunks +5 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/paint/SkPictureBuilder.h View 2 chunks +8 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/paint/SkPictureBuilder.cpp View 2 chunks +9 lines, -5 lines 0 comments Download

Messages

Total messages: 17 (11 generated)
chrishtr
4 years, 1 month ago (2016-11-11 20:56:28 UTC) #6
pdr.
On 2016/11/11 at 20:56:28, chrishtr wrote: > LGTM, this is great. Just confirming, you saw ...
4 years, 1 month ago (2016-11-11 22:41:08 UTC) #9
chrishtr
On 2016/11/11 at 22:41:08, pdr wrote: > On 2016/11/11 at 20:56:28, chrishtr wrote: > > ...
4 years, 1 month ago (2016-11-11 22:54:32 UTC) #11
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/2500533003/40001
4 years, 1 month ago (2016-11-11 22:55:30 UTC) #14
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 1 month ago (2016-11-12 00:21:27 UTC) #15
commit-bot: I haz the power
4 years, 1 month ago (2016-11-12 00:23:46 UTC) #17
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/bb1c8b9d3e4acb60fb489f878963e2ccbb936b61
Cr-Commit-Position: refs/heads/master@{#431695}

Powered by Google App Engine
This is Rietveld 408576698