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

Issue 2791043002: Draw recorded content directly into the containing PaintCanvas, when possible. (Closed)

Created:
3 years, 8 months ago by chrishtr
Modified:
3 years, 8 months ago
Reviewers:
wkorman
CC:
ajuma+watch_chromium.org, blink-reviews, blink-reviews-frames_chromium.org, blink-reviews-layout_chromium.org, blink-reviews-paint_chromium.org, blink-reviews-platform-graphics_chromium.org, Rik, chromium-reviews, danakj+watch_chromium.org, dshwang, drott+blinkwatch_chromium.org, krit, eae+blinkwatch, fmalita+watch_chromium.org, fs, gyuyoung2, jbroman, jchaffraix+rendering, Justin Novosad, kinuko+watch, kouhei+svg_chromium.org, leviw+renderwatch, pdr+graphicswatchlist_chromium.org, pdr+renderingwatchlist_chromium.org, pdr+svgwatchlist_chromium.org, rwlbuis, Stephen Chennney, szager+layoutwatch_chromium.org, vmpstr, zoltan1
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Draw recorded content directly into the containing PaintCanvas, when possible. For SPv2, this avoids the cost of replaying into a PaintRecord, then drawing that into the parent canvas. Instead, we can draw the cc::DisplayItemList directly into it with no additional cost. This fixes one SPv2 test with SVG, because somehow content got culled out during the journey through a PaintRecord. BUG=665259, 703231 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 Review-Url: https://codereview.chromium.org/2791043002 Cr-Commit-Position: refs/heads/master@{#461338} Committed: https://chromium.googlesource.com/chromium/src/+/dad2300ece2848716c16c70bf46d8ffd64e3abee

Patch Set 1 #

Patch Set 2 : none #

Total comments: 4

Patch Set 3 : none #

Patch Set 4 : none #

Patch Set 5 : none #

Total comments: 1

Patch Set 6 : none #

Patch Set 7 : none #

Patch Set 8 : none #

Patch Set 9 : none #

Patch Set 10 : none #

Unified diffs Side-by-side diffs Delta from patch set Stats (+107 lines, -71 lines) Patch
M third_party/WebKit/LayoutTests/FlagExpectations/enable-slimming-paint-v2 View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/frame/LocalFrame.cpp View 1 2 3 4 5 6 8 9 5 chunks +9 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/core/layout/svg/LayoutSVGResourcePattern.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/paint/SVGShapePainter.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/svg/graphics/SVGImage.h View 1 2 1 chunk +6 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/svg/graphics/SVGImage.cpp View 1 2 3 chunks +7 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/svg/graphics/filters/SVGFEImage.cpp View 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/exported/WebFont.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/graphics/paint/PaintArtifact.h View 1 2 3 2 chunks +7 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/graphics/paint/PaintArtifact.cpp View 1 2 3 1 chunk +22 lines, -15 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/paint/PaintRecordBuilder.h View 1 2 3 2 chunks +6 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/graphics/paint/PaintRecordBuilder.cpp View 1 2 3 5 6 7 8 9 1 chunk +14 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/web/PageWidgetDelegate.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/WebLocalFrameImpl.cpp View 1 chunk +30 lines, -32 lines 0 comments Download

Messages

Total messages: 36 (22 generated)
chrishtr
3 years, 8 months ago (2017-03-31 23:04:15 UTC) #6
wkorman
https://codereview.chromium.org/2791043002/diff/20001/third_party/WebKit/Source/core/svg/graphics/SVGImage.cpp File third_party/WebKit/Source/core/svg/graphics/SVGImage.cpp (right): https://codereview.chromium.org/2791043002/diff/20001/third_party/WebKit/Source/core/svg/graphics/SVGImage.cpp#newcode441 third_party/WebKit/Source/core/svg/graphics/SVGImage.cpp:441: void SVGImage::paintCurrentFrame(const FloatRect& bounds, This looks identical to SVGImage::paintRecordForCurrentFrame ...
3 years, 8 months ago (2017-04-01 00:32:40 UTC) #7
chrishtr
https://codereview.chromium.org/2791043002/diff/20001/third_party/WebKit/Source/platform/graphics/paint/PaintArtifact.cpp File third_party/WebKit/Source/platform/graphics/paint/PaintArtifact.cpp (right): https://codereview.chromium.org/2791043002/diff/20001/third_party/WebKit/Source/platform/graphics/paint/PaintArtifact.cpp#newcode101 third_party/WebKit/Source/platform/graphics/paint/PaintArtifact.cpp:101: std::unique_ptr<GeometryMapper> geometryMapper = GeometryMapper::create(); On 2017/04/01 at 00:32:40, wkorman ...
3 years, 8 months ago (2017-04-01 04:05:25 UTC) #8
chrishtr
https://codereview.chromium.org/2791043002/diff/20001/third_party/WebKit/Source/core/svg/graphics/SVGImage.cpp File third_party/WebKit/Source/core/svg/graphics/SVGImage.cpp (right): https://codereview.chromium.org/2791043002/diff/20001/third_party/WebKit/Source/core/svg/graphics/SVGImage.cpp#newcode441 third_party/WebKit/Source/core/svg/graphics/SVGImage.cpp:441: void SVGImage::paintCurrentFrame(const FloatRect& bounds, On 2017/04/01 at 00:32:40, wkorman ...
3 years, 8 months ago (2017-04-01 04:05:47 UTC) #9
wkorman
lgtm
3 years, 8 months ago (2017-04-01 05:25:55 UTC) #12
chrishtr
https://codereview.chromium.org/2791043002/diff/80001/third_party/WebKit/Source/core/frame/LocalFrame.cpp File third_party/WebKit/Source/core/frame/LocalFrame.cpp (right): https://codereview.chromium.org/2791043002/diff/80001/third_party/WebKit/Source/core/frame/LocalFrame.cpp#newcode150 third_party/WebKit/Source/core/frame/LocalFrame.cpp:150: SkiaPaintCanvas skiaPaintCanvas(surface->getCanvas()); Updated this method to draw directly into ...
3 years, 8 months ago (2017-04-01 16:19:53 UTC) #16
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/2791043002/80001
3 years, 8 months ago (2017-04-01 16:20:04 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/182247) ios-device-xcode-clang on master.tryserver.chromium.mac (JOB_FAILED, ...
3 years, 8 months ago (2017-04-01 16:21:55 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/2791043002/100001
3 years, 8 months ago (2017-04-01 17:06:46 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: linux_layout_tests_slimming_paint_v2 on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_layout_tests_slimming_paint_v2/builds/3612)
3 years, 8 months ago (2017-04-01 17:45:45 UTC) #25
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/2791043002/50015
3 years, 8 months ago (2017-04-01 18:17:44 UTC) #28
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/420114)
3 years, 8 months ago (2017-04-01 19:13:34 UTC) #30
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/2791043002/170001
3 years, 8 months ago (2017-04-02 03:45:41 UTC) #33
commit-bot: I haz the power
3 years, 8 months ago (2017-04-02 05:19:06 UTC) #36
Message was sent while issue was closed.
Committed patchset #10 (id:170001) as
https://chromium.googlesource.com/chromium/src/+/dad2300ece2848716c16c70bf46d...

Powered by Google App Engine
This is Rietveld 408576698