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

Issue 2512783002: store MetafileSkiaWrapper in plugin instead of canvas (Closed)

Created:
4 years, 1 month ago by reed1
Modified:
4 years 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

store MetafileSkiaWrapper in plugin instead of canvas, since the former is reference counted, and the latter is on the chopping block to become not reference counted. Additionally, the metafile is all that is actually needed for printEnd, so it is a bit overspecified to pass a canvas around. BUG=666154

Patch Set 1 #

Patch Set 2 : fix header #

Patch Set 3 : fix header again #

Patch Set 4 : doh -- add include to impl file, not header #

Total comments: 7
Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -22 lines) Patch
M content/renderer/pepper/pepper_plugin_instance_impl.h View 1 3 4 chunks +11 lines, -7 lines 2 comments Download
M content/renderer/pepper/pepper_plugin_instance_impl.cc View 1 2 3 8 chunks +17 lines, -12 lines 4 comments Download
M printing/metafile_skia_wrapper.h View 1 chunk +3 lines, -1 line 1 comment Download
M printing/metafile_skia_wrapper.cc View 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 22 (16 generated)
reed1
4 years, 1 month ago (2016-11-17 21:42:58 UTC) #10
bbudge
LGTM w/comments https://codereview.chromium.org/2512783002/diff/50001/content/renderer/pepper/pepper_plugin_instance_impl.cc File content/renderer/pepper/pepper_plugin_instance_impl.cc (right): https://codereview.chromium.org/2512783002/diff/50001/content/renderer/pepper/pepper_plugin_instance_impl.cc#newcode1802 content/renderer/pepper/pepper_plugin_instance_impl.cc:1802: metafile_wrapper_.reset(); Would a DCHECK(!metafile_wrapper_) make sense here? ...
4 years, 1 month ago (2016-11-17 22:37:00 UTC) #15
Lei Zhang
Just some nits. I will help take a look at the red cast* bots. https://codereview.chromium.org/2512783002/diff/50001/content/renderer/pepper/pepper_plugin_instance_impl.cc ...
4 years, 1 month ago (2016-11-18 01:53:37 UTC) #19
Lei Zhang
https://codereview.chromium.org/2512783002/diff/50001/content/renderer/pepper/pepper_plugin_instance_impl.cc File content/renderer/pepper/pepper_plugin_instance_impl.cc (right): https://codereview.chromium.org/2512783002/diff/50001/content/renderer/pepper/pepper_plugin_instance_impl.cc#newcode97 content/renderer/pepper/pepper_plugin_instance_impl.cc:97: #include "printing/metafile_skia_wrapper.h" BTW, this is already on line 135. ...
4 years, 1 month ago (2016-11-18 02:25:53 UTC) #20
Lei Zhang
I put my copy of this CL up at: https://codereview.chromium.org/2518443002/ I started try jobs. Let's ...
4 years, 1 month ago (2016-11-18 02:38:34 UTC) #21
reed1
4 years, 1 month ago (2016-11-18 19:00:14 UTC) #22

Powered by Google App Engine
This is Rietveld 408576698