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

Issue 6733036: Make PluginInstance::PrintPDFOutput-metafile implementation agnostic on Linux. (Closed)

Created:
9 years, 9 months ago by vandebo (ex-Chrome)
Modified:
9 years, 7 months ago
Reviewers:
Lei Zhang, kmadhusu
CC:
chromium-reviews, Paweł Hajdan Jr., darin-cc_chromium.org, brettw-cc_chromium.org, dpapad
Visibility:
Public.

Description

Make PluginInstance::PrintPDFOutput metafile-implementation agnostic on Linux. PluginInstance::PrintPDFOutput wants to set the PDF bits in the metafile. This change makes it agnostic to the implementation of NativeMetafile in use by using the SkRefDict in SkDevice (and removes the old mechanism). BUG=NONE TEST=NONE Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=79412

Patch Set 1 #

Total comments: 8

Patch Set 2 : Address comments. #

Total comments: 1

Patch Set 3 : Fix unref of potentially NULL object pointed out by thestig@. #

Total comments: 2

Patch Set 4 : d, f, same thing... #

Patch Set 5 : Make this Linux specific until we use it on Windows. #

Patch Set 6 : Add new files to sources, not dependencies #

Unified diffs Side-by-side diffs Delta from patch set Stats (+100 lines, -24 lines) Patch
M chrome/renderer/print_web_view_helper_linux.cc View 2 chunks +3 lines, -0 lines 0 comments Download
A printing/native_metafile_skia_wrapper.h View 1 1 chunk +34 lines, -0 lines 0 comments Download
A printing/native_metafile_skia_wrapper.cc View 1 2 3 1 chunk +55 lines, -0 lines 0 comments Download
M printing/pdf_ps_metafile_cairo.h View 1 chunk +0 lines, -4 lines 0 comments Download
M printing/pdf_ps_metafile_cairo.cc View 4 chunks +0 lines, -12 lines 0 comments Download
M printing/pdf_ps_metafile_cairo_unittest.cc View 1 chunk +0 lines, -1 line 0 comments Download
M printing/printing.gyp View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M webkit/plugins/ppapi/ppapi_plugin_instance.cc View 2 chunks +4 lines, -7 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
vandebo (ex-Chrome)
9 years, 9 months ago (2011-03-24 20:52:50 UTC) #1
Lei Zhang
http://codereview.chromium.org/6733036/diff/1/printing/native_metafile_skia_wrapper.cc File printing/native_metafile_skia_wrapper.cc (right): http://codereview.chromium.org/6733036/diff/1/printing/native_metafile_skia_wrapper.cc#newcode32 printing/native_metafile_skia_wrapper.cc:32: if (metafile) What happens if |metafile| is NULL? Do ...
9 years, 9 months ago (2011-03-24 21:28:27 UTC) #2
kmadhusu
http://codereview.chromium.org/6733036/diff/1/printing/printing.gyp File printing/printing.gyp (right): http://codereview.chromium.org/6733036/diff/1/printing/printing.gyp#newcode42 printing/printing.gyp:42: 'native_metafile_skia_wrapper.h', style nit: Include them after "native_metafile.h".
9 years, 9 months ago (2011-03-24 21:38:15 UTC) #3
vandebo (ex-Chrome)
http://codereview.chromium.org/6733036/diff/1/printing/native_metafile_skia_wrapper.cc File printing/native_metafile_skia_wrapper.cc (right): http://codereview.chromium.org/6733036/diff/1/printing/native_metafile_skia_wrapper.cc#newcode32 printing/native_metafile_skia_wrapper.cc:32: if (metafile) On 2011/03/24 21:28:27, Lei Zhang wrote: > ...
9 years, 9 months ago (2011-03-24 21:44:45 UTC) #4
vandebo (ex-Chrome)
http://codereview.chromium.org/6733036/diff/6001/printing/native_metafile_skia_wrapper.cc File printing/native_metafile_skia_wrapper.cc (right): http://codereview.chromium.org/6733036/diff/6001/printing/native_metafile_skia_wrapper.cc#newcode37 printing/native_metafile_skia_wrapper.cc:37: wrapper->unref(); Fixed potential Null deref.
9 years, 9 months ago (2011-03-24 21:54:11 UTC) #5
Lei Zhang
http://codereview.chromium.org/6733036/diff/6002/printing/native_metafile_skia_wrapper.cc File printing/native_metafile_skia_wrapper.cc (right): http://codereview.chromium.org/6733036/diff/6002/printing/native_metafile_skia_wrapper.cc#newcode37 printing/native_metafile_skia_wrapper.cc:37: SkSafeUnred(wrapper); typo :)
9 years, 9 months ago (2011-03-24 21:54:12 UTC) #6
vandebo (ex-Chrome)
http://codereview.chromium.org/6733036/diff/6002/printing/native_metafile_skia_wrapper.cc File printing/native_metafile_skia_wrapper.cc (right): http://codereview.chromium.org/6733036/diff/6002/printing/native_metafile_skia_wrapper.cc#newcode37 printing/native_metafile_skia_wrapper.cc:37: SkSafeUnred(wrapper); On 2011/03/24 21:54:12, Lei Zhang wrote: > typo ...
9 years, 9 months ago (2011-03-24 21:58:09 UTC) #7
Lei Zhang
9 years, 9 months ago (2011-03-24 22:09:25 UTC) #8
LGTM

Powered by Google App Engine
This is Rietveld 408576698