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

Issue 1089293002: Add PictureRecorder for sp/non-sp recording without an existing context (Closed)

Created:
5 years, 8 months ago by pdr.
Modified:
5 years, 8 months ago
Reviewers:
chrishtr, Xianzhu
CC:
blink-reviews, blink-reviews-rendering, Rik, danakj, Dominik Röttsches, dshwang, krit, eae+blinkwatch, ed+blinkwatch_opera.com, f(malita), fs, gyuyoung2, jbroman, jchaffraix+rendering, Justin Novosad, kouhei+svg_chromium.org, leviw+renderwatch, pdr+svgwatchlist_chromium.org, pdr+renderingwatchlist_chromium.org, pdr+graphicswatchlist_chromium.org, rwlbuis, Stephen Chennney, zoltan1
Target Ref:
refs/remotes/origin/master
Project:
blink
Visibility:
Public.

Description

Add PictureRecorder for sp/non-sp recording without an existing context This patch adds a PictureRecorder for recording when there is no existing graphics context. For slimming paint, this patch does not change behavior. For non-slimming paint this patch now creates a graphics context using GC::deprecatedCreateWithCanvas which prevents crashes seen in https://codereview.chromium.org/1087633002. BUG=470553 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=193923

Patch Set 1 #

Patch Set 2 : Rename SkPictureBuilder, add a comment #

Total comments: 3

Patch Set 3 : Fix endRecording mistake #

Unified diffs Side-by-side diffs Delta from patch set Stats (+69 lines, -45 lines) Patch
M Source/core/layout/svg/LayoutSVGResourceClipper.cpp View 1 3 chunks +4 lines, -9 lines 0 comments Download
M Source/core/layout/svg/LayoutSVGResourceMasker.cpp View 1 2 3 chunks +5 lines, -11 lines 0 comments Download
M Source/core/layout/svg/LayoutSVGResourcePattern.cpp View 1 3 chunks +6 lines, -11 lines 0 comments Download
M Source/core/svg/graphics/SVGImage.cpp View 1 2 2 chunks +5 lines, -14 lines 0 comments Download
M Source/platform/blink_platform.gypi View 1 1 chunk +1 line, -0 lines 0 comments Download
A Source/platform/graphics/paint/SkPictureBuilder.h View 1 2 1 chunk +48 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (4 generated)
pdr.
5 years, 8 months ago (2015-04-15 22:41:17 UTC) #2
Xianzhu
I uploaded a similar change https://codereview.chromium.org/1048223002/ 2 weeks ago but finally closed it because it ...
5 years, 8 months ago (2015-04-15 22:51:21 UTC) #3
pdr.
On 2015/04/15 at 22:51:21, wangxianzhu wrote: > I uploaded a similar change https://codereview.chromium.org/1048223002/ 2 weeks ...
5 years, 8 months ago (2015-04-15 23:23:36 UTC) #4
chrishtr
pdr is going to change this to be cleaner, per offline discussion.
5 years, 8 months ago (2015-04-16 18:23:11 UTC) #5
pdr.
On 2015/04/16 at 18:23:11, chrishtr wrote: > pdr is going to change this to be ...
5 years, 8 months ago (2015-04-16 23:15:53 UTC) #6
chrishtr
lgtm https://codereview.chromium.org/1089293002/diff/20001/Source/core/layout/svg/LayoutSVGResourcePattern.cpp File Source/core/layout/svg/LayoutSVGResourcePattern.cpp (right): https://codereview.chromium.org/1089293002/diff/20001/Source/core/layout/svg/LayoutSVGResourcePattern.cpp#newcode170 Source/core/layout/svg/LayoutSVGResourcePattern.cpp:170: SkPictureBuilder pictureBuilder(bounds); Just pass the bounds directly instead ...
5 years, 8 months ago (2015-04-17 00:02:24 UTC) #7
pdr.
https://codereview.chromium.org/1089293002/diff/20001/Source/core/layout/svg/LayoutSVGResourcePattern.cpp File Source/core/layout/svg/LayoutSVGResourcePattern.cpp (right): https://codereview.chromium.org/1089293002/diff/20001/Source/core/layout/svg/LayoutSVGResourcePattern.cpp#newcode170 Source/core/layout/svg/LayoutSVGResourcePattern.cpp:170: SkPictureBuilder pictureBuilder(bounds); On 2015/04/17 at 00:02:23, chrishtr wrote: > ...
5 years, 8 months ago (2015-04-17 00:06:14 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1089293002/20001
5 years, 8 months ago (2015-04-17 00:06:32 UTC) #10
pdr.
https://codereview.chromium.org/1089293002/diff/20001/Source/core/layout/svg/LayoutSVGResourceMasker.cpp File Source/core/layout/svg/LayoutSVGResourceMasker.cpp (right): https://codereview.chromium.org/1089293002/diff/20001/Source/core/layout/svg/LayoutSVGResourceMasker.cpp#newcode91 Source/core/layout/svg/LayoutSVGResourceMasker.cpp:91: m_maskContentPicture = pictureBuilder.context().endRecording(); This should be pictureBuilder.endRecording().
5 years, 8 months ago (2015-04-17 04:30:34 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1089293002/40001
5 years, 8 months ago (2015-04-17 04:35:46 UTC) #14
commit-bot: I haz the power
5 years, 8 months ago (2015-04-17 05:40:00 UTC) #15
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=193923

Powered by Google App Engine
This is Rietveld 408576698