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

Issue 10836330: Rasterize page before printing. (Closed)

Created:
8 years, 4 months ago by Vitaly Buka (NO REVIEWS)
Modified:
8 years, 4 months ago
CC:
chromium-reviews, darin-cc_chromium.org, brettw-cc_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Some printers has issue with metafiles produces from PDF so added switch and about:flag as workaround for affected users. Rasterisation is implemented and RasterizeMetafile function. It replace metafile with new one where content is only bitmap created by playback of original metafile. FlattenTransparency replaced with full rasterisation. Fixed rectangle returned by Emf::GetPageBounds. Removed SkDevice::AlphaBlendUsed(). Removed return value from PrintWebViewHelper::RenderPage on windows. BUG=133527 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=152681

Patch Set 1 : #

Total comments: 11

Patch Set 2 : #

Total comments: 8

Patch Set 3 : #

Total comments: 6

Patch Set 4 : #

Total comments: 2

Patch Set 5 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+201 lines, -189 lines) Patch
M chrome/app/generated_resources.grd View 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/browser/about_flags.cc View 1 2 1 chunk +9 lines, -0 lines 0 comments Download
M chrome/browser/printing/print_view_manager.cc View 1 2 3 4 6 chunks +30 lines, -13 lines 0 comments Download
M chrome/common/chrome_switches.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/chrome_switches.cc View 1 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/renderer/print_web_view_helper.h View 1 1 chunk +8 lines, -12 lines 0 comments Download
M chrome/renderer/print_web_view_helper_win.cc View 1 5 chunks +6 lines, -135 lines 0 comments Download
M printing/emf_win.h View 1 2 3 2 chunks +12 lines, -0 lines 0 comments Download
M printing/emf_win.cc View 1 2 3 5 chunks +98 lines, -11 lines 0 comments Download
M printing/emf_win_unittest.cc View 1 2 3 1 chunk +25 lines, -0 lines 0 comments Download
M skia/ext/platform_device.h View 1 1 chunk +0 lines, -5 lines 0 comments Download
M skia/ext/platform_device.cc View 1 1 chunk +0 lines, -4 lines 0 comments Download
M skia/ext/vector_platform_device_emf_win.h View 1 2 3 2 chunks +0 lines, -5 lines 0 comments Download
M skia/ext/vector_platform_device_emf_win.cc View 1 2 3 2 chunks +1 line, -4 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
Vitaly Buka (NO REVIEWS)
Please review.
8 years, 4 months ago (2012-08-20 06:06:35 UTC) #1
Vitaly Buka (NO REVIEWS)
https://chromiumcodereview.appspot.com/10836330/diff/5/chrome/renderer/print_web_view_helper_win.cc File chrome/renderer/print_web_view_helper_win.cc (right): https://chromiumcodereview.appspot.com/10836330/diff/5/chrome/renderer/print_web_view_helper_win.cc#newcode419 chrome/renderer/print_web_view_helper_win.cc:419: if (platform_device && platform_device->AlphaBlendUsed()) { I found that FlattenTransparency ...
8 years, 4 months ago (2012-08-20 16:41:51 UTC) #2
Albert Bodenhamer
http://codereview.chromium.org/10836330/diff/5/chrome/browser/printing/printing_message_filter.cc File chrome/browser/printing/printing_message_filter.cc (right): http://codereview.chromium.org/10836330/diff/5/chrome/browser/printing/printing_message_filter.cc#newcode83 chrome/browser/printing/printing_message_filter.cc:83: params->raster_type = PrintMsg_Print_Params::RASTER_PLUGINS; Do we need different modes? Is ...
8 years, 4 months ago (2012-08-20 18:18:10 UTC) #3
Lei Zhang
What's the long term plan for the raster flags?
8 years, 4 months ago (2012-08-21 08:09:14 UTC) #4
Albert Bodenhamer
If this gets around the crashing driver issues we're seeing the next step is to ...
8 years, 4 months ago (2012-08-21 16:52:57 UTC) #5
Vitaly Buka (NO REVIEWS)
Please review again. Main difference with previouse patch is that restarization moved out of renderer ...
8 years, 4 months ago (2012-08-21 19:40:54 UTC) #6
Lei Zhang
Please make the flag truly Windows-only. What's the motivation for moving the rasterizing from renderer ...
8 years, 4 months ago (2012-08-21 20:18:32 UTC) #7
Vitaly Buka (NO REVIEWS)
http://codereview.chromium.org/10836330/diff/2008/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): http://codereview.chromium.org/10836330/diff/2008/chrome/app/generated_resources.grd#newcode5364 chrome/app/generated_resources.grd:5364: + <message name="IDS_FLAGS_PRINT_RASTER_NAME" desc="Name of 'Print raster' flag."> Done. ...
8 years, 4 months ago (2012-08-21 20:39:55 UTC) #8
Lei Zhang
http://codereview.chromium.org/10836330/diff/2008/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): http://codereview.chromium.org/10836330/diff/2008/chrome/app/generated_resources.grd#newcode5364 chrome/app/generated_resources.grd:5364: + <message name="IDS_FLAGS_PRINT_RASTER_NAME" desc="Name of 'Print raster' flag."> On ...
8 years, 4 months ago (2012-08-21 20:51:00 UTC) #9
Vitaly Buka (NO REVIEWS)
http://codereview.chromium.org/10836330/diff/2008/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): http://codereview.chromium.org/10836330/diff/2008/chrome/app/generated_resources.grd#newcode5364 chrome/app/generated_resources.grd:5364: + <message name="IDS_FLAGS_PRINT_RASTER_NAME" desc="Name of 'Print raster' flag."> I ...
8 years, 4 months ago (2012-08-21 21:14:26 UTC) #10
Lei Zhang
lgtm http://codereview.chromium.org/10836330/diff/6003/printing/emf_win.h File printing/emf_win.h (right): http://codereview.chromium.org/10836330/diff/6003/printing/emf_win.h#newcode192 printing/emf_win.h:192: // Returns true if metafile contains alpha blend. ...
8 years, 4 months ago (2012-08-21 21:38:37 UTC) #11
gene
lgtm http://codereview.chromium.org/10836330/diff/10031/chrome/browser/printing/print_view_manager.cc File chrome/browser/printing/print_view_manager.cc (right): http://codereview.chromium.org/10836330/diff/10031/chrome/browser/printing/print_view_manager.cc#newcode257 chrome/browser/printing/print_view_manager.cc:257: int raster_size = std::min(params.page_size.GetArea(), 16*1024*1024); nit: Make 16*1024*1024 ...
8 years, 4 months ago (2012-08-21 22:10:50 UTC) #12
Vitaly Buka (NO REVIEWS)
http://codereview.chromium.org/10836330/diff/6003/printing/emf_win.h File printing/emf_win.h (right): http://codereview.chromium.org/10836330/diff/6003/printing/emf_win.h#newcode192 printing/emf_win.h:192: // Returns true if metafile contains alpha blend. On ...
8 years, 4 months ago (2012-08-21 22:17:30 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vitalybuka@chromium.org/10836330/12027
8 years, 4 months ago (2012-08-21 22:18:43 UTC) #14
Albert Bodenhamer
lgtm
8 years, 4 months ago (2012-08-21 22:19:02 UTC) #15
commit-bot: I haz the power
8 years, 4 months ago (2012-08-22 00:10:10 UTC) #16
Change committed as 152681

Powered by Google App Engine
This is Rietveld 408576698