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

Issue 2022563002: Remove display item scope (Closed)

Created:
4 years, 6 months ago by Xianzhu
Modified:
4 years, 6 months ago
Reviewers:
chrishtr, 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), jbroman, Justin Novosad, kinuko+watch, pdr+graphicswatchlist_chromium.org, rwlbuis, Stephen Chennney, slimming-paint-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove display item scope We used display item scope to distinguish display items of the same object and display item type painted in multiple contexts (e.g. multiple layer fragments). A scope is assigned to each context and is included in DisplayItem::Id to make the ids of the display items unique. However, because scope ids are unstable (that is we can't ensure the same scope ids for the same paintings) among paintings so we had to disable display item caching for scoped display items, so basically creating a scope has the same effect of skipping cache. This CL removes display item scopes and replaces ScopeRecorder with DisplayItemCacheSkipper, to avoid the complexity and cost of scopes. Measured performance of the patch (https://ct.skia.org/chromium_perf_runs/ run 920 to 929, 6 on Linux, 2 on Android): AVG MEDIAN record_time -0.15% -0.10% record_time_caching_disabled -0.46% -0.60% record_time_construction_disabled -0.26% -0.50% record_time_painting_disabled -0.31% -0.52% record_time_sk_null_canvas 0.00% 0.00% record_time_subsequence_caching_dis.. -0.12% -0.11% viewport_picture_size (bytes) -0.30% -0.06% Committed: https://crrev.com/84921bde050ed6d47525df7846065d80e59f3bf0 Cr-Commit-Position: refs/heads/master@{#396984}

Patch Set 1 #

Patch Set 2 : #

Total comments: 2

Patch Set 3 : #

Total comments: 2

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+89 lines, -207 lines) Patch
M third_party/WebKit/Source/core/core.gypi View 1 2 1 chunk +0 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/paint/PaintLayerPainter.cpp View 7 chunks +35 lines, -41 lines 0 comments Download
D third_party/WebKit/Source/core/paint/ScopeRecorder.h View 1 chunk +0 lines, -31 lines 0 comments Download
D third_party/WebKit/Source/core/paint/ScopeRecorder.cpp View 1 chunk +0 lines, -23 lines 0 comments Download
M third_party/WebKit/Source/core/paint/TablePainter.cpp View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/graphics/paint/DisplayItem.h View 6 chunks +4 lines, -15 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/paint/DisplayItem.cpp View 1 2 chunks +1 line, -3 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/paint/PaintController.h View 3 chunks +1 line, -11 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/paint/PaintController.cpp View 1 2 6 chunks +4 lines, -24 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/paint/PaintControllerTest.cpp View 5 chunks +12 lines, -23 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/paint/README.md View 1 2 3 2 chunks +2 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/web/WebLocalFrameImpl.cpp View 1 2 3 chunks +30 lines, -27 lines 0 comments Download

Messages

Total messages: 15 (6 generated)
Xianzhu
4 years, 6 months ago (2016-05-31 16:36:09 UTC) #3
pdr.
On 2016/05/31 at 16:36:09, wangxianzhu wrote: > Woohoo! LGTM
4 years, 6 months ago (2016-05-31 17:47:23 UTC) #4
chrishtr
https://codereview.chromium.org/2022563002/diff/20001/third_party/WebKit/Source/platform/graphics/paint/README.md File third_party/WebKit/Source/platform/graphics/paint/README.md (right): https://codereview.chromium.org/2022563002/diff/20001/third_party/WebKit/Source/platform/graphics/paint/README.md#newcode127 third_party/WebKit/Source/platform/graphics/paint/README.md:127: It is illegal for there to be two drawings ...
4 years, 6 months ago (2016-05-31 17:55:33 UTC) #5
Xianzhu
https://codereview.chromium.org/2022563002/diff/20001/third_party/WebKit/Source/platform/graphics/paint/README.md File third_party/WebKit/Source/platform/graphics/paint/README.md (right): https://codereview.chromium.org/2022563002/diff/20001/third_party/WebKit/Source/platform/graphics/paint/README.md#newcode127 third_party/WebKit/Source/platform/graphics/paint/README.md:127: It is illegal for there to be two drawings ...
4 years, 6 months ago (2016-05-31 20:35:12 UTC) #6
chrishtr
lgtm https://codereview.chromium.org/2022563002/diff/40001/third_party/WebKit/Source/platform/graphics/paint/README.md File third_party/WebKit/Source/platform/graphics/paint/README.md (right): https://codereview.chromium.org/2022563002/diff/40001/third_party/WebKit/Source/platform/graphics/paint/README.md#newcode128 third_party/WebKit/Source/platform/graphics/paint/README.md:128: list, except that the drawings are marked uncacheable ...
4 years, 6 months ago (2016-05-31 21:07:07 UTC) #7
Xianzhu
https://codereview.chromium.org/2022563002/diff/40001/third_party/WebKit/Source/platform/graphics/paint/README.md File third_party/WebKit/Source/platform/graphics/paint/README.md (right): https://codereview.chromium.org/2022563002/diff/40001/third_party/WebKit/Source/platform/graphics/paint/README.md#newcode128 third_party/WebKit/Source/platform/graphics/paint/README.md:128: list, except that the drawings are marked uncacheable On ...
4 years, 6 months ago (2016-05-31 21:42:39 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2022563002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2022563002/60001
4 years, 6 months ago (2016-05-31 21:43:30 UTC) #11
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 6 months ago (2016-06-01 00:01:35 UTC) #13
commit-bot: I haz the power
4 years, 6 months ago (2016-06-01 00:03:33 UTC) #15
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/84921bde050ed6d47525df7846065d80e59f3bf0
Cr-Commit-Position: refs/heads/master@{#396984}

Powered by Google App Engine
This is Rietveld 408576698