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

Issue 2515783002: remember the last metafile, instead of the last canvas (Closed)

Created:
4 years, 1 month ago by reed1
Modified:
4 years, 1 month ago
Reviewers:
Lei Zhang, bbudge, raymes
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, jam, darin-cc_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

remember the last metafile, instead of the last canvas SkCanvas is marked to become NOT reference counted (its very problematic today, since a canvas can (and often is) be on the stack). The current code in plugins rely on "ref"ing the last canvas it saw, so that later it can extract the "metafile" from it and use that (in printEnd). This itself is a bit odd, since there is no explicit mapping between the lifetime of the canvas and the lifetime of the metafile. This change just makes bare what is going on: we remember the last metafile we've seen (by extracting it from the canvas each time we see a canvas), and then use it directly in printEnd. This does require that the metafile be valid until printEnd is called, but that was a necessary promise all along. BUG= Committed: https://crrev.com/b8367dc404046305d17bb691075531da1da2c0c5 Cr-Commit-Position: refs/heads/master@{#433542}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -20 lines) Patch
M content/renderer/pepper/pepper_plugin_instance_impl.h View 4 chunks +10 lines, -5 lines 0 comments Download
M content/renderer/pepper/pepper_plugin_instance_impl.cc View 9 chunks +15 lines, -15 lines 0 comments Download

Messages

Total messages: 19 (12 generated)
reed1
4 years, 1 month ago (2016-11-18 20:23:45 UTC) #4
bbudge
lgtm
4 years, 1 month ago (2016-11-18 21:18:51 UTC) #8
Lei Zhang
Printing works for me with this CL, so lgtm.
4 years, 1 month ago (2016-11-18 22:14:51 UTC) #9
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/2515783002/1
4 years, 1 month ago (2016-11-18 22:16:22 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/2515783002/1
4 years, 1 month ago (2016-11-21 14:03:09 UTC) #14
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 1 month ago (2016-11-21 14:46:08 UTC) #17
commit-bot: I haz the power
4 years, 1 month ago (2016-11-21 14:47:52 UTC) #19
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/b8367dc404046305d17bb691075531da1da2c0c5
Cr-Commit-Position: refs/heads/master@{#433542}

Powered by Google App Engine
This is Rietveld 408576698